Hi!

I had a similar problem using gcc-3.0 on HP-UX-11.0.
...
configure:4198: gcc -E -D__STDC_EXT__ conftest.c >/dev/null 2>conftest.out
<command line>: warning: "__STDC_EXT__" redefined
<command line>: warning: this is the location of the previous definition
configure: failed program was:
#line 4193 "configure"

int main () { return 0;}

The problem is that __STDC_EXT__ is redefined on the command line!
I see that the GNU Autotools have generated the following script
to configure:

...........
    echo $ac_n "checking for CFLAGS value to request large file support""... $\
ac_c" 1>&6
echo "configure:3549: checking for CFLAGS value to request large file support" \
>&5
if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if ($GETCONF LFS_CFLAGS) >conftest.1 2>conftest.2 && test ! -s conftest.2
      then
        ac_cv_sys_largefile_CFLAGS=`cat conftest.1`
      else
        ac_cv_sys_largefile_CFLAGS=no
        case "$host_os" in
           # HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1.
           hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
             if test "$GCC" = yes; then
               ac_cv_sys_largefile_CFLAGS=-D__STDC_EXT__
             fi
...................

CFLAGS="-fomit-frame-pointer -g -fpic" CXX=gcc
CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti -g" ./configure
--with-innodb

When I removed the definition of __STD_EXT__ from configure,
I was able to configure and compile ok (except that gcc-3.0
seemed to require CXX=g++).

Regards,

Heikki
http://www.innodb.com

>From: jweageTo: [EMAIL PROTECTED]
>Subject: compile fails under HP-UX 11.00 missingCBREAK>Description:
>        I've configured mysql with ./configure--prefix=/usr/arch/mysql
>--disable shared.  Typing make produces the followingerror:
>rltty.c: In function `prepare_terminal_settings':
>rltty.c:288: `CBREAK' undeclared (first use in thisfunction)
>rltty.c:288: (Each undeclared identifier is reportedonly once
>rltty.c:288: for each function it appears in.)
>It also complained about TIOCSETN being undefined. That is defined instrtio.h.
>I searched through the include files on the system andcan't find
CBREAKanywhere.
>The specs listed below are wrong, I'm using gcc 3.0.>How-To-Repeat:>Fix:
>        Add <strtio.h> as an include forreadline/rltty.c
>>Submitter-Id:  <submitter ID>>Originator:    [EMAIL PROTECTED]
>>Organization:>MySQL support: [none ]
>>Synopsis:      Compile failure under HP-UX 11.00>Severity:      critical
>>Priority:      <[ low | medium | high ] (one line)>>Category:      mysql
>>Class:         sw-bug>Release:       mysql-3.23.42 (Source distribution)
>>Environment:        <machine, os, target, libraries (multiplelines)>
>System: HP-UX atgdet05 B.11.00 U 9000/800 618309362unlimited-user license
>Some paths:  /usr/arch/bin/perl /usr/arch/bin/make
>/usr/arch/bin/gmake /usr/arch/bin/gcc /usr/bin/ccGCC: Reading specs from
>/usr/arch/gcc-2.95.3/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.3/specs
>gcc version 2.95.3 20010315 (release)
>Compilation info: CC='gcc'  CFLAGS=''  CXX='gcc' CXXFLAGS=''  LDFLAGS=''LIBC: 
>lrwxr-xr-x    1 root     adm             8 Jul 13 1999 /lib/libc.0 -> ./libc.1
>-r-xr-xr-x    1 bin      bin       1863680 Nov 18 1999 /lib/libc.1
>-r-xr-xr-x    1 bin      bin       1527808 Jan  6 2000 /lib/libc.2
>-r--r--r--    1 bin      bin       2172536 Jan  6 2000 /lib/libc.a
>lrwxr-xr-x    1 root     adm            15 Jul 13 
>1999 /lib/libc.sl -> /usr/lib/libc.2
>lrwxr-xr-x    1 root     adm             8 Jul 13 
>1999 /usr/lib/libc.0 -> ./libc.1
>-r-xr-xr-x    1 bin      bin       1863680 Nov 18 1999 /usr/lib/libc.1
>-r-xr-xr-x    1 bin      bin       1527808 Jan  6 2000 /usr/lib/libc.2
>-r--r--r--    1 bin      bin       2172536 Jan  6 2000 /usr/lib/libc.a
>lrwxr-xr-x    1 root     adm            15 Jul 13 
>1999 /usr/lib/libc.sl -> /usr/lib/libc.2Configure command: ./configure 
>--with-unix-socket-path=/var/tmp/mysql.sock
>--with-low-memory --with-mit-threads=yes--without-perl --ena
>ble-thread-safe-client --with-berkeley-db--with-innodb=====--
>--  <http://origin.me.gatech.edu/~weage>    --
>--  <http://members.xoom.com/joshua_weage>  --
>--  <http://weage.freeservers.com/>         --



---------------------------------------------------------------------
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 <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to