MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Andreas Borchert Date:March 12 1999 5:23pm
Subject:sql/ of 3.22.19b does not compile on Solaris 2.5.1
View as plain text  
	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/ 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/

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

>Submitter-Id:	<submitter ID>
  Andreas Borchert, Universitaet Ulm, SAI, Helmholtzstr. 18, 89069 Ulm,  Germany
  E-Mail: borchert@stripped
  PGP key available via ``finger borchert@stripped''
>MySQL support: none
>Synopsis:	sql/ 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)

	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
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
sql/ of 3.22.19b does not compile on Solaris 2.5.1(Andreas Borchert)12 Mar
  • sql/ of 3.22.19b does not compile on Solaris 2.5.1Michael Widenius15 Mar