Building MySQL on HP-UX 11.31 Itanium (140 Views)
Reply
Occasional Contributor
David Hilker_1
Posts: 3
Registered: ‎06-15-2004
Message 1 of 5 (140 Views)

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!
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 2 of 5 (140 Views)

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
Dennis Handly
Posts: 25,059
Registered: ‎03-06-2006
Message 3 of 5 (140 Views)

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
FrodoB
Posts: 1
Registered: ‎05-27-2010
Message 4 of 5 (140 Views)

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
Emil Velez
Posts: 1,450
Registered: ‎05-17-2000
Message 5 of 5 (140 Views)

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.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.