[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20010201: Compile problems with udunits: PUNIT_cfSTR macro



Larrabee,

I just built version 1.11.7 of the UDUNITS package on our RedHat Linux
2.2.16 system.  It went OK.  I used the same version of egcs and perl
that you did -- although there are some differences between your
installation of these pacakges and mine.  I've enclosed relevant details.

Based on my knowledge of the Fortran interface of the UDUNITS package, I
doubt that the cause of the problem is my use of the native Fortran-77
compiler (/usr/bin/f77) and your use of the Absoft Fortran compiler.

I'm afraid that I don't know what to tell you.  I suspect that the
problem has something to do with your perl installation.

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>

--------Output of "uname -a":
    /tmp/udunits-1.11.7/src: uname -a
    Linux vivian.unidata.ucar.edu 2.2.16-3smp #1 SMP Mon Jun 19 19:00:35 EDT 
2000 i686 unknown

--------Output of "perl -V":
    /tmp/udunits-1.11.7/src: perl -V
    Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
      Platform:
        osname=linux, osvers=2.2.5-22smp, archname=i386-linux
        uname='linux porky.devel.redhat.com 2.2.5-22smp #1 smp wed jun 2 
09:11:51 edt 1999 i686 unknown '
        hint=recommended, useposix=true, d_sigaction=define
        usethreads=undef useperlio=undef d_sfio=undef
      Compiler:
        cc='cc', optimize='-O2 -m486 -fno-strength-reduce', 
gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
        cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
        ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
        stdchar='char', d_stdstdio=undef, usevfork=false
        intsize=4, longsize=4, ptrsize=4, doublesize=8
        d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
        alignbytes=4, usemymalloc=n, prototype=define
      Linker and Libraries:
        ld='cc', ldflags =' -L/usr/local/lib'
        libpth=/usr/local/lib /lib /usr/lib
        libs=-lnsl -ldl -lm -lc -lposix -lcrypt
        libc=, so=so, useshrplib=false, libperl=libperl.a
      Dynamic Linking:
        dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
        cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


    Characteristics of this binary (from libperl): 
      Built under linux
      Compiled at Aug 10 2000 15:33:00
      @INC:
        /usr/lib/perl5/5.00503/i386-linux
        /usr/lib/perl5/5.00503
        /usr/lib/perl5/site_perl/5.005/i386-linux
        /usr/lib/perl5/site_perl/5.005


>Date: Thu, 1 Feb 2001 12:11:19 -0500
>From: Larrabee Strow <address@hidden>
>Organization: UCAR/Unidata
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20010201: Compile problems with udunits: PUNIT_cfSTR macro 
>Keywords: 200102011711.f11HBJX14499
> 
> chard> perl -V
> Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
>   Platform:
>     osname=linux, osvers=2.2.13, archname=i586-linux
>     uname='linux benjy 2.2.13 #4 mon aug 16 11:18:11 mest 1999 i686 unknown '
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=undef useperlio=undef d_sfio=undef
>   Compiler:
>     cc='cc', optimize='-O2 -pipe', gccversion=egcs-2.91.66 19990314/Linux 
> (egcs-1.1.2 release)
>     cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
>     ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
>     stdchar='char', d_stdstdio=undef, usevfork=false
>     intsize=4, longsize=4, ptrsize=4, doublesize=8
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
>     alignbytes=4, usemymalloc=n, prototype=define
>   Linker and Libraries:
>     ld='cc', ldflags =' -L/usr/local/lib'
>     libpth=/usr/local/lib /lib /usr/lib
>     libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
>     libc=, so=so, useshrplib=false, libperl=libperl.a
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
>     cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
>  
>  
> Characteristics of this binary (from libperl):
>   Built under linux
>   Compiled at Nov  6 1999 15:47:59
>   @INC:
>     /usr/lib/perl5/5.00503/i586-linux
>     /usr/lib/perl5/5.00503
>     /usr/lib/perl5/site_perl/5.005/i586-linux
>     /usr/lib/perl5/site_perl/5.005
>     .            
> 
> 
> Steve Emmerson writes:
>  > Larrabee,
>  > 
>  > The problem could be an incompatibility between the compiled UDUNITS
>  > code and the compiled perl package.  Please send me the output from
>  > the command "perl -V".
>  > 
>  > Regards,
>  > Steve Emmerson   <http://www.unidata.ucar.edu>
>  > 
>  > >Date: Thu, 1 Feb 2001 11:40:14 -0500
>  > >From: Larrabee Strow <address@hidden>
>  > >Organization: University of Maryland Baltimore County
>  > >To: Steve Emmerson <address@hidden>
>  > >Subject: Re: 20010201: Compile problems with udunits: PUNIT_cfSTR macro
>  > >Keywords: 200101302248.f0UMmVX27711
>  > >
>  > > I guess those errors were important, I tried a make install and it
>  > > failed, as you probably already know.
>  > > 
>  > > -- 
>  > > L. Larrabee Strow                            E-mail: address@hidden
>  > > Department of Physics                        FAX   : (410) 455-1072
>  > > University of Maryland Baltimore County      Phone : (410) 455-2528 
>  > > 1000 Hilltop Circle                          Office: Physics 429
>  > > Baltimore, MD 21250                  
> 
> -- 
> L. Larrabee Strow                            E-mail: address@hidden
> Department of Physics                        FAX   : (410) 455-1072
> University of Maryland Baltimore County      Phone : (410) 455-2528 
> 1000 Hilltop Circle                          Office: Physics 429
> Baltimore, MD 21250