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

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


        Hope this is of some use to someone

        


                        Compiling MySQL 3.23.39 on HP-UX 11.00 with gcc


Notes:
------

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


System:
-------

HP-UX 11.00

gcc 2.95.3
binutils 2.11
GNU make 3.79


Configure Command:
------------------

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


MySQL Source Changes:
---------------------

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

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

### You can build the shared libraries as well, by adding
--enable-shared to the
### configure command, and by changing the libtool script to change
### deplibs_check_method to "pass_all". (Bit of a Nasty Hack)

---------------------------------------------------------------------
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