pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/36915: databases/mysql4-server fails to build on freebsd
>Number: 36915
>Category: pkg
>Synopsis: databases/mysql4-server: fails to build on freebsd
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 05 09:45:00 +0000 2007
>Originator: Yakovetsky Vladimir
>Release:
>Organization:
>Environment:
System: FreeBSD solo.x.ua 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #0: Sun Aug 12
18:14:48 EEST 2007 yx%solo.x.ua@localhost:/usr/obj/usr/src/sys/solo i386
>Description:
databases/mysql4-server fails to build on freebsd
>How-To-Repeat:
% cd /usr/pkgsrc/databases/mysql4-server
% bmake
...
c++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/pkg\""
-DDATADIR="\"/var/mysql\"" -DSHAREDIR="\"/usr/pkg/share/mysql\""
-DHAVE_CONFIG_H -I. -I. -I.. -I../innobase/include -I../include -I../include
-I../regex -I. -Dunix -I/usr/include -I/usr/pkg/include/mysql -DDBUG_OFF -O2
-DUSE_OLD_FUNCTIONS -I/usr/include -I/usr/pkg/include/mysql -mfpmath=sse -msse
-march=pentium3 -finline-functions -fomit-frame-pointer -ffast-math
-fno-implicit-templates -fno-exceptions -fno-rtti
-DMYSQLD_NET_RETRY_COUNT=1000000 -c -o mysqld.o mysqld.cc
mysqld.cc: In function `void* handle_connections_sockets(void*)':
/usr/include/tcpd.h:137: error: too many arguments to function `void
sock_host()'
mysqld.cc:3822: error: at this point in file
/usr/include/tcpd.h:75: error: too many arguments to function `int
hosts_access()'
mysqld.cc:3823: error: at this point in file
/usr/include/tcpd.h:130: error: too many arguments to function `char*
eval_client()'
mysqld.cc:3831: error: at this point in file
gmake[4]: *** [mysqld.o] Error 1
gmake[4]: Leaving directory
`/usr/obj/databases/mysql4-server/work/mysql-4.1.22/sql'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/usr/obj/databases/mysql4-server/work/mysql-4.1.22/sql'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/usr/obj/databases/mysql4-server/work/mysql-4.1.22/sql'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/obj/databases/mysql4-server/work/mysql-4.1.22'
gmake: *** [all] Error 2
*** Error code 2
Stop.
>Fix:
:r /usr/pkgsrc/databases/mysql4-server/hacks.mk
.if !defined(MYSQL4_SERVER_HACKS_MK)
MYSQL4_SERVER_HACKS_MK=
### issue is specific to FreeBSD
.if ${LOWER_OPSYS} == "freebsd"
PKG_HACKS+= tcpd_h
post-wrapper:
${SED} -e 's/^extern void sock_host(/&struct request_info */' \
-e 's/^extern int hosts_access(/&struct request_info */' \
-e 's/^extern char \*eval_client(/&struct request_info */' \
/usr/include/tcpd.h >${BUILDLINK_DIR}/include/tcpd.h
.endif
.endif
Home |
Main Index |
Thread Index |
Old Index