LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-25-2003, 07:39 PM   #1
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
RedHat and src.rpm build of MySQL


A standard .tar.gz of MySQL 4.0.12 builds find on RedHat 8, or at least appears to. The src.rpm file however does not. Has anyone gotten this to build? Whether you love or hate RPM, it does make it easier to keep up with versions and dependencies on multiple servers as compared to a regular source build. Thanks...

gcc -O3 -DDBUG_OFF -O2 -march=i686 -rdynamic -o isamchk isamchk.o sort.o libnisam.a ../md
../mysys/libmysys.a(my_tempnam.o): In function `my_tempnam':
my_tempnam.o(.text+0x50): the use of `tempnam' is dangerous, better use `mkstemp'
../mysys/libmysys.a(raid.o): In function `my_raid_create':
raid.o(.text+0x95): undefined reference to `operator new(unsigned)'
raid.o(.text+0x11f): undefined reference to `operator delete(void*)'
../mysys/libmysys.a(raid.o): In function `my_raid_open':
raid.o(.text+0x175): undefined reference to `operator new(unsigned)'
raid.o(.text+0x1fc): undefined reference to `operator delete(void*)'
../mysys/libmysys.a(raid.o): In function `my_raid_close':
raid.o(.text+0x715): undefined reference to `operator delete(void*)'
collect2: ld returned 1 exit status
make[2]: *** [isamchk] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/mysql-4.0.12/isam'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/mysql-4.0.12'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.62481 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.62481 (%build)
 
Old 03-26-2003, 07:10 AM   #2
EvilTwinSkippy
Member
 
Registered: Mar 2003
Location: Philadelphia, PA
Distribution: RedHat, Gentoo
Posts: 51

Rep: Reputation: 15
I dunno. I rather like Gentoo's ebuild system personally.

That said I'm having a linking error with 3.23.56...

Any case, I see that the system is choking when trying to compile in raid support. Is it possible to manually disable that feature in your ./configure step?

Food for thought.
 
Old 03-26-2003, 10:21 AM   #3
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Original Poster
Rep: Reputation: 30
Took out --with-raid from the spec file... Still no go. Can't put a finger on what it's failing on now quite as easily:

