coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

coreutils-8.15.74-be17e3 build failure on FreeBSD 9.0 x86


From: Nelson H. F. Beebe
Subject: coreutils-8.15.74-be17e3 build failure on FreeBSD 9.0 x86
Date: Sat, 17 Mar 2012 08:10:42 -0600 (MDT)

My normal builds of coreutils-8.15.74-be17e3 failed on
FreeBSD 9.0 x86 like this:

          CCLD     sort
        sort.o: In function `sortlines':
        sort.c:(.text+0x670e): undefined reference to `pthread_create'

I then tried a fresh build:

        % set path= ( /bin /usr/bin )
        % ./configure --disable-threads && make all check
          CCLD     sort
        sort.o: In function `sortlines':
        /local/build/cc/coreutils-8.15.74-be17e3/src/sort.c:3571: undefined 
reference to `pthread_create'
        *** Error code 1

If threads are disabled, why is sort.c still trying to use them?

I restarted with

        % make LIBS=-lthr

That got further, then died with

          CCLD     timeout
        timeout.o: In function `settimeout':
        /local/build/cc/coreutils-8.15.74-be17e3/src/timeout.c:118: undefined 
reference to `timer_create'
        /local/build/cc/coreutils-8.15.74-be17e3/src/timeout.c:120: undefined 
reference to `timer_settime'
        /local/build/cc/coreutils-8.15.74-be17e3/src/timeout.c:125: undefined 
reference to `timer_delete'

I tried again with

        % make LIBS=-lpthread

but the same failure occurred.

Yet another try with

        % make LIBS='-lpthread -lrt'

still failed; the symbols in -lrt provide these names:

        00000100 T __timer_create
        000000a0 T __timer_delete
        00000060 T __timer_getoverrun
        00000080 T __timer_gettime
        00000030 T __timer_oshandle
        00000040 T __timer_settime

At that point, I quit trying.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: address@hidden  -
- 155 S 1400 E RM 233                       address@hidden  address@hidden -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]