#149 Commit b0ccdd451b... is a regression

2.5.37
open
nobody
5
3 days ago
2013-02-23
joshuacov
No

The latest git compiles fine, however when I try to link something to libfl.so/libfl_pic.so I get this:
[###]$ /usr/lib64/libfl_.so.2.0.0: undefined reference to `yylex'
[###]$ collect2: error: ld returned 1 exit status

Some extra info:
[###]$ ldd /usr/lib64/libfl.so.2.0.0
linux-vdso.so.1 => (0x00007fff8fdff000)
libm.so.6 => /lib64/libm.so.6 (0x00007f7b747be000)
libc.so.6 => /lib64/libc.so.6 (0x00007f7b74407000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7b74cd2000)

[###]$ readelf -s /usr/lib64/libfl.so.2.0.0
Symbol table '.dynsym' contains 15 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000590 0 SECTION LOCAL DEFAULT 9
2: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTab
3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
4: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND yylex
5: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses
6: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable
7: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.2.5 (2)
8: 0000000000201010 0 NOTYPE GLOBAL DEFAULT ABS _edata
9: 0000000000201018 0 NOTYPE GLOBAL DEFAULT ABS _end
10: 0000000000201010 0 NOTYPE GLOBAL DEFAULT ABS __bss_start
11: 00000000000005d0 24 FUNC GLOBAL DEFAULT 11 main
12: 0000000000000590 0 FUNC GLOBAL DEFAULT 9 _init
13: 00000000000006e8 0 FUNC GLOBAL DEFAULT 12 _fini
14: 00000000000006e0 6 FUNC GLOBAL DEFAULT 11 yywrap

[###]$ nm -C -u /usr/lib64/libfl.so.2.0.0
nm: /usr/lib64/libfl.so.2.0.0: no symbols

This commit breaks a working code. For example the build of the latest GNU Automake is broken because the tests lex-clean-cxx / lex-depend-csxx / silent-many-languages cannot find yylex. Can you revert/fix this?

Discussion