[gdal-dev] gdal on fedora 13
Nahum Castro
nahumcastro at gmail.com
Tue Sep 7 15:40:35 EDT 2010
I can not compile gdal 1.72 on fedora 13 beacuse of this.
6.3.1. GCC now uses Implicit DSO linking
Key points:
1. ld will no longer automatically search in the dependencies of linked
objects.
2. If your project used both libraries *A* and *B*, it will not compile
unless *A* and *B* are both explicitly linked.
3. There are more explanations on the GCC features page on the Fedora
wiki:
http://fedoraproject.org/w/index.php?title=UnderstandingDSOLinkChange.
Under the new changes, if your package fails its build with a message like:
/usr/bin/ld: gpx-parser.o: undefined reference to symbol 'acos@@GLIBC_2.0'
/usr/bin/ld: note: 'acos@@GLIBC_2.0' is defined in DSO /lib/libm.so.6
so try adding it to the linker command line
Then the line that builds the specified .o needs to explicitly link *libm*.
What i have to modify to implicit DSO linking all libraries.
/bin/sh /home/nahum/Descargas/gdal-1.7.2/libtool --mode=link g++
gdalmanage.lo /home/nahum/Descargas/gdal-1.7.2/libgdal.la -o gdalmanage
libtool: link: g++ .libs/gdalmanage.o -o .libs/gdalmanage
/home/nahum/Descargas/gdal-1.7.2/.libs/libgdal.so
/usr/bin/ld: /usr/local/lib/libNCSUtil.so.0: undefined reference to symbol
'pthread_cancel@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_cancel@@GLIBC_2.2.5' is defined in DSO
/lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [gdalmanage] Error 1
make[1]: se sale del directorio `/home/nahum/Descargas/gdal-1.7.2/apps'
make: *** [apps-target] Error 2
Thanks in advance
--
Nahum Castro González
León, Guanajuato, México
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100907/6090ad73/attachment.html
More information about the gdal-dev
mailing list