buglwIP - A Lightweight TCP/IP stack - Bugs: bug #46091, unix port needs to link with rt...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #46091: unix port needs to link with rt for clock_gettime

Submitter:  Erik Ekman <yarrick>
Submitted:  Thu 01 Oct 2015 08:40:34 AM UTC
   
 
Category:  Platform ports Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Thu 01 Oct 2015 07:23:16 PM UTC, comment #1: 

I hope that works on all systems... I've just pushed the fix as requested.

Simon Goldschmidt <goldsimon>
Group administrator
Thu 01 Oct 2015 08:40:34 AM UTC, original submission:  

According to manpage, clock_gettime needs to link with -lrt (for glibc versions before 2.17)

liblwipcommon.a(sys_arch.o): In function `sys_now':
/home/travis/build/yarrick/lwip-merged/contrib/ports/unix/proj/minimal/../../../../ports/unix/sys_arch.c:479: undefined reference to `clock_gettime'
liblwipcommon.a(sys_arch.o): In function `sys_jiffies':
/home/travis/build/yarrick/lwip-merged/contrib/ports/unix/proj/minimal/../../../../ports/unix/sys_arch.c:550: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make: * [echop] Error 1


Erik Ekman <yarrick>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by yarrick (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-10-01 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code