List:General Discussion« Previous MessageNext Message »
From:Michael Widenius Date:August 31 1999 12:20pm
Subject:compiling mysql-3.22.25 on HP-UX 10.20
View as plain text  
>>>>> "John" == John McDermon <jmcdermo@stripped> writes:

John> Using gcc 2.95.1 on HP-UX 10.20 I configured mysql-3.22.25 with the 
John> following options:
John> ./configure  --prefix=/opt/mysql-3.22.25 --with-mit-threads --with-low-memory


John> Then I get the following errors:
John> mysqld.cc: In function `void close_connections()':
John> mysqld.cc:244: implicit declaration of function `int shutdown(...)'
John> mysqld.cc: In function `void server_init()':
John> mysqld.cc:556: implicit declaration of function `int setsockopt(...)'
John> mysqld.cc: In function `void * handle_connections_sockets(void *)':
John> mysqld.cc:1536: implicit declaration of function `int getsockname(...)'
John> gmake[3]: *** [mysqld.o] Error 1
John> gmake[3]: Leaving directory `/sw/HP/mysql-3.22.25/sql'
John> gmake[2]: *** [all-recursive] Error 1
John> gmake[2]: Leaving directory `/sw/HP/mysql-3.22.25/sql'
John> gmake[1]: *** [all-recursive] Error 1
John> gmake[1]: Leaving directory `/sw/HP/mysql-3.22.25'
John> gmake: *** [all-recursive-am] Error 2

Hi!

Try this instead:

CFLAGS="-DHPUX -I/opt/dce/include -fpic" CXXFLAGS="-DHPUX -I/opt/dce/include
-felide-constructors -fno-exceptions -fno-rtti" CXX=gcc ./configure --with-debug
--with-pthread --with-named-thread-libs='-ldce' --prefix=/usr/local/mysql
--disable-shared
 
The major problem with the above is that 'mysqladmin shutdown' doesn't 
work, but this is fixed in 3.22.26.

Regards,
Monty
Thread
compiling mysql-3.22.25 on HP-UX 10.20John McDermon24 Aug
  • compiling mysql-3.22.25 on HP-UX 10.20Jani Tolonen31 Aug
  • compiling mysql-3.22.25 on HP-UX 10.20Michael Widenius31 Aug