Bug 42327 - Unable to compile mysql323-server 3.23.52 on current w/new gcc3.2
Summary: Unable to compile mysql323-server 3.23.52 on current w/new gcc3.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: dirk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-02 17:10 UTC by Ed Culp
Modified: 2014-10-11 15:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Culp 2002-09-02 17:10:02 UTC
I get the following error when trying to 
# make BUILD_STATIC=yes

Making all in share
c++ -DMYSQL_SERVER                      -DDEFAULT_MYSQL_HOME="\"/usr/local\""                   -DDATADIR="\"/var/db/mysql\""                   -DSHAREDIR="\"/usr/local/share/mysql\""                  -DHAVE_CONFIG_H -I../bdb/build_unix -I../innobase/include                       -I./../include                  -I./../regex            -I. -I../include -I.. -I.    -DDBUG_OFF -O -pipe -mcpu=pentiumpro -felide-constructors -fno-rtti -fno-exceptions  -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000 -c mysqld.cc
/usr/include/tcpd.h: In function `void* handle_connections_sockets(void*)':
/usr/include/tcpd.h:137: too many arguments to function `void sock_host()'
mysqld.cc:2444: at this point in file
/usr/include/tcpd.h:75: too many arguments to function `int hosts_access()'
mysqld.cc:2445: at this point in file
/usr/include/tcpd.h:130: too many arguments to function `char* eval_client()'
mysqld.cc:2453: at this point in file
*** Error code 1

Stop in /usr/ports/databases/mysql323-server/work/mysql-3.23.52/sql.
*** Error code 1

Fix: 

I don't know
How-To-Repeat: I had hoped that the compiler change was going to fix this.  The problem also existed with the previous 3.1 compiler.

cd /usr/ports/databases/mysql323-server
make BUILD_STATIC=yes
Comment 1 Oliver Braun freebsd_committer freebsd_triage 2002-09-02 17:18:12 UTC
Responsible Changed
From-To: freebsd-ports->dirk

Over to maintainer(s)
Comment 2 yuri 2002-09-02 19:17:06 UTC
This is actually what caused a problem
few weeks ago.

It's a bug with old vs. new style of
C-declarations in tcpd.h.

I am going to submit a patch to fix it in
tcpd.h today.

yuri.
Comment 3 dirk freebsd_committer freebsd_triage 2002-11-17 15:42:05 UTC
State Changed
From-To: open->closed

mysql-server compiles on -CURRENT, now.