Opened 19 years ago

Last modified 19 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:
Cc:

Description

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 by warmerdam, 19 years ago

Uwe, 

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.