sql_table.o(.text+0x4d28): undefined reference to `operator new[](unsigned)'
sql_table.o(.text+0x5152): undefined reference to `operator delete[](void*)'
../libmysqld.a(sql_update.o): In function `multi_update:repare(List<Item>&)':
sql_update.o(.text+0x1430): undefined reference to `operator new[](unsigned)'
../libmysqld.a(sql_update.o): In function `multi_update::~multi_update [not-in-charge]()':
sql_update.o(.text+0x18f0): undefined reference to `operator delete[](void*)'
sql_update.o(.text+0x1993): undefined reference to `operator delete[](void*)'
../libmysqld.a(sql_update.o): In function `multi_update::~multi_update [in-charge]()':
sql_update.o(.text+0x1a80): undefined reference to `operator delete[](void*)'
sql_update.o(.text+0x1b23): undefined reference to `operator delete[](void*)'
../libmysqld.a(sql_update.o): In function `multi_update::~multi_update [in-charge deleting]()':
sql_update.o(.text+0x1c10): undefined reference to `operator delete[](void*)'
../libmysqld.a(sql_update.o)(.text+0x1cb3): more undefined references to `operator delete[](void*)' follow
../libmysqld.a(item_cmpfunc.o)(.gnu.linkonce.d._ZTV9Item_cond+0x34): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(item_cmpfunc.o)(.gnu.linkonce.d._ZTV8cmp_item+0x10): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(item_cmpfunc.o)(.gnu.linkonce.d._ZTV8cmp_item+0x14): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(item_cmpfunc.o)(.gnu.linkonce.d._ZTV9in_vector+0x10): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(item_cmpfunc.o)(.gnu.linkonce.d._ZTV9in_vector+0x14): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(item_cmpfunc.o)(.gnu.linkonce.d._ZTV15Item_bool_func2+0x34): more undefined references to `__cxa_pure_virtual' follow
../libmysqld.a(item_sum.o): In function `Item_sum_count_distinct::~Item_sum_count_distinct [not-in-charge]()':
item_sum.o(.text+0x1d33): undefined reference to `operator delete[](void*)'
../libmysqld.a(item_sum.o): In function `Item_sum_count_distinct::~Item_sum_count_distinct [in-charge]()':
item_sum.o(.text+0x1e23): undefined reference to `operator delete[](void*)'
../libmysqld.a(item_sum.o): In function `Item_sum_count_distinct::~Item_sum_count_distinct [in-charge deleting]()':
item_sum.o(.text+0x1f13): undefined reference to `operator delete[](void*)'
../libmysqld.a(item_sum.o): In function `Item_sum_count_distinct::setup(THD*)':
item_sum.o(.text+0x23b0): undefined reference to `operator delete[](void*)'
../libmysqld.a(item_sum.o)(.gnu.linkonce.d._ZTV12Item_sum_bit+0xa8): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(item_sum.o)(.gnu.linkonce.d._ZTV12Item_sum_bit+0xb0): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(item_sum.o)(.gnu.linkonce.d._ZTV15Item_sum_hybrid+0xa0): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(item_sum.o)(.gnu.linkonce.d._ZTV15Item_sum_hybrid+0xa8): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(item_sum.o)(.gnu.linkonce.d._ZTV12Item_sum_int+0xa0): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(item_sum.o)(.gnu.linkonce.d._ZTV12Item_sum_int+0xa4): more undefined references to `__cxa_pure_virtual' follow
../libmysqld.a(opt_ft.o): In function `get_ft_or_quick_select_for_ref(st_table*, st_join_table*)':
opt_ft.o(.text+0x46): undefined reference to `operator new(unsigned)'
../libmysqld.a(opt_ft.o): In function `FT_SELECT::~FT_SELECT [in-charge deleting]()':
opt_ft.o(.gnu.linkonce.t._ZN9FT_SELECTD0Ev+0x24): undefined reference to `operator delete(void*)'
../libmysqld.a(opt_range.o): In function `get_quick_select(st_qsel_param*, unsigned, SEL_ARG*)':
opt_range.o(.text+0x443d): undefined reference to `operator new(unsigned)'
../libmysqld.a(opt_range.o): In function `get_quick_select_for_ref(st_table*, st_table_ref*)':
opt_range.o(.text+0x4aee): undefined reference to `operator new(unsigned)'
../libmysqld.a(opt_range.o): In function `QUICK_SELECT::~QUICK_SELECT [in-charge deleting]()':
opt_range.o(.text+0x4b2): undefined reference to `operator delete(void*)'
../libmysqld.a(opt_range.o): In function `QUICK_SELECT_DESC::~QUICK_SELECT_DESC [in-charge deleting]()':
opt_range.o(.gnu.linkonce.t._ZN17QUICK_SELECT_DESCD0Ev+0x24): undefined reference to `operator delete(void*)'
../libmysqld.a(procedure.o)(.gnu.linkonce.d._ZTV9Procedure+0x10): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(procedure.o)(.gnu.linkonce.d._ZTV9Procedure+0x14): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(procedure.o)(.gnu.linkonce.d._ZTV9Procedure+0x18): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(procedure.o)(.gnu.linkonce.d._ZTV9Procedure+0x1c): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(procedure.o)(.gnu.linkonce.d._ZTV9Item_proc+0x30): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(procedure.o)(.gnu.linkonce.d._ZTV9Item_proc+0x34): more undefined references to `__cxa_pure_virtual' follow
../libmysqld.a(procedure.o): In function `Procedure::~Procedure [in-charge deleting]()':
procedure.o(.gnu.linkonce.t._ZN9ProcedureD0Ev+0x26): undefined reference to `operator delete(void*)'
../libmysqld.a(sql_analyse.o): In function `proc_analyse_init(THD*, st_order*, select_result*, List<Item>&)':
sql_analyse.o(.text+0xbf): undefined reference to `operator new(unsigned)'
../libmysqld.a(sql_analyse.o)(.gnu.linkonce.d._ZTV10field_info+0x10): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(sql_analyse.o)(.gnu.linkonce.d._ZTV10field_info+0x14): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(sql_analyse.o)(.gnu.linkonce.d._ZTV10field_info+0x18): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(sql_analyse.o)(.gnu.linkonce.d._ZTV10field_info+0x1c): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(sql_analyse.o)(.gnu.linkonce.d._ZTV10field_info+0x20): undefined reference to `__cxa_pure_virtual'
../libmysqld.a(sql_analyse.o)(.gnu.linkonce.d._ZTV10field_info+0x24): more undefined references to `__cxa_pure_virtual' follow
../libmysqld.a(sql_analyse.o): In function `analyse::~analyse [in-charge deleting]()':
sql_analyse.o(.gnu.linkonce.t._ZN7analyseD0Ev+0x62): undefined reference to `operator delete(void*)'
collect2: ld returned 1 exit status
make[3]: *** [mysqltest] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/mysql-4.0.12/libmysqld/examples'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/mysql-4.0.12/libmysqld'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/mysql-4.0.12'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.45930 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.45930 (%build)
 
Old 04-15-2003, 05:23 PM   #4
EvilTwinSkippy
Member
 
Registered: Mar 2003
Location: Philadelphia, PA
Distribution: RedHat, Gentoo
Posts: 51

Rep: Reputation: 15
Time to invoke vodoo

Alright dude. Time to whip out the really perfunctory fixes.

Item 1: completely nuke the source folder and unstuff the binary again
Item 2: Make sure you also have the mysql-dev source rpm

Beyond that, I can only suggest sucking down the tarball from mysql.com, and performing a DIFF between it and the RedHat source folder. Apply the changes, one by one, to the mysql source, and see if it compiles.

While you are at it, don't forget to push that rock back up to the top of the hill again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
anaconda build from src rpm fails LampMan Fedora 3 03-28-2005 02:55 AM
rpmbuild doesn't produce the source code in /usr/src/redhat/BUILD Niceman2005 Linux - Software 2 11-29-2004 05:58 PM
Mandrake 10.0 Nforce 2 src.rpm build failure iihay Mandriva 7 07-19-2004 07:08 PM
how do I compile or build a src.rpm driver? Falafel Linux - Software 1 11-19-2003 06:40 AM
How to build src.rpm on RH9 xprometeus Linux - Distributions 3 07-20-2003 08:04 AM


All times are GMT -5. The time now is 09:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration