Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158737 - mysql-4.1.x fails with ldflag --as-needed (with USE="raid"?)
Summary: mysql-4.1.x fails with ldflag --as-needed (with USE="raid"?)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2006-12-21 07:28 UTC by Hanno Zysik (geki)
Modified: 2006-12-27 14:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
mysql-4.1.x USE="raid"; filter ldflag --as-needed (mysql-as-needed.diff,492 bytes, patch)
2006-12-21 08:36 UTC, Hanno Zysik (geki)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Zysik (geki) 2006-12-21 07:28:41 UTC
Error:

i686-pc-linux-gnu-gcc -DDBUG_OFF -O2 -mtune=pentium4 -march=pentium4 -pipe -momit-leaf-frame-pointer -fomit-frame-pointer -DHAVE_ERRNO_AS_DEFINE=1 -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -s -rdynamic -o isamlog isamlog.o  -lstdc++ libnisam.a ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lcrypt -lnsl -lm -lpthread
i686-pc-linux-gnu-gcc -DDBUG_OFF -O2 -mtune=pentium4 -march=pentium4 -pipe -momit-leaf-frame-pointer -fomit-frame-pointer -DHAVE_ERRNO_AS_DEFINE=1 -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -s -rdynamic -o test1 test1.o  -lstdc++ libnisam.a ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lcrypt -lnsl -lm -lpthread
../mysys/libmysys.a(raid.o): In function `my_raid_close':
raid.cc:(.text+0x9ac): undefined reference to `operator delete(void*)'
../mysys/libmysys.a(raid.o): In function `my_raid_create':
raid.cc:(.text+0xb29): undefined reference to `operator new(unsigned int)'
raid.cc:(.text+0xbaa): undefined reference to `operator delete(void*)'
../mysys/libmysys.a(raid.o): In function `my_raid_open':
raid.cc:(.text+0x1537): undefined reference to `operator new(unsigned int)'
raid.cc:(.text+0x15b0): undefined reference to `operator delete(void*)'
collect2: ld returned 1 exit status
make[2]: *** [test1] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
../mysys/libmysys.a(raid.o): In function `my_raid_close':
raid.cc:(.text+0x9ac): undefined reference to `operator delete(void*)'
../mysys/libmysys.a(raid.o): In function `my_raid_create':
raid.cc:(.text+0xb29): undefined reference to `operator new(unsigned int)'
raid.cc:(.text+0xbaa): undefined reference to `operator delete(void*)'
../mysys/libmysys.a(raid.o): In function `my_raid_open':
raid.cc:(.text+0x1537): undefined reference to `operator new(unsigned int)'
raid.cc:(.text+0x15b0): undefined reference to `operator delete(void*)'
collect2: ld returned 1 exit status
make[2]: *** [isamlog] Fehler 1
i686-pc-linux-gnu-gcc -DDBUG_OFF -O2 -mtune=pentium4 -march=pentium4 -pipe -momit-leaf-frame-pointer -fomit-frame-pointer -DHAVE_ERRNO_AS_DEFINE=1 -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -s -rdynamic -o test2 test2.o  -lstdc++ libnisam.a ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lcrypt -lnsl -lm -lpthread
../mysys/libmysys.a(raid.o): In function `my_raid_close':
raid.cc:(.text+0x9ac): undefined reference to `operator delete(void*)'
../mysys/libmysys.a(raid.o): In function `my_raid_create':
raid.cc:(.text+0xb29): undefined reference to `operator new(unsigned int)'
raid.cc:(.text+0xbaa): undefined reference to `operator delete(void*)'
../mysys/libmysys.a(raid.o): In function `my_raid_open':
raid.cc:(.text+0x1537): undefined reference to `operator new(unsigned int)'
raid.cc:(.text+0x15b0): undefined reference to `operator delete(void*)'
collect2: ld returned 1 exit status
make[2]: *** [test2] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-4.1.22/work/mysql/isam'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-4.1.22/work/mysql'
make: *** [all] Fehler 2

I will attach a patch.
Comment 1 Hanno Zysik (geki) 2006-12-21 08:36:47 UTC
Created attachment 104518 [details, diff]
mysql-4.1.x USE="raid"; filter ldflag --as-needed
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-12-21 12:48:59 UTC
Comment on attachment 104518 [details, diff]
mysql-4.1.x USE="raid"; filter ldflag --as-needed

No, that doesn't solve anything at all.
Comment 3 Francesco R. (RETIRED) gentoo-dev 2006-12-27 14:05:36 UTC
As of 2006-12-27 this is a wontfix, raid has been removed in 5.0, real fix is not trivial, take a look at http://www.gentoo.org/proj/en/qa/asneeded.xml .

sorry