Re: Build problems (+solution) on HPUX 10.20/gcc 2.95

2001-08-09 Thread Harro Verkouter


Hi Michael,

Michael Widenius wrote:
 Between the different configure attemtns, did you do 'rm config.cache'?
 
 If not, then there is a big change that the old content of
 config.cache from the first build could have affected the later
 builds.

I got an email from Timothy Smith yesterday suggesting the same. I build
a lot of packages using configure and am aware of the config.cache
(guess how I found *that* out.. :))... no.. I almost automatically rm
config.cache before any configure command...

 Any change you could quickly check on your machine if the
 recommended configure line from the MySQL manual would work one a
 clean MySQL distribution ?
 
 On our HPUX 10.20 machine, we use the following configure line to
 build our binaries:
 
 CFLAGS=-DHPUX -I/opt/dce/include  -O3 -fpic CXX=gcc CXXFLAGS=-DHPUX 
-I/opt/dce/include -felide-constructors -fno-exceptions -fno-rtti -O3  ./configure 
--prefix=/usr/local/mysql --with-comment=Official MySQL binary 
--with-extra-charsets=complex --with-server-suffix=  --with-pthread 
--with-named-thread-libs=-ldce --disable-shared
 

Ok. So I gave it another try. I untarred the source distro into a new
directory and ran the configure command above (only different prefix).
Made absolutely no difference whatsoever: still a gazillion+-1 errors
:). Below I have a snapshot of the kind of errors that fly by my tty

I think our gcc is broken/only half installed; it can only build 32bit
apps.

g++ -v:
Reading specs from
/local/gcc-2.95/lib/gcc-lib/hppa2.0-hp-hpux10.20/2.95.2/specs
gcc version 2.95.2 19991024 (release)



 snip 
In file included from /usr/include/fcntl.h:9,
 from ../include/global.h:176,
 from mysql.cc:28:
/usr/include/sys/fcntl.h:212: initializer list being treated as compound
express
ion
/usr/include/sys/fcntl.h:212: syntax error before `char'
/usr/include/sys/fcntl.h:212: `mode_t c' used prior to declaration
/usr/include/sys/fcntl.h:212: parse error before `{'
/usr/include/sys/fcntl.h:213: initializer list being treated as compound
express
ion
/usr/include/sys/fcntl.h:213: syntax error before `char'
/usr/include/sys/fcntl.h:213: `mode_t b' used prior to declaration
/usr/include/sys/fcntl.h:213: parse error before `{'
In file included from /usr/include/unistd.h:11,
 from ../include/global.h:192,
 from mysql.cc:28:
/usr/include/sys/unistd.h:92: syntax error before `('
/usr/include/sys/unistd.h:275: type specifier omitted for parameter
/usr/include/sys/unistd.h:276: type specifier omitted for parameter
/usr/include/sys/unistd.h:362: type specifier omitted for parameter
/usr/include/sys/unistd.h:426: type specifier omitted for parameter
/usr/include/sys/unistd.h:526: syntax error before `('
/usr/include/sys/unistd.h:528: `int truncate' redeclared as different
kind of s
In file included from mysql.cc:28:
./include/global.h:633: syntax error before `;'
In file included from /usr/include/sys/stat.h:25,
 from ../include/my_dir.h:27,
 from mysql.cc:34:
/usr/include/sys/_stat_body.h:14: syntax error before `;'
/usr/include/sys/_stat_body.h:22: syntax error before `;'
In file included from ../include/my_dir.h:27,
 from mysql.cc:34:
/usr/include/sys/stat.h:167: `int stat' redeclared as different kind of
symbol
/usr/include/sys/stat.h:108: previous declaration of `int stat(const
char *, sta
t *)'
/usr/include/sys/stat.h:167: initializer list being treated as compound
expressi
on
/usr/include/sys/stat.h:167: syntax error before `char'
/usr/include/sys/stat.h:167: conflicting types for `struct stat * b'
/usr/include/sys/fcntl.h:213: previous declaration as `mode_t b'
/usr/include/sys/stat.h:167: parse error before `{'
/usr/include/sys/stat.h:168: `int fstat' redeclared as different kind of
symbol
/usr/include/sys/stat.h:107: previous declaration of `int fstat(int,
stat *)'

 /snip 

Cheers,

-- 

Groeten,


Harro Verkouter Joint Institute for VLBI in Europe
[EMAIL PROTECTED]   Radiosterrenwacht Dwingeloo 
Postbus 2
tel.: (+31)(0)521-5965167990 AA DWINGELOO, the Netherlands
fax.: (+31)(0)521-597332

--

Accident, n.:
A condition in which presence of mind is good, but absence of
body is better.
-- Foolish Dictionary

--

-
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: Build problems (+solution) on HPUX 10.20/gcc 2.95

2001-08-09 Thread Sinisa Milivojevic

Harro Verkouter writes:
 
 Hi Michael,
 Ok. So I gave it another try. I untarred the source distro into a new
 directory and ran the configure command above (only different prefix).
 Made absolutely no difference whatsoever: still a gazillion+-1 errors
 :). Below I have a snapshot of the kind of errors that fly by my tty
 
 I think our gcc is broken/only half installed; it can only build 32bit
 apps.
 
 g++ -v:
 Reading specs from
 /local/gcc-2.95/lib/gcc-lib/hppa2.0-hp-hpux10.20/2.95.2/specs
 gcc version 2.95.2 19991024 (release)
 
 
 
  snip 
 In file included from /usr/include/fcntl.h:9,
  from ../include/global.h:176,
  from mysql.cc:28:
 /usr/include/sys/fcntl.h:212: initializer list being treated as compound
 express
 ion
 /usr/include/sys/fcntl.h:212: syntax error before `char'

cut
 
  /snip 
 
 Cheers,
 
 -- 
 
 Groeten,
 
 
 Harro Verkouter Joint Institute for VLBI in Europe
 [EMAIL PROTECTED] Radiosterrenwacht Dwingeloo 
   Postbus 2
 tel.: (+31)(0)521-596516  7990 AA DWINGELOO, the Netherlands
 fax.: (+31)(0)521-597332  
 

OK, reinstall 2.95.2 and if the above error repeat, re-send me those
errors, plus include /usr/include/sys/fcntl.h and stat.h in a direct
mail to me.

-- 
Regards,
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, FullTime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
   ___/   www.mysql.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




Build problems (+solution) on HPUX 10.20/gcc 2.95

2001-08-07 Thread verkouter

Description:
I tried to compile the mysql client stuff. 
The first configure command was:
./configure --prefix=/jaw0_3/jops/verkout --without-server --without-docs 
--without-bench --without-debug --with-pthread

This (obviously) did not fully work. Almost everyting was built, except the 
mysql binary (mysql{admin,show,..} were ok (and did work).
When compiling mysql.cc it gave *a lot* of errors, on include stdio.h and 
some other files. Mostly errors on lines wher _fpos_t and/or int64 were used.

Checked www.mysql.com. Found HPUX 10.20 build instructions.
Did another configure (env. vars. changes as per the webpage first).
./configure --prefix=/jaw0_3/jops/verkout --without-server --without-docs 
--without-bench --without-debug --with-pthread --with-named-thread-libs='-ldce' 
--disable-shared

Still didn't work; the errors were still the same... I suspected they had to 
do with large-file support. Gave it another try with this configure command:
./configure --prefix=/jaw0_3/jops/verkout --without-server --without-docs 
--without-bench --without-debug --with-pthread --with-named-thread-libs='-ldce' 
--disable-shared --disable-large-files

You guessed it: no difference.

Fix:

Went into 'include/my_config.h'. Found that the #defn's usually used to 
indicate large-file support were still defined?!
Did a #undef on the following variables:
_FILE_OFFSET_BITS
_LARGEFILE_SOURCE
_LARGE_FILES

After that, gmake in the 'client' subdir worked like a charm! The produced 
binaries seem to work ok.


Originator: Harro Verkouter
MySQL support: none
Synopsis:   Buildprobs on HPUX 10.20
Severity:   non-critical
Priority:   medium
Category:   mysql
Class:  sw-bug
Release:mysql-3.23.40 (Source distribution)

Environment:
System: HP-UX jaw0 B.10.20 A 9000/782 298990 two-user license


Some paths:  /local/bin/perl /local/bin/make /local/bin/gmake /local/gcc-2.95/bin/gcc 
/usr/bin/cc
GCC: Reading specs from /local/gcc-2.95/lib/gcc-lib/hppa2.0-hp-hpux10.20/2.95.2/specs
gcc version 2.95.2 19991024 (release)
Compilation info: CC='gcc'  CFLAGS='-DHPUX -I/opt/dce/include'  CXX='gcc'  
CXXFLAGS='-DHPUX -I/opt/dce/include -felide-constructors -fno-exceptions -fno-rtti'  
LDFLAGS=''
LIBC: 
-r-xr-xr-x   1 binbin1863680 Nov 10  1999 /lib/libc.1
-r--r--r--   1 binbin2456532 Nov 10  1999 /lib/libc.a
lrwxr-xr-x   1 root   sys 15 Jun 16  1998 /lib/libc.sl - 
/usr/lib/libc.1
-r-xr-xr-x   1 binbin1863680 Nov 10  1999 /usr/lib/libc.1
-r--r--r--   1 binbin2456532 Nov 10  1999 /usr/lib/libc.a
lrwxr-xr-x   1 root   sys 15 Jun 16  1998 /usr/lib/libc.sl - 
/usr/lib/libc.1
Configure command: ./configure  --prefix=/jaw0_3/jops/verkout --without-server 
--without-docs --without-bench --without-debug --with-pthread 
--with-named-thread-libs=-ldce --disable-shared
Perl: This is perl, version 5.005_02 built for PA-RISC2.0

-
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: Build problems (+solution) on HPUX 10.20/gcc 2.95

2001-08-07 Thread Sinisa Milivojevic

[EMAIL PROTECTED] writes:
 Description:
   I tried to compile the mysql client stuff. 
   The first configure command was:
   ./configure --prefix=/jaw0_3/jops/verkout --without-server --without-docs 
--without-bench --without-debug --with-pthread
 
   This (obviously) did not fully work. Almost everyting was built, except the 
mysql binary (mysql{admin,show,..} were ok (and did work).
   When compiling mysql.cc it gave *a lot* of errors, on include stdio.h and 
some other files. Mostly errors on lines wher _fpos_t and/or int64 were used.

Thanks ...

We shall try to fix our configure script.

-- 
Regards,
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, FullTime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
   ___/   www.mysql.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