Summary: | app-backup/amanda doesn't compile w/ -Wl,--as-needed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeff Mitchell <jeffrey.mitchell> |
Component: | New packages | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | app-backup, flameeyes |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 129413 | ||
Attachments: |
Modifies two Makefile.ams to fix breakage
Patches the 2.5.2_p1-r3 ebuild |
Description
Jeff Mitchell
2008-03-10 19:18:23 UTC
Created attachment 145763 [details, diff]
Modifies two Makefile.ams to fix breakage
Created attachment 145764 [details, diff]
Patches the 2.5.2_p1-r3 ebuild
I've contacted upstream. Will update this as appropriate, although hopefully this can be put into a -r4 ebuild in main Portage tree. The source patch is good, the ebuild patch is not ;) You should apply patches in src_unpack, not src_compile, and you should be running at least eautomake if you change the Makefile.am files. in r4. Oddly, both ebuilds are broken, now -- both my -r3 with the patches above, and the in-tree -r4. Not sure if this is an --as-needed problem or not, or maybe something with portage/environment changes? -r3 is currently installed, so it compiled before. Here's what I get: /bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -march=opteron -O2 -pipe -Wl,--as-needed -o amdd amdd.o ../common-src/libamanda.la libamtape.la ../common-src/libamanda.la -ldb -lm -lreadline -lcurses -lnsl -lresolv x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -march=opteron -O2 -pipe -Wl,--as-needed -o .libs/amdd amdd.o ./.libs/libamtape.so ../common-src/.libs/libamanda.so -ldb -lm -lreadline -lcurses -lnsl -lresolv ./.libs/libamtape.so: undefined reference to `debug_vstralloc' ./.libs/libamtape.so: undefined reference to `getconf_readblocksize' ./.libs/libamtape.so: undefined reference to `debug_areads' ./.libs/libamtape.so: undefined reference to `debug_alloc' ./.libs/libamtape.so: undefined reference to `build_header' ./.libs/libamtape.so: undefined reference to `fh_init' ./.libs/libamtape.so: undefined reference to `debug_amtable_alloc' ./.libs/libamtape.so: undefined reference to `debug_newvstralloc' ./.libs/libamtape.so: undefined reference to `quote_string' ./.libs/libamtape.so: undefined reference to `debug_alloc_push' ./.libs/libamtape.so: undefined reference to `fullwrite' ./.libs/libamtape.so: undefined reference to `vstrextend' ./.libs/libamtape.so: undefined reference to `debug_newstralloc' ./.libs/libamtape.so: undefined reference to `split' ./.libs/libamtape.so: undefined reference to `debug_printf' ./.libs/libamtape.so: undefined reference to `parse_file_header' ./.libs/libamtape.so: undefined reference to `areads_relbuf' ./.libs/libamtape.so: undefined reference to `sanitise_filename' ./.libs/libamtape.so: undefined reference to `debug_stralloc' ./.libs/libamtape.so: undefined reference to `amtable_free' collect2: ld returned 1 exit status make[1]: *** [amdd] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-backup/amanda-2.5.2_p1-r3/work/amanda-2.5.2p1/tape-src' make: *** [all-recursive] Error 1 2.6.0* has this fixed properly use that. |