Michael Widenius wrote:


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


I've been fooling around in an (vain) effort to get the Msql-MySQL perl binding to 
work.
(Yes, I have followed the README ;) ). I have tried that command without the libgcc
stuff and it does seem to work.


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


I think the problem is that some of the gcc header files have changed from version
2.95.2 to 2.95.3, defining __va__list, which is defined by HP-UX include files.
Excerpt from config.log:

        configure:7645: checking for locale.h
        configure:7655: gcc -E -D__STDC_EXT__ conftest.c >/dev/null 2>conftest.out
        In file included from /usr/include/locale.h:157,
                         from configure:7651:
        /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning:
`__va__list' redefined
        /usr/include/locale.h:26: warning: this is the location of the previous 
definition
        configure: failed program was:
        #line 7650 "configure"
        #include "confdefs.h"
        #include <locale.h>

I haven't yet worked out what to fix to stop this (eg: does gcc *need* that #define?)

This was using the precompiled gcc binary from http://hpux.connect.org.uk/

Hope that helps

        jack

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