Summary: | net-im/ekg2 fails to build with --as-needed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | New packages | Assignee: | Michał Górny <mgorny> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | esigra |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 129413 | ||
Attachments: | Build log |
Description
Diego Elio Pettenò (RETIRED)
![]() Created attachment 259170 [details]
Build log
Which readline version are you using? It seems that configure tests somehow fail to find the necessary functions... sys-libs/readline-6.1_p2 let me see if I can get the config.log as well. Okay this one's easy! configure:30749: result: /usr/include/readline/readline.h configure:30800: checking for rl_set_prompt configure:30856: i686-pc-linux-gnu-gcc -o conftest -O2 -pipe -Wall -std=gnu99 -lreadline -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu conftest.c -lresolv >&5 /var/tmp/portage/net-im/ekg2-0.3.0_rc5/temp/ccshoMgO.o: In function `main': conftest.c:(.text+0x7): undefined reference to `rl_set_prompt' collect2: ld returned 1 exit status see -lreadline before conftest.c? --as-needed drops it away. In configure.ac LDFLAGS="$READLINE_LIBS $LDFLAGS" it shouldn't add it to LDFLAGS but to LIBS, the two have different semantics. Supposedly fixed in _rc7. |