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.
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.
use the bootstrap scripts to go from stage1 -> stage2