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

20000801: n32, o32 vs GEMPAK,netcdf,udunits,perl?



Neil,

I use the -o32 flag for building GEMPAK because it was the lowest common
denominator for running the 6.x binaries on 5.x systems. That can't
be done with -n32. You could change the -o32 flag in GEMPAK....but
I've had trouble with -n32 in the past so I can't guarantee that
will always work.

Since you have made it this far...instead of recompiling GEMPAK
with -n32, I'd just build the udunits library without the perl stuff.
By default, when configure finds perl on your system, it tries to
build that part, but you can build udunits without the
perl stuff.

According to the udunits INSTALL file in the src directory:

                If you don't want to mess with the UDUNITS perl
                extension module, , then you should set the PERL
                variable to the empty string.  This might be necessary,
                for example, if you can't get both the extension module
                *and* the udunits(3) library to build.


So, if you set PERL to empty string before running configure,
then the "make all" will omit the perl stuff.

Steve Chiswell
Unidata User Support

>From: "Neil R. Smith" <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200008012044.e71KimT28135

>I'm trying to install GEMPAK on our SGI Origin 2000, IRIX 6.4.
>GEMPAK needs o32 netcdf libraries.  OK.
>The 032 netcdf build needs udunits o32 build.  
>
>But o32 udunits build wants n32 perl:
>
>making `dynamic' in directory /usr/local/src/udunits-1.11.7/src/perl
>
>        /usr/sbin/perl -I/usr/share/lib/perl5/irix-n32/5.003
>-I/usr/share/lib/perl5 /usr/share/lib/perl5/ExtUtils/xsubpp  -typemap
>/usr/share/lib/perl5/ExtUtils/typemap -typemap typemap UDUNITS.xs
>>UDUNITS.tc && mv UDUNITS.tc UDUNITS.c
>Please specify prototyping behavior for UDUNITS.xs (see perlxs manual)
>        /bin/cc -o32 -c -I../lib -I../port/misc -DBSD_TYPES
>-D_BSD_SIGNALS -D_BSD_TIME -DLANGUAGE_C -woff 1009 -O2 -OPT:Olimit=0    
>-DVERSION=\"1.11.7\"  -DXS_VERSION=\"1.11.7\" 
>-I/usr/share/lib/perl5/irix-n32/5.003/CORE -DNDEBUG UDUNITS.c
>cc: Warning: -OPT options are ignored
>Running Mkbootstrap for UDUNITS ()
>        chmod 644 UDUNITS.bs
>       
>LD_RUN_PATH="/usr/local/src/udunits-1.11.7/src/perl/../lib:/usr/lib32"
>cc -o ./blib/arch/auto/UDUNITS/UDUNITS.so -n32 -mips3 -shared
>UDUNITS.o    -L/usr/local/src/udunits-1.11.7/src/perl/../lib -ludunits
>-lm 
>ld32: FATAL 12: Expecting n32 objects: UDUNITS.o is o32.
>*** Error code 2 (bu21)
>*** Error code 1 (bu21)
>
>This is the perl bundled with the system.  Do I have to download
>and build a perl with o32, or can I build everything with n32,
>or maybe with -64 since this machine is a 64bit box?  Hey, my 
>build experience is quite limited here, so bear with me please.
>
>Thanks, -Neil
>-- 
>Neil R. Smith, Comp. Sys. Mngr.                address@hidden
>Dept. Atmospheric Sci., Texas A&M Univ.        979/845-6272 FAX:979/862-4466
>