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

Re: 20000120: perl access permissions; undefined Fortran symbols



Prabir,

[Please do not enclose base64-encoded email attachments.  Indeed, it is
best to avoid attachments altogether.]

> From: address@hidden
> Subject: udunits installation!
> Organization: Indian Institute of Technology
> Keywords: 200001200409.VAA29641 UDUNITS

In the above message, you wrote:

> I am trying to install UDUNITS-1.11.7 on our IBM-RS6000 machine, but yet to
> succeed.
...

making `all' in directory /nwp/rams4a/data/erl/udunits/src/lib

>         ln -s ../port/misc/udalloc.c .
>         ln -s ../port/misc/udalloc.h .
>         c89 -c -O -I../port/misc -I../port/cfortran 
> -DUT_DEFAULT_PATH='"/nwp/rams4a/data/erl/udunits/etc/udunits.dat"'  
> -D_ALL_SOURCE -Dextname utlib.c
> "/usr/include/sys/types.h", line 427.23: 1506-115 (E) Duplicate type 
> specifier "long" ignored.
> "/usr/include/sys/types.h", line 428.23: 1506-115 (E) Duplicate type 
> specifier "long" ignored.
...

The above error messages indicate a bug in the C development environment 
under AIX 4.3.  There's nothing I can do about it.

Fortunately, the bug doesn't prevent the UDUNITS package from being 
successfully built.

> making `install' in directory /nwp/rams4a/data/erl/udunits/src/perl
>
> mkdir blib/lib
> cp UDUNITS.pm blib/lib/UDUNITS.pm
> AutoSplitting blib/lib/UDUNITS.pm (blib/lib/auto/UDUNITS)
> Warning: You do not have permissions to install into 
> /usr/local/lib/perl5/site_perl/5.005/aix at 
> /usr/local/lib/perl5/5.00502/ExtUtils/Install.pm line 61.
> Cannot forceunlink 
> /usr/local/lib/perl5/site_perl/5.005/aix/auto/UDUNITS/UDUNITS.so: The file 
> access permissions do not allow the specified action. at 
> /usr/local/lib/perl5/5.00502/File/Find.pm line 155
> make: 1254-004 The error code from the last command is 13.
...

You must be the superuser in order to install the perl extension module
for the UDUNITS package.

If you do not want the perl extension module, then you may have the build
process ignore it by re-executing the configure script after setting the
environment variable PERL to the empty string, e.g.

    $ export PERL=''
    $ ./configure >configure.log 2>&1

> ..., I would like to inform that when I went to use the libudunits.a
> file to to compile
> the program (readgeneral.f) that read NCEP analysed data in netcdf format,
> I get these errors.
> This might give some clues:
> (See attached file: err)

1501-510  Compilation successful for file read_new.f.
ld: 0711-317 ERROR: Undefined symbol: .utopen
ld: 0711-317 ERROR: Undefined symbol: .utmake
ld: 0711-317 ERROR: Undefined symbol: .utdec
ld: 0711-317 ERROR: Undefined symbol: .uttime
ld: 0711-317 ERROR: Undefined symbol: .utcaltime
ld: 0711-317 ERROR: Undefined symbol: .utfree
ld: 0711-317 ERROR: Undefined symbol: .uticaltime
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

> Please let me know why I am unable use the libudunits.a file properly.

Recompile the Fortran program with the '-qextname' option.

> Thanking you and with
> kind regards   ...Prabir
> 
> 
> Prabir K. Patra, Ph. D.
> India Research Laboratory
> Block - I, Indian Institute of Technology,
> Hauz Khas, New Delhi - 110 016, India
> 
> Ph: +91-11-686 1100, Fax: +91-11-686 1555,
> Internet: address@hidden
...

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