List:General Discussion« Previous MessageNext Message »
From:Andreas Borchert Date:March 12 1999 5:23pm
Subject:sql/mysqld.cc of 3.22.19b does not compile on Solaris 2.5.1
View as plain text  
>Description:
	We tried to compile the source distribution of MySQL on Solaris 2.5.1
	with our compilers from Sun (release 4.2). Everything went fine with
	the exception of sql/mysqld.cc that uses gethostname() without
	having a prototype for it.
	
	Prototypes for gethostname() are
	nowhere available in the include files below /usr/include, so
	you have to add either in some include file of your own or directly
	to sql/mysqld.cc:

	   extern "C" int gethostname(char *name, int namelen);
>How-To-Repeat:
	On Solaris 2.5.1:
	CC=cc CXX=CC ./configure && make
>Fix:
	Just add ``extern "C" int gethostname(char *name, int namelen);''
	at a convenient location that becomes effective for sql/mysqld.cc.

>Submitter-Id:	<submitter ID>
>Originator:	
>Organization:
  Andreas Borchert, Universitaet Ulm, SAI, Helmholtzstr. 18, 89069 Ulm,  Germany
  E-Mail: borchert@stripped
  WWW:	http://www.mathematik.uni-ulm.de/sai/borchert/
  PGP key available via ``finger borchert@stripped''
>
>MySQL support: none
>Synopsis:	sql/mysqld.cc of 3.22.19b does not compile on Solaris 2.5.1
>Severity:	non-critical
>Priority:	low
>Category:	mysql
>Class:		sw-bug
>Release:	mysql-3.22.19b (Source distribution)

>Environment:
	Sun WorkShop Compiler C 4.2
	Sun WorkShop Compiler C++ 4.2
System: SunOS oberon 5.5.1 Generic_103640-23 sun4u sparc SUNW,Ultra-1
Architecture: sun4

Some paths:  /usr/local/bin/perl /usr/local/bin/make /usr/local/bin/gcc
/opt/SUNWspro/bin/cc
GCC: Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.2/2.5.6/specs
gcc version 2.5.6
Compilation info: CC='cc'  CFLAGS=''  CXX='CC'  CXXFLAGS=''  LDFLAGS=''
Configure command: ./configure 
Perl: This is perl, version 5.005_02 built for sun4-solaris
Thread
sql/mysqld.cc of 3.22.19b does not compile on Solaris 2.5.1(Andreas Borchert)12 Mar
  • sql/mysqld.cc of 3.22.19b does not compile on Solaris 2.5.1Michael Widenius15 Mar