First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 212970
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Robin Johnson <robbat2@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jeff Mitchell <jeffrey.mitchell@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
amanda-2.5.2_p1-fix-asneeded.patch Modifies two Makefile.ams to fix breakage patch Jeff Mitchell 2008-03-10 19:21 0000 951 bytes Details | Diff
amanda_ebuild_patch Patches the 2.5.2_p1-r3 ebuild patch Jeff Mitchell 2008-03-10 19:24 0000 524 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 212970 depends on: Show dependency tree
Bug 212970 blocks: 129413
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-03-10 19:18 0000
Amanda won't compile complaining about missing symbols if you are using
-Wl,--as-needed in your LDFLAGS.

Reproducible: Always




Attached patch and ebuild diff fixes it for latest amanda in portage

------- Comment #1 From Jeff Mitchell 2008-03-10 19:21:20 0000 -------
Created an attachment (id=145763) [edit]
Modifies two Makefile.ams to fix breakage

------- Comment #2 From Jeff Mitchell 2008-03-10 19:24:00 0000 -------
Created an attachment (id=145764) [edit]
Patches the 2.5.2_p1-r3 ebuild

------- Comment #3 From Jeff Mitchell 2008-03-10 20:37:56 0000 -------
I've contacted upstream.  Will update this as appropriate, although hopefully
this can be put into a -r4 ebuild in main Portage tree.

------- Comment #4 From Diego E. 'Flameeyes' Pettenò 2008-06-07 12:38:21 0000 -------
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.

------- Comment #5 From Robin Johnson 2008-06-26 01:22:28 0000 -------
in r4.

------- Comment #6 From Jeff Mitchell 2008-09-15 16:23:21 0000 -------
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

------- Comment #7 From Robin Johnson 2008-09-18 04:35:25 0000 -------
2.6.0* has this fixed properly use that.

First Last Prev Next    No search results available      Search page      Enter new bug