Opened 14 years ago

Closed 14 years ago

#3445 closed defect (duplicate)

Linking to wrong version of libexpat

Reported by: jctilton Owned by: warmerdam
Priority: normal Milestone:
Component: ConfigBuild Version: unspecified
Severity: normal Keywords: expat
Cc:

Description

After running the configure with:

./configure --prefix=/usr/local --with-expat=/usr/local --with-expat-inc=/usr/local/include \ --with-expat-lib="-L/usr/local/lib -lexpat" \ --with-netcdf=/usr/local --with-libtiff=internal --with-jpeg=/usr/local/include --with-png=internal

the make still ends up linking with the old version of libexpat in /usr/lib instead of /usr/local/lib:

libtool: link: g++ -shared -nostdlib /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginS.o .libs/libgdal.la.lnkscript -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/lib -lsqlite3 -L/usr/local/lib /usr/lib/libexpat.so /usr/local/lib/libjasper.so -L/usr/local/include -L/usr/local/include/lib /usr/local/lib/libjpeg.so -L/usr/local /usr/local/lib/libnetcdf.so -lcurl -L/usr/kerberos/lib64 -lidn -lldap -lrt -lssl -lcrypto -ldl -lz -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crtn.o -Wl,-soname -Wl,libgdal.so.1 -o .libs/libgdal.so.1.14.1 /usr/lib/libexpat.so: could not read symbols: File in wrong format

Is this a bug, or am I giving incorrect arguments to configure??

Change History (1)

comment:1 by warmerdam, 14 years ago

Component: defaultConfigBuild
Keywords: expat added
Resolution: duplicate
Status: newclosed

I believe this is a duplicate of #3411. Please reopen if that is not the case.

Note: See TracTickets for help on using tickets.