MySQL 3.23 compile error on HPUX IPF

2002-12-30 Thread Zengfa Gao
Hi,

I am trying to compile MySQL 3.23 on HPUX 11.23 IPF.

I am using gcc 3.0. gcc 2.95 is not available on HPUX
11.23.


CC=gcc \
CXX=g++ \
CFLAGS=-D_HPUX_SOURCE -D__hpux__ -D_REENTRANT \
CXXFLAGS=-D_HPUX_SOURCE -D__hpux__ -D_REENTRANT \
CPPFLAGS=-D_HPUX_SOURCE -D__hpux__ -D_REENTRANT \
LDFLAGS=-L/usr/local/lib \
./configure  \
 --prefix=/usr/local/mysql \
 --exec-prefix=/usr/local/mysql \
 --with-libwrap=/usr/local \
 --with-low-memory


gmake

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include
-I../include  -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE
-D__hpux__ -D_REENTRANT  -O3 -DDBUG_OFF
-D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -D__hpux__
-D_REENTRANT  -DHAVE_BROKEN_PREAD -DDONT_USE_FINITE
-DHAVE_BROKEN_GETPASS -DNO_FCNTL_NONBLOCK
-DDO_NOT_REMOVE_THREAD_WRAPPERS
-DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -c strxmov.c
In file included from /usr/include/pthread.h:7,
 from ../include/global.h:97,
 from strxmov.c:33:
/usr/include/sys/pthread.h:1039: parse error before
'*' token
gmake[2]: *** [strxmov.o] Error 1
gmake[2]: Leaving directory
`/var/mysql-3.23.52/strings'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/mysql-3.23.52'
gmake: *** [all-recursive-am] Error 2


Does any one have some ideas?

Thanks!

Zengfa


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.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




Re: Compile error on HPUX

2002-12-10 Thread Benjamin Pflugmann
Hello.

As a side note, did you try the precompiled binary for HP-UX already?
http://www.mysql.com/downloads/mysql-3.23.html

On Mon 2002-12-09 at 08:22:44 -0800, [EMAIL PROTECTED] wrote:
 Benjamin,
 
 Thanks for you information, now I tried to use gcc

Which version?

 compile:
  CC=gcc CXX=gcc CXXFLAGS=-O3 ./configure 

You left out the info from mysqlbug again. 

Although I doubt that this has to do with the error you see below, you
do not seem to honor the notes about building from the manual:

  http://www.mysql.com/doc/en/HP-UX_10.20.html
  http://www.mysql.com/doc/en/HP-UX_11.x.html

The configure line above looks incomplete.

 Configure has no problem. But When I run make, I
 got:
 
 
 gcc -O3 -DDBUG_OFF -DHAVE_BROKEN_PREAD
 -DDONT_USE_FINITE -DHAVE_BROKEN_GETPASS
 -DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPPERS
 -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -o hp_test2
 hp_test2.o libheap.a ../mysys/libmysys.a
 ../dbug/libdbug.a ../strings/libmystrings.a -lpthread
 -lcrypt -lnsl -lm -lpthread
 Making all in sql
 Making all in share
 No suffix list.
 ../../extra/comp_err  czech/errmsg.sys
 Usage: ../../extra/comp_err [-?] [-I] [-V] fromfile[s]
 tofile
 *** Error exit code 255

I am sorry, but I am not able to help here. As I said, I am not
familiar with HP-UX (an neither with build problems, because I never
had any).

HTH,

Benjamin.

-- 
[EMAIL PROTECTED]

-
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




Re: Compile error on HPUX

2002-12-09 Thread Zengfa Gao
Benjamin,

Thanks for you information, now I tried to use gcc
compile:
 CC=gcc CXX=gcc CXXFLAGS=-O3 ./configure 

Configure has no problem. But When I run make, I
got:


gcc -O3 -DDBUG_OFF -DHAVE_BROKEN_PREAD
-DDONT_USE_FINITE -DHAVE_BROKEN_GETPASS
-DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPPERS
-DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -o hp_test2
hp_test2.o libheap.a ../mysys/libmysys.a
../dbug/libdbug.a ../strings/libmystrings.a -lpthread
-lcrypt -lnsl -lm -lpthread
Making all in sql
Making all in share
No suffix list.
../../extra/comp_err  czech/errmsg.sys
Usage: ../../extra/comp_err [-?] [-I] [-V] fromfile[s]
tofile
*** Error exit code 255

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1
--- Benjamin Pflugmann [EMAIL PROTECTED]
wrote:
 Hello.
 
 On Fri 2002-12-06 at 09:59:25 -0800, [EMAIL PROTECTED]
 wrote:
  Hi,
  
  I just send this email again. Does anyone care
 about
  HPUX build?
 
 You need to be more specific in the future. That
 will enhance the
 chance for someone seing the problem.
 
 I have never used HP-UX. That said, some comments.
 
  --- Zengfa Gao [EMAIL PROTECTED] wrote:
   Hi,
   
   I tried to compile mysql-3.23.49 on HPUX 11.11
   system.
 
 Please include complete info from mysqlbug.
 
   When I run:
   
   CC=cc CXX=aCC CFLAGS=+DD64 CXXFLAGS=+DD64
   ./configure
   
   Everything is fine, no errors.
   
   But when I run: make
   
   I got:
   
   cc: password.c, line 95: error 1000:
 Unexpected
   symbol: char_val.
 
 Which password.c? There are 3 in the source. Please
 include some of
 the make output next time.
 
 [...]
   Do anyone have some ideas?
 
 Presumed this is about sql/password.c, this seems to
 be about
 
   inline uint char_val(char X)
 
 The error you cited is typical, if the compiler does
 not know uint
 as type and therefore considered it a label and now
 bails out because
 there is another label following.
 
 That would mean, uint is not defined.
 include/globals.h defines it if
 the system does not provide it:
 
   #if defined(__EMX__) || !defined(HAVE_UINT)
   typedef unsigned int uint;
   typedef unsigned short ushort;
   #endif
 
 So it seems, configure set HAVE_UINT, but
 sys/types.h either does
 not set it or HAVE_SYS_TYPES_H is unset.
 
 No idea, why configure did not the right thing here,
 but it could be
 that it got confused from several runs. Be sure to
 try with a clean
 tarball again.
 
 HTH,
 
   Benjamin.
 
 -- 
 [EMAIL PROTECTED]
 

-
 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
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.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




Re: Compile error on HPUX

2002-12-07 Thread Benjamin Pflugmann
Hello.

On Fri 2002-12-06 at 09:59:25 -0800, [EMAIL PROTECTED] wrote:
 Hi,
 
 I just send this email again. Does anyone care about
 HPUX build?

You need to be more specific in the future. That will enhance the
chance for someone seing the problem.

I have never used HP-UX. That said, some comments.

 --- Zengfa Gao [EMAIL PROTECTED] wrote:
  Hi,
  
  I tried to compile mysql-3.23.49 on HPUX 11.11
  system.

Please include complete info from mysqlbug.

  When I run:
  
  CC=cc CXX=aCC CFLAGS=+DD64 CXXFLAGS=+DD64
  ./configure
  
  Everything is fine, no errors.
  
  But when I run: make
  
  I got:
  
  cc: password.c, line 95: error 1000: Unexpected
  symbol: char_val.

Which password.c? There are 3 in the source. Please include some of
the make output next time.

[...]
  Do anyone have some ideas?

Presumed this is about sql/password.c, this seems to be about

  inline uint char_val(char X)

The error you cited is typical, if the compiler does not know uint
as type and therefore considered it a label and now bails out because
there is another label following.

That would mean, uint is not defined. include/globals.h defines it if
the system does not provide it:

  #if defined(__EMX__) || !defined(HAVE_UINT)
  typedef unsigned int uint;
  typedef unsigned short ushort;
  #endif

So it seems, configure set HAVE_UINT, but sys/types.h either does
not set it or HAVE_SYS_TYPES_H is unset.

No idea, why configure did not the right thing here, but it could be
that it got confused from several runs. Be sure to try with a clean
tarball again.

HTH,

Benjamin.

-- 
[EMAIL PROTECTED]

-
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




Re: Compile error on HPUX

2002-12-06 Thread Zengfa Gao
Hi,

I just send this email again. Does anyone care about
HPUX build?

Zengfa

--- Zengfa Gao [EMAIL PROTECTED] wrote:
 Hi,
 
 I tried to compile mysql-3.23.49 on HPUX 11.11
 system.
 
 When I run:
 
 CC=cc CXX=aCC CFLAGS=+DD64 CXXFLAGS=+DD64
 ./configure
 
 Everything is fine, no errors.
 
 But when I run: make
 
 I got:
 
 cc: password.c, line 95: error 1000: Unexpected
 symbol: char_val.
 cc: panic 2017: Cannot recover from earlier errors,
 terminating.
 *** Error exit code 1
 
 Stop.
 *** Error exit code 1
 
 Stop.
 *** Error exit code 1
 
 
 Do anyone have some ideas?
 
 Thanks a lot!
 
 Zengfa
 
 
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
 http://mailplus.yahoo.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
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.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




Compile error on HPUX

2002-12-05 Thread Zengfa Gao
Hi,

I tried to compile mysql-3.23.49 on HPUX 11.11 system.

When I run:

CC=cc CXX=aCC CFLAGS=+DD64 CXXFLAGS=+DD64 ./configure

Everything is fine, no errors.

But when I run: make

I got:

cc: password.c, line 95: error 1000: Unexpected
symbol: char_val.
cc: panic 2017: Cannot recover from earlier errors,
terminating.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1


Do anyone have some ideas?

Thanks a lot!

Zengfa





__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.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