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

[UDUNITS #MIZ-934064]: build of 2.1.24 fails



Martin,

> I am trying to build UDUNITS 2.1.24 at a Linux system.
> 
> System: SLED_11
> Kernel : Linux PHY-210 2.6.37.1-1.2-desktop // x86_64 GNU/Linux
> 
> Compiler: gcc-4.5
> Libtoolversion: ltmain.sh (GNU libtool) 2.2.6b
> 
> I do the following
> export CC=gcc
> export LDFLAGS="-Wl,-rpath,/sw/data/udunits/SLED_11/2.1.24/lib"
> export CFLAGS="-O3  -Wl,-rpath,/sw/data/udunits/SLED_11/2.1.24/lib"
> ./configure --prefix=/sw/data/udunits/SLED_11/2.1.24/  --disable-shared
> 
> make
> 
> and get
> 
> make[3]: Entering directory `/sw/data/udunits/SLED_11/2.1.24/build/expat'
> depbase=`echo xmlparse.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I..  -DHAV
> E_EXPAT_CONFIG_H -DNDEBUG  -O3
> -Wl,-rpath,/sw/data/udunits/SLED_11/2.1.24/lib -
> MT xmlparse.lo -MD -MP -MF $depbase.Tpo -c -o xmlparse.lo xmlparse.c &&\
> mv -f $depbase.Tpo $depbase.Plo
> ../libtool: line 826: X--tag=CC: command not found
> ../libtool: line 859: libtool: ignoring unknown tag : command not found
> ../libtool: line 826: X--mode=compile: command not found
> ../libtool: line 993: *** Warning: inferring the mode of operation is
> deprecated
> .: command not found
> ../libtool: line 994: *** Future versions of Libtool will require
> --mode=MODE be
> specified.: command not found
> ../libtool: line 1137: Xgcc: command not found
> ../libtool: line 1137: X-DHAVE_CONFIG_H: command not found
> ../libtool: line 1137: X-I.: command not found
> 
> and moe error messages.
> 
> Attached is my config.log
> I tried a distclean with new configure and gmake - the same result
> 
> Any help is really welcome.

I think you might be running into a problem caused by the conflict between the 
"--disable-shared" option and the "rpath" specifications: if you're not using 
shared libraries, then there's no need to specify a shared-library search-path.

Try this invocation of the configure(1) script:

    make distclean
    ./configure --prefix=/sw/data/udunits/SLED_11/2.1.24 CC=gcc CFLAGS=-O3
    make

> Many thanks,
> Martin Schmidt


Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: MIZ-934064
Department: Support UDUNITS
Priority: Normal
Status: Closed