On Mon, Nov 9, 2009 at 9:39 AM, Subrata Modak
<[email protected]> wrote:
> On Mon, 2009-11-09 at 07:49 -0500, Mike Frysinger wrote:
>> On Monday 09 November 2009 06:17:09 Subrata Modak wrote:
>> > I get the following failure with todayś CVS. ./configure has been done
>> > before make:
>> >
>> > gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
>> > -I/ltp-intermediate-20091109/testcases/kernel/include
>> > -I/ltp-intermediate-20091109/testcases/kernel/containers/mqns/../libclone
>> >  -I../../../../include -I../../../../include
>> >  -L/ltp-intermediate-20091109/testcases/kernel/containers/mqns/../libclone
>> >  -L../../../../lib  mqns_01.c   -lltp -lclone -lpthread -lrt -o mqns_01
>> >  /ltp-intermediate-20091109/testcases/kernel/containers/mqns/../libclone/li
>> > bclone.a(libclone.o): In function `do_clone_tests':
>> >  /ltp-intermediate-20091109/testcases/kernel/containers/libclone/libclone.c
>> > :25: undefined reference to `ltp_clone_quick' collect2: ld returned 1 exit
>> >  status
>>
>> should be fixed now.  static lib linking order is picky.
>
> Thanks Mike. building fine now.

When you switch that back though, it fails to compile on Gentoo. Hence
that's why I did `-lclone $(LDLIBS) -lpthread -lrt'.

Some autoconf tests need to be created to detect broken linkers like
this because it's really annoying doing this tug-of-war with the
library ordering...

Thanks,
-Garrett

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to