Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

Building MySQL on HP-UX 11.31 Itanium

Highlighted
Occasional Contributor

Building MySQL on HP-UX 11.31 Itanium

In my continuing saga of compiling MySQL on HP-UX 11.31 (Itanium), I continually run into this error during compilation, and cannot find any helpful fixes:

gmake[2]: Entering directory `/root/itanium_compile/mysql-5.1.46/client'
g++ -DMYSQL_CLIENT_NO_THREADS -DDEFAULT_MYSQL_HOME="\"/usr/local/mysqlc\"" -DMYSQL_DATADIR="\"/usr/local/mysqlc/var\"" -I. -I../include -I../include -I../include -I../regex -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -DHPUX11 -DSNPRINTF_RETURN_TRUNC -DHAVE_BROKEN_PREAD -D_INCLUDE_LONGLONG -DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -MT mysql.o -MD -MP -MF .deps/mysql.Tpo -c -o mysql.o mysql.cc
mysql.cc: In function 'int read_and_execute(char)':
mysql.cc:1866: error: cannot convert 'char*' to 'bool*' for argument '2' to 'char* batch_readline(LINE_BUFFER*, bool*)'
gmake[2]: *** [mysql.o] Error 1
gmake[2]: Leaving directory `/root/itanium_compile/mysql-5.1.46/client'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/root/itanium_compile/mysql-5.1.46/client'
gmake: *** [all-recursive] Error 1

My configure parameters are: ./configure --without-server --prefix=/usr/local/mysqlc --with-low-memory \
--enable-thread-safe-client --enable-local-infile --with-pthread \
--with-lib-ccflags=-fPIC --disable-shared

MySQL version: 5.1.46

gcc version: 4.33

gmake version: GNU Make 3.81

I can successfully compile version 5.0.21, but anything after that seems to fail.

This may have something to do with a bug fix, details are in:

http://lists.mysql.com/commits/69536

Any help would be appreciated. Thanks!
4 REPLIES
Exalted Contributor Exalted Contributor

Re: Building MySQL on HP-UX 11.31 Itanium

Shalom,

Seems like the easy course of action is:

Internet Express

Search for that on http://software.hp.com

Download the depot version.

swinstall it

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Acclaimed Contributor Acclaimed Contributor

Re: Building MySQL on HP-UX 11.31 Itanium

>This may have something to do with a bug fix, details are in:
http://lists.mysql.com/commits/69536

It sure looks like it.
What's on this line: mysql.cc:1866

It seems someone is passing a char* and not a bool*. So change the declaration of the variable you are passing to batch_readline.
Occasional Visitor

Re: Building MySQL on HP-UX 11.31 Itanium

Someone built the depot version. Does anyone know where one could find notes on the process?
Honored Contributor Honored Contributor

Re: Building MySQL on HP-UX 11.31 Itanium

Why build it when you can get one prebuilt and debugged already available for HPUX in internet express bundle.