Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59428 - iputils fails to link to flex library
Summary: iputils fails to link to flex library
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-04 11:06 UTC by Anders Eriksson
Modified: 2004-08-04 15:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Eriksson 2004-08-04 11:06:26 UTC
gcc -Os -pipe -include ../include-glibc/glibc-bugs.h -I../include-glibc -I//usr/include -DIPSEC_DEBUG -DIPSEC -DINET6 -Wall   -c -o ipsec_strerror.o ipsec_strerror.c
gcc -Os -pipe -include ../include-glibc/glibc-bugs.h -I../include-glibc -I//usr/include -DIPSEC_DEBUG -DIPSEC -DINET6 -Wall   -c -o pfkey_dump.o pfkey_dump.c
gcc -Os -pipe -include ../include-glibc/glibc-bugs.h -I../include-glibc -I//usr/include -DIPSEC_DEBUG -DIPSEC -DINET6 -Wall   -c -o policy_parse.o policy_parse.c
gcc -Os -pipe -include ../include-glibc/glibc-bugs.h -I../include-glibc -I//usr/include -DIPSEC_DEBUG -DIPSEC -DINET6 -Wall   -c -o policy_token.o policy_token.c
ar rcs libipsec.a ipsec_dump_policy.o    key_debug.o   policy_parse.o ipsec_get_policylen.o  pfkey.o       policy_token.o ipsec_strerror.o       pfkey_dump.o
gcc -Os -pipe -include ../include-glibc/glibc-bugs.h -I../libipsec -I../include-glibc -I//usr/include -DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT -I. -Wall   -c -o setkey.o setkey.c
bison -d parse.y -o parse.c
bison -d parse.y -o parse.c
lex  -t token.l > token.c
gcc -Os -pipe -include ../include-glibc/glibc-bugs.h -I../libipsec -I../include-glibc -I//usr/include -DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT -I. -Wall   -c -o pfkey.o pfkey.c
gcc -Os -pipe -include ../include-glibc/glibc-bugs.h -I../libipsec -I../include-glibc -I//usr/include -DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT -I. -Wall   -c -o pfkey_dump.o pfkey_dump.c
gcc -Os -pipe -include ../include-glibc/glibc-bugs.h -I../libipsec -I../include-glibc -I//usr/include -DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT -I. -Wall   -c -o key_debug.o key_debug.c
gcc -Os -pipe -include ../include-glibc/glibc-bugs.h -I../libipsec -I../include-glibc -I//usr/include -DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT -I. -Wall   -c -o ipsec_strerror.o ipsec_strerror.c
gcc -Os -pipe -include ../include-glibc/glibc-bugs.h -I../libipsec -I../include-glibc -I//usr/include -DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT -I. -Wall   -c -o parse.o parse.c
gcc -Os -pipe -include ../include-glibc/glibc-bugs.h -I../libipsec -I../include-glibc -I//usr/include -DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT -I. -Wall   -c -o token.o token.c
parse.y: In function `setkeymsg':
parse.y:635: warning: dereferencing type-punned pointer will break strict-aliasing rules
parse.y:651: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -o setkey setkey.o parse.o token.o pfkey.o pfkey_dump.o key_debug.o ipsec_strerror.o -L../libipsec -lipsec -lfl 
/usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.4/../../../../i386-pc-linux-uclibc/bin/ld: cannot find -lfl
collect2: ld returned 1 exit status
make: *** [setkey] Error 1
rm token.c

!!! ERROR: net-misc/iputils-021109-r3 failed.
!!! Function src_compile, Line 64, Exitcode 2
!!! setkey failed



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Anders Eriksson 2004-08-04 14:02:49 UTC
Further investigations suggests that this is due to the flex 
libs not being there, when iputils gets built. (Btw, this was on a run with:

ACCEPT_KEYWORDS="~x86"  USE="-* build bootstrap uclibc" emerge  system

)

Building flex with USE=-build gets the lib into place, and iputils builds ok.
Proper fix? Dunno.

Comment 2 SpanKY gentoo-dev 2004-08-04 15:31:55 UTC
use the bootstrap scripts to go from stage1 -> stage2