Bug #17416 Can't compile on hppa
Submitted: 15 Feb 2006 8:59 Modified: 22 Feb 2006 8:15
Reporter: Eugene Arbatsky Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:5.0.15, 5.0.18 OS:Linux (Debian Linux Sarge 3.1)
Assigned to: CPU Architecture:Any

[15 Feb 2006 8:59] Eugene Arbatsky
Description:
OS(kernel): Linux (Debian, 2.4.27-pa0 parisc64)
gcc version 3.4.4 20050314 (prerelease) (Debian 3.4.3-13)
libgcc1              3.3.5-13
libgcc2              3.4.3-13 

After running 'configure' and 'make' I have this:

make[4]: Entering directory `...../src/mysql-5.0.18/sql'
[skiped]..........t -lnsl -lm -lpthread
../mysys/libmysys.a(default.o)(.text+0xe44): In function `my_search_option_files':
: undefined reference to `__canonicalize_funcptr_for_compare'
../mysys/libmysys.a(default.o)(.text+0xe50): In function `my_search_option_files':
: undefined reference to `__canonicalize_funcptr_for_compare'
collect2: ld returned 1 exit status

How to repeat:
see description
[16 Feb 2006 3:18] Eugene Arbatsky
After moving to gcc version 3.0.4 I have other error with mysql 5.0.18:

make[4]: Entering directory `......./src/mysql-5.0.18/sql'
/bin/sh ../libtool --preserve-dup-deps --mode=link g++  -O3 -DDBUG_OFF    -fno-implicit-templates -
[skiped]
../strings/libmystrings.a -lz     -ldl  -lpthread -lcrypt -lnsl -lm  -lpthread
g++ -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o mysqld sql_lex.o 
[skiped]
/vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -ldl -lpthread -lcrypt -lnsl -lm -lpthread
../innobase/dict/libdict.a(dict0dict.o)(.text+0x8b94): In function `dict_tree_copy_rec_order_prefix':
: undefined reference to `__builtin_prefetch'
../innobase/rem/librem.a(rem0rec.o)(.text+0x11a4): In function `rec_convert_dtuple_to_rec_new':
: undefined reference to `__builtin_prefetch'
../innobase/rem/librem.a(rem0rec.o)(.text+0x11b4): In function `rec_convert_dtuple_to_rec_new':
: undefined reference to `__builtin_prefetch'
[21 Feb 2006 15:18] Valeriy Kravchuk
Sorry, but we do not officially support Debian on HPPA (see http://www.mysql.com/support/supportedplatforms.html for the details). Moreover, we have HP-UX on all our HPPA machines, so I just have no way to check and really help you. As a hint, please, try to compile with gcc 3.3.x.
[22 Feb 2006 8:15] Eugene Arbatsky
Thank you.
Everthing works with gcc version 3.3.5 (Debian 1:3.3.5-13)