Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mysql emerge Error with isamchk
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
quantus
n00b
n00b


Joined: 30 Jul 2002
Posts: 60

PostPosted: Fri Jan 03, 2003 3:38 am    Post subject: Mysql emerge Error with isamchk Reply with quote

I'm having issues building mysql on a newly installed gentoo machine. I elected to do a fresh buildf ( from 1.4_rc2; stage1) and mysql fails to emerge:
Code:
source='sort.c' object='sort.o' libtool=no \
depfile='.deps/sort.Po' tmpdepfile='.deps/sort.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include     -O3 -DDBUG_OFF -march=pentium3  -pipe -fforce-addr -fomit-frame-pointer -frerun-loop-opt -funroll-loops -falign-functions=4 -O3  -c `test -f sort.c || echo './'`sort.c
/bin/sh ../libtool --mode=link gcc  -O3 -DDBUG_OFF -march=pentium3  -pipe -fforce-addr -fomit-frame-pointer -frerun-loop-opt -funroll-loops -falign-functions=4 -O3   -rdynamic  -o isamchk  isamchk.o sort.o -lstdc++ libnisam.a ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lz -lcrypt -lnsl -lm  -lpthread
mkdir .libs
gcc -O3 -DDBUG_OFF -march=pentium3 -pipe -fforce-addr -fomit-frame-pointer -frerun-loop-opt -funroll-loops -falign-functions=4 -O3 -rdynamic -o isamchk isamchk.o sort.o  -lstdc++ libnisam.a ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lz -lcrypt -lnsl -lm -lpthread
../mysys/libmysys.a(my_tempnam.o)(.text+0x57): In function `my_tempnam':
: the use of `tempnam' is dangerous, better use `mkstemp'
../mysys/libmysys.a(raid.o)(.text+0x9b): In function `my_raid_create':
: undefined reference to `operator new(unsigned)'
../mysys/libmysys.a(raid.o)(.text+0x133): In function `my_raid_create':
: undefined reference to `operator delete(void*)'
../mysys/libmysys.a(raid.o)(.text+0x193): In function `my_raid_open':
: undefined reference to `operator new(unsigned)'
../mysys/libmysys.a(raid.o)(.text+0x223): In function `my_raid_open':
: undefined reference to `operator delete(void*)'
../mysys/libmysys.a(raid.o)(.text+0x87f): In function `my_raid_close':
: undefined reference to `operator delete(void*)'
collect2: ld returned 1 exit status
make[2]: *** [isamchk] Error 1
make[2]: Leaving directory `/var/tmp/portage/mysql-3.23.54a/work/mysql-3.23.54a/isam'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mysql-3.23.54a/work/mysql-3.23.54a'
make: *** [all] Error 2

My make.conf has the following changes from default
Code:
USE="-oss -3dnow apm -arts -avi berkdb crypt -cups -encode gdbm gif -gpm -gtk -imlib -java jpeg -kde -gnome -libg++ -libwww -mikmod mmx -motif -mpeg ncurses nls -oggvorbis -opengl pam -pdflib png python -qt -qtmt -quicktime readline see -sdl -slang -spell ssl static svga tcpd truetype X xml2 -xmms -xv zlib"
and
Code:
CFLAGS="-march=pentium3 -O3 -pipe -fforce-addr -fomit-frame-pointer -frerun-loop-opt -funroll-loops -falign-functions=4"


I've also tried tweaking CFLAGS down to "-march=pentium3 -O3 -pipe" without any luck either. Any Ideas would be greatly appreciated.
Back to top
View user's profile Send private message
quantus
n00b
n00b


Joined: 30 Jul 2002
Posts: 60

PostPosted: Mon Jan 06, 2003 8:52 pm    Post subject: Please Help Reply with quote

Any Ideas at all? Is there a better forum for this question?

-Doug
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Jan 06, 2003 9:47 pm    Post subject: Reply with quote

You could make a case for either here or Portage & Programming.

The undefined references you quote look like they are to memory allocation routines in the standard C++ library. Normally, I would say that libstdc++ needs to be added to the linker line, but it's in there. Is there anything unusual about your compiler setup? What does "emerge -s ^gcc$" say about which gcc ebuild you are using?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
quantus
n00b
n00b


Joined: 30 Jul 2002
Posts: 60

PostPosted: Wed Jan 08, 2003 6:58 am    Post subject: Reply with quote

Code:
*  sys-devel/gcc
      Latest version available: 3.2.1
      Latest version installed: 3.2.1
      Size of downloaded files: 20,122 kB
      Homepage:    http://www.gnu.org/software/gcc/gcc.html
      Description: Modern C/C++ compiler written by the GNU people
It also fails when -static is in the USE. I'm stumped on this. It'e the only thing that won't emerge... Apache and other goodies compile just fine. Could this be remotely related to some kernel option I have enabled? i've tried gentoo-sources and stock with same results. I've even done emerge -e world serveral times to no avail...
Back to top
View user's profile Send private message
quantus
n00b
n00b


Joined: 30 Jul 2002
Posts: 60

PostPosted: Fri Jan 31, 2003 3:05 am    Post subject: Still does not compile.... Reply with quote

Last call before reporting this as a bug I guess.. I've tried this on four different gentoo installs, multiple times... All return...

Code:
gcc -O3 -DDBUG_OFF -mcpu=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -O3 -rdynamic -o isamchk isamchk.o sort.o  -lstdc++ libnisam.a ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lz -lcrypt -lnsl -lm -lpthread
../mysys/libmysys.a(my_tempnam.o)(.text+0x4a): In function `my_tempnam':
: the use of `tempnam' is dangerous, better use `mkstemp'
../mysys/libmysys.a(raid.o)(.text+0x93): In function `my_raid_create':
: undefined reference to `operator new(unsigned)'
../mysys/libmysys.a(raid.o)(.text+0x12b): In function `my_raid_create':
: undefined reference to `operator delete(void*)'
../mysys/libmysys.a(raid.o)(.text+0x183): In function `my_raid_open':
: undefined reference to `operator new(unsigned)'
../mysys/libmysys.a(raid.o)(.text+0x213): In function `my_raid_open':
: undefined reference to `operator delete(void*)'
../mysys/libmysys.a(raid.o)(.text+0x7ca): In function `my_raid_close':
: undefined reference to `operator delete(void*)'
collect2: ld returned 1 exit status
make[2]: *** [isamchk] Error 1
make[2]: Leaving directory `/var/tmp/portage/mysql-3.23.54a/work/mysql-3.23.54a/isam'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mysql-3.23.54a/work/mysql-3.23.54a'
make: *** [all] Error 2

!!! ERROR: dev-db/mysql-3.23.54a failed.
!!! Function src_compile, Line 98, Exitcode 2
!!! compile problem
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum