Bug #57395 5.5 fails to build on HPUX
Submitted: 12 Oct 2010 7:26 Modified: 20 Dec 2010 12:18
Reporter: Alexander Nozdrin Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.5 OS:Any
Assigned to: CPU Architecture:Any

[12 Oct 2010 7:26] Alexander Nozdrin
Description:
5,5-bugteam fails to build on HPUX:

cc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include    -g  -DSAFE_MUTEX -g +O0 +DD64   -DHPUX11  -DSNPRINTF_RETURN_TRUNC -DHAVE_BROKEN_PREAD -DHAVE_BROKEN_GETPASS -DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -DUNIV_MUST_NOT_INLINE -DUNIV_HPUX -c main.c
/bin/sh ../libtool --preserve-dup-deps --tag=CC   --mode=link cc  -g  -DSAFE_MUTEX -g +O0 +DD64   -DHPUX11  -DSNPRINTF_RETURN_TRUNC -DHAVE_BROKEN_PREAD -DHAVE_BROKEN_GETPASS -DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -DUNIV_MUST_NOT_INLINE -DUNIV_HPUX -static -g +DD64  -o re split.o debug.o main.o libregex.a ../strings/libmystrings.a -lpthread -lm  -lpthread 
libtool: link: cc -g -DSAFE_MUTEX -g +O0 +DD64 -DHPUX11 -DSNPRINTF_RETURN_TRUNC -DHAVE_BROKEN_PREAD -DHAVE_BROKEN_GETPASS -DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -DUNIV_MUST_NOT_INLINE -DUNIV_HPUX -g +DD64 -o re split.o debug.o main.o  libregex.a ../strings/libmystrings.a -lpthread -lm -lpthread
ld: Unsatisfied symbol "strdup_root" in file ../strings/libmystrings.a[ctype-simple.o]
1 errors.
gmake[1]: *** [re] Error 1 

How to repeat:
Check out PB.
For example: http://pb2.norway.sun.com/?action=archive_download&archive_id=2388100&pretty=please
[10 Nov 2010 15:44] Olivier Chédru
I have the same error when compiling 5.5.7-rc on Solaris:

/bin/bash ../libtool --preserve-dup-deps --tag=CC   --mode=link cc  -g  -DSAFE_MUTEX -g -mt -xtarget=generic -m64   -DHAVE_RWLOCK_T -DUNIV_SOLARIS -static  -o re split.o debug.o main.o libregex.a ../strings/libmystrings.a -lpthread -lsocket -lnsl -lm -xnolib -lCrun -lm -lc -lrt -lresolv -lpthread
libtool: link: cc -g -DSAFE_MUTEX -g -mt -xtarget=generic -m64 -DHAVE_RWLOCK_T -DUNIV_SOLARIS -o re split.o debug.o main.o -xnolib  libregex.a ../strings/libmystrings.a -lpthread -lsocket -lnsl -lm -lCrun -lm -lc -lrt -lresolv -lpthread -mt
Undefined                       first referenced
 symbol                             in file
strdup_root                         ../strings/libmystrings.a(ctype-simple.o)
ld: fatal: Symbol referencing errors. No output written to re
gmake: *** [re] Error 2

5.5.6-rc was compiling fine on Solaris.
[20 Dec 2010 12:18] Susanne Ebrecht
http://www.mysql.com/support/supportedplatforms/database.html