#22 missing library flag for linux.i686

Compile/Install
closed-fixed
5
2001-07-25
2001-05-20
Alon Levy
No

Hi,

I am running debian unstable with
gcc/g++ version 2.95.4
libc version: 2.2.3
libc release: stable

and when compiling sgl version 0.3.0 with the
command(s):
make linux.i686 / make linux.i686.dbg
it stops on error when linking testglobe.exe
(compilation is fine, so is library linking)

problem:
missing implementation of clock_get in libsgl.so
(responsible source file is sglTime.h) (i.e. there is
a function in the library that is unlinked, checked
with nm).

solution:
add -lrt (link with /usr/lib/librt*) in
make/make.platform.linux.i686).

comments:
i'm not sure if this is a quirk of the version of
gcc/libc i'm using since i'm on the unstable branch
of debian, or if this is a change that's for keeps.

Alon

Discussion

  • Scott McMillan

    Scott McMillan - 2001-06-08

    Logged In: YES
    user_id=2995

    This is a known issue. The version of Linux I use does not
    have librt.so, so it is not included. I should probably put
    a comment in the make.platform.linux.* to the effect that
    this library is needed for more recent distributions gcc >
    2.95.2, libc >2.2.3 but I don't know exactly what introduced
    the librt.so.

    This would all be fixed with a proper configure script which
    I don't know how to do.

     
  • Scott McMillan

    Scott McMillan - 2001-06-08
    • assigned_to: nobody --> mcmillan
     
  • Scott McMillan

    Scott McMillan - 2001-07-25
    • status: open --> closed-fixed
     
  • Scott McMillan

    Scott McMillan - 2001-07-25

    Logged In: YES
    user_id=2995

    dependence on librt.so for Linux platforms has been removed
    with the latest release. It has reverted to using
    gettimeofday() instead.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks