List:General Discussion« Previous MessageNext Message »
From:Paul H. Yoshimune Date:October 7 1999 11:46pm
Subject:Re: Trouble with Solaris 2.5.1 build...
View as plain text  
Ignore me please; just found the answer in the archives.  For those as clueless
as myself:




     >>>>> "Ernie" == Ernie Oporto <eoporto@stripped> writes:

     Ernie> Any idea what would cause the following when building 3.22.26a on a Solaris
     Ernie> 2.5.1 building with gcc-2.95.1 and the latest binutils (2.7.2, I think).  I
     Ernie> was able to build 3.22.25 with gcc-2.7 and was hoping to get a new and
     Ernie> better set of compilers in place to make the newer mysql.

     Ernie> c++ -DMYSQL_SERVER                     
-DDEFAULT_MYSQL_HOME="\"/usr/local\"
     Ernie> "  -DDATADIR="\"/usr/local/var\""                  
-DSHAREDIR="\"/usr/local
     Ernie> /share/mysql\""                         -DHAVE_CONFIG_H -I./../include     

     Ernie>            -I./../regex                     -I. -I../include -I.. -I.    -O

     Ernie>   -fno-implicit-templates -DDBUG_OFF -c mysqld.cc
     Ernie> mysqld.cc: In function `int main(int, char **)':
     Ernie> mysqld.cc:1034: implicit declaration of function `int gethostname(...)'
     Ernie> make[3]: *** [mysqld.o] Error 1
     Ernie> make[3]: Leaving directory `/nb/local/src/mysql-3.22.26a/sql'
     Ernie> make[2]: *** [all-recursive] Error 1
     Ernie> make[2]: Leaving directory `/nb/local/src/mysql-3.22.26a/sql'
     Ernie> make[1]: *** [all-recursive] Error 1
     Ernie> make[1]: Leaving directory `/nb/local/src/mysql-3.22.26a'
     Ernie> make: *** [all-recursive-am] Error 2

     Ernie> http://www.shokk.com
     Ernie> ICQ-17933910  Ernie "Shokk" Oporto

     Fix:

     Add the -DSOLARIS option to the above compile line or configure with:

     CXXFLAGS=-DSOLARIS ./configure

     The problem is that Solaris 2.5.1 doesn't declare gethostname() in any 
     include files. (This is a bug in Solaris 2.5.1)

     Regards,
     Monty

On Thu, Oct 07, 1999 at 04:33:50PM -0700, Paul H. Yoshimune wrote:
> Hello all...
> 
> this is all new to me, but I'm having problems building the current stable
> release of MySQL (3.22.27).  My configuration is as follows:
> 
> Sun SPARCstation 20
> Dual SM71 processors 
> 128MB RAM
> Solaris 2.5.1 + patches
> gcc 2.95.1
> 
> I'm getting the following error building mysqld.cc (seems it can't find the
> prototype for gethostname()):
> 
> mysqld.cc: In function `int main(int, char **)':
> mysqld.cc:1034: implicit declaration of function `int gethostname(...)'
> make[3]: *** [mysqld.o] Error 1
> make[3]: Leaving directory `/home/paul/mysql-3.22.27/sql'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/paul/mysql-3.22.27/sql'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/paul/mysql-3.22.27'
> make: *** [all-recursive-am] Error 2
> 
> I had this problem with the previous stable release, as well as the current
> .23 alpha.  I must be doing something obviously wrong, but I can't find any
> reference to this problem in the manual/FAQ/README.  Ideas?  Thanks...
> 
> BTW, I just did a standard "configure --prefix=/usr/local/mysql" before that,
> then a "make", which is where this failure occured.  Thanks!
> -- 
> Paul H. Yoshimune
> paul@stripped
> 
> ---------------------------------------------------------------------
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
> posting. To request this thread, e-mail mysql-thread15482@stripped
> 
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail mysql-unsubscribe@stripped instead.

-- 
Paul H. Yoshimune
paul@stripped
Thread
Trouble with Solaris 2.5.1 build...Paul H. Yoshimune8 Oct
  • Re: Trouble with Solaris 2.5.1 build...Paul H. Yoshimune8 Oct
    • Re: Trouble with Solaris 2.5.1 build...Michael Widenius9 Oct