Opened 15 years ago

Last modified 15 years ago

#893 closed defect (fixed)

Linking on Solaris 9 fails because nanosleep() is in librt

Reported by: uschindler@… Owned by: warmerdam
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords:


when trying to make gdal on Solaris 9 SPARC we failed during linking, because 
ld did not found the function "nanosleep". By Googling I found out that 
nanosleep is in librt, so a -lrt is missing. After adding this to the LIBS 
variable in GDALmake.opt it works.
So maybe this is missing in your configure-tests.

Configure Line was:
./configure --prefix=/pangaea/gnu --without-python --with-xerces --with-xerces-
inc=/pangaea/gnu/include --with-xerces-lib="-L/pangaea/gnu/lib -lxerces-c -
pthreads" --with-libz=/opt/csw --with-png=/opt/csw --with-threads="-pthreads"

Change History (1)

comment:1 Changed 15 years ago by warmerdam


This was reported by another user, and the CVS configure now adds -lrt if
it exists on the system. 

Thanks for the report!

Note: See TracTickets for help on using tickets.