Opened 14 years ago

Closed 13 years ago

#3525 closed defect (wontfix)

Link error building gdal on Red Hat Enterprise Linux v.4 gdal-1.7.1

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

Description (last modified by warmerdam)

I am a first time user following the build instructions I found at: http://trac.osgeo.org/gdal/wiki/BuildingOnUnix:

% cd gdal
% ./configure
% make
% su
Password: ********
# make install
# exit

I first ran configure and then make. make builds the object libraries up until it quits with the error:

g++: /usr/lib/libidn.so: No such file or directory
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/home/firani/USGS/gdal/gdal-1.7.1

Can you give me a clue as to what may be missing on my system?

The tail end of the stdout is as follows:

libtool: link: creating GNU ld script: .libs/libgdal.la.lnkscript
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/3.4.6/crtbeginS.o .libs/libgdal.la.lnkscript  -L/usr/lib /usr/lib/libexpat.so -lrt -L/usr/lib64 -lcurl -L/usr/kerberos/lib -L/usr/kerberos/lib64 /usr/lib/libidn.so -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../.. -L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/3.4.6/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crtn.o      -Wl,-soname -Wl,libgdal.so.1 -o .libs/libgdal.so.1.14.1
g++: /usr/lib/libidn.so: No such file or directory
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/home/firani/USGS/gdal/gdal-1.7.1'
make: *** [check-lib] Error 2
[firani@tautog gdal-1.7.1]$ vi make_out
    -rpath /usr/local/lib \
    -no-undefined \
    -version-info 15:1:14
libtool: link: creating GNU ld script: .libs/libgdal.la.lnkscript
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/3.4.6/crtbeginS.o .libs/libgdal.la.lnkscript  -L/usr/lib /usr/lib/libexpat.so -lrt -L/usr/lib64 -lcurl -L/usr/kerberos/lib -L/usr/kerberos/lib64 /usr/lib/libidn.so -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../.. -L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/3.4.6/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crtn.o      -Wl,-soname -Wl,libgdal.so.1 -o .libs/libgdal.so.1.14.1
g++: /usr/lib/libidn.so: No such file or directory
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/home/firani/USGS/gdal/gdal-1.7.1'
make: *** [check-lib] Error 2
o such file or directory
g++: /usr/lib/libidn.so: No such file or directory
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/home/firani/USGS/gdal/gdal-1.7.1g++: /usr/lib/libidn.so: No such file or directory
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/home/firani/USGS/gdal/gdal-1.7.1o such file or directory
make[1]: *** [libgdal.la] Error 1
or directory
r directory
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/home/firani/USGS/gdal/gdal-1.7.1'
make: *** [check-lib] Error 2
o such file or directory
g++: /usr/lib/libidn.so: No such file or directory
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/home/firani/USGS/gdal/gdal-1.7.1g++: /usr/lib/libidn.so: No such file or directory
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/home/firani/USGS/gdal/gdal-1.7.1o such file or directory
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/home/firani/USGS/gdal/gdal-1.7.1'
make: *** [check-lib] Error 2

Change History (5)

comment:1 by warmerdam, 14 years ago

Component: UtilitiesConfigBuild
Description: modified (diff)

comment:2 by warmerdam, 14 years ago

Status: newassigned

I'm not sure what libidn is for, but on my ubuntu system it is provided by a package called "libidn11-dev". Perhaps there is a vaguely similar package you need to install?

I *suspect* this dependency is coming via a library like curl. If you don't need curl support you might try configuring --without-curl. I'm not sure if it is picked up by default or not.

In your GNUmake.opt file there will be a generated line starting "LIBS =". If you could include that in the ticket, it might be easier to provide additional analysis.

comment:3 by Even Rouault, 14 years ago

Might be worth tring GDAL trunk. There has been a fix that improved 64bit RHEL support (no warranty this will solve the reported issue)

comment:4 by firani41, 14 years ago

Thanks for your ideas: ./configure --without-curl --without-expat worked finally.

I will also look into GDAL trunk although I have no idea what that is at the moment.

comment:5 by Even Rouault, 13 years ago

Resolution: wontfix
Status: assignedclosed
Note: See TracTickets for help on using tickets.