[Top][All Lists]

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

Re: libposix

From: Eric Blake
Subject: Re: libposix
Date: Mon, 04 Oct 2010 14:08:24 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4

On 10/04/2010 01:55 PM, Bruno Haible wrote:
Hello Bruce,

/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2   -o pt_chown pt_chown.o 
libtool: link: gcc -g -O2 -o .libs/pt_chown pt_chown.o
./.libs/libposix.so -Wl,-rpath -Wl,/usr/local/lib
./.libs/libposix.so: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make[4]: *** [pt_chown] Error 1

libposix.so ought to have been linked with -lrt. I suggest two modifications:

1)   libposix_la_LDFLAGS += -no-undefined

    This should ensure that on all platforms, the linking of libposix.so will
    fail if there are undefined references. Without waiting for a program to
    be linked with libposix.

With the nice side effect of allowing it to be used on cygwin and mingw as a shared library. :)

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

reply via email to

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