Hi!

>>>>> "Jack" == Jack Challen <[EMAIL PROTECTED]> writes:

Jack> Hi,
Jack>   First of all, this is irrelevant if you're not using HP-UX.
Jack>   Second, apologies if this isn't the correct list, but I've been unable
Jack> to find
Jack>           a more suitable one.

Jack> This is just some info on how I got Mysql-3.23.39 to compile on HP-UX
Jack> 11.00 using gcc,
Jack> because I think the configure script may have broken somewhere between
Jack> 3.23.35 and
Jack> 3.23.39


Jack>   Hope this is of some use to someone


Jack>                   Compiling MySQL 3.23.39 on HP-UX 11.00 with gcc


Jack> Notes:
Jack> ------

Jack> You'll need to fix /usr/include/sys/unistd.h - See the MySQL manual
Jack> section 4.2.17
Jack>         (Beware: Patch PHKL_22589 Breaks this again)


Jack> System:
Jack> -------

Jack> HP-UX 11.00

Jack> gcc 2.95.3
Jack> binutils 2.11
Jack> GNU make 3.79


Jack> Configure Command:
Jack> ------------------

Jack> CFLAGS="-D_REENTRANT"
Jack> CXXFLAGS="-D_REENTRANT"                                       \
Jack> ./configure
Jack> --prefix=/opt/mysql                                                    
Jack> \
Jack> --with-pthread
Jack> --with-named-thread-libs="-lpthread"                                 \
Jack> --with-mysqld-ldflags="-L/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3
Jack> -lgcc"   \
Jack> --with-client-ldflags="-L/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3
Jack> -lgcc"

Why do you need to include the path to libgcc ?
Normally this is an indication that something is wrong.

Jack> MySQL Source Changes:
Jack> ---------------------

Jack> ### I believe these could be fixed just by corrected the configure
Jack> script tests,
Jack> ### as they're all #ifdef tests

Jack> edited readline/nls.c      to unconditionally #include <locale.h>
Jack> edited libmysql/libmysql.c to unconditionally #include <pwd.h>
Jack> edited mysys/mf_pack.c     to unconditionally #include <pwd.h>
Jack> edited include/global.h    to unconditionally #include <stdlib.h>

configure should test for the above include files and use these
if they exist on your system.

Have you any idea why configure didn't include these on your system?

I have myself compiled MySQL on HPUX 11.0 with just ./configure and I
didn't get any compile errors.

<cut>

Regards,
Monty

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <mysql-unsubscribe-##L=##[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to