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

[UDUNITS #OSA-213676]: udunits-1.12.9 install in MAC OS X 10.6.2



Limin,

The file "make.log" contained the following:

making `dynamic' in directory /usr/local/udunits-1.12.9/src/perl

/usr/bin/perl /System/Library/Perl/5.10.0/ExtUtils/xsubpp  -typemap 
/System/Library/Perl/5.10.0/ExtUtils/typemap -typemap typemap  UDUNITS.xs > 
UDUNITS.xsc && mv UDUNITS.xsc UDUNITS.c
Please specify prototyping behavior for UDUNITS.xs (see perlxs manual)
c89 -c  -I../lib -I../port/misc -arch x86_64 -arch i386 -arch ppc -g -pipe 
-fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os   
-DVERSION=\"1.12.9\" -DXS_VERSION=\"1.12.9\"  
"-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE"  -Df2cFortran 
UDUNITS.c
c89: illegal option -- a
usage: c89 [-cEgs] [-D name[=value]] [-I directory] ... [-L directory] ...
       [-o outfile] [-O optlevel] [-U name]... operand ...
make[1]: *** [UDUNITS.o] Error 1

I suspect that the compilation environment for your perl(1) utility is 
incompatible with the compilation environment of the UDUNITS package.

Do you need the perl(1) interface to the UDUNITS package?  If not, then you can 
avoid this problem by omitting the perl(1) interface by setting the environment 
variable PERL to the empty string before executing the configure(1) script.  
For example:

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

If you need the perl interface, then you must use the compiler that was used to 
build the perl(1) utility.  Execute the command "perl -V".  Then set the 
environment variable CC to the pathname of the compiler that was used to build 
the perl(1) utility.  For example

    $ perl -V
    ...
    $ make distclean
    $ ./configure ... CC=gcc >configure.log 2>&1

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: OSA-213676
Department: Support UDUNITS
Priority: Normal
Status: Closed