2 messages in com.mysql.lists.mysqlRe: make problem | From | Sent On | Attachments |
|---|---|---|
| mas...@yc.hb.cninfo.net | 13 Jan 2000 00:59 | |
| sin...@mysql.com | 13 Jan 2000 05:00 |
| Subject: | Re: make problem ![]() |
|---|---|
| From: | sin...@mysql.com (sin...@mysql.com) |
| Date: | 01/13/2000 05:00:31 AM |
| List: | com.mysql.lists.mysql |
mas...@yc.hb.cninfo.net writes:
Description:
when i use make,the following errors prompt:
c++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/opt/mysql\"" c mysqld.cc: In function `int main(int, char **)': mysqld.cc:1034: implicit declaration of function `int gethostname(...)' *** Error code 1 make: Fatal error: Command failed for target `mysqld.o' Current working directory /opt/zheng/mysql-3.22.29/sql *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /opt/zheng/mysql-3.22.29/sql *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /opt/zheng/mysql-3.22.29 *** Error code 1 make: Fatal error: Command failed for target `all-recursive-am'
How-To-Repeat: Fix:
Submitter-Id: <submitter ID> Originator: Organization:
MySQL support: [none | licence | email support | extended email support ] Severity: Priority: Category: mysql Class: Release: mysql-3.22.29 (Source distribution) Server: mysqladmin Ver 7.12 Distrib 3.22.29, for sun-solaris2.5.1 on sparc
TCX Datakonsult AB, by Monty
Server version 3.22.29 Protocol version 10 Connection Localhost via UNIX socket UNIX socket /tmp/mysql.sock Uptime: 23 hours 13 min 30 sec
Threads: 1 Questions: 285 Slow queries: 0 Opens: 16 Flush tables: 1 Open
tables: 6
Environment:
System: SunOS yc-bbs 5.5.1 Generic_103640-26 sun4u sparc SUNW,Ultra-2 Architecture: sun4
Some paths: /usr/local/bin/perl /usr/ccs/bin/make /opt/GCC295/bin//gcc
/usr/ucb/cc
GCC: Reading specs from
/opt/GCC295/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95/specs
gcc version 2.95 19990728 (release)
Compilation info: CC='gcc' CFLAGS='' CXX='gcc' CXXFLAGS='' LDFLAGS=''
Configure command: ./configure --with-unix-socket-path=/var/tmp/mysql.sock
--with-low-memory --with-mit-threads=yes
Perl: This is perl, version 5.004_03
Hi!
You have an error in config options. Do not specify --with-mit-threads=yes, unless your SunOS is very, very old.
Beside that, add -DSOLARIS in CFLAGS and CXXFLAGS. Follow precisely instructions in Solaris chapter in the manual.
Regards,
Sinisa
+----------------------------------------------------------------------+ | TcX ____ __ _____ _____ ___ == mys...@tcx.se | | /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic | | /*/ /*/ /*/ \*\_ |*| |*||*| mailto:sin...@mysql.com | | /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaka, Cyprus | | /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ | | ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ | | /*/ \*\ Developers Team | +----------------------------------------------------------------------+




