Subject: pkg/10012: pkgsrc/www/php3-mysql requires libm
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Gillham <gillham@vaultron.com>
List: netbsd-bugs
Date: 04/29/2000 07:38:08
>Number: 10012
>Category: pkg
>Synopsis: pkgsrc/www/php3-mysql requires libm
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 29 07:39:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Andrew Gillham
>Release: April 28, 2000
>Organization:
>Environment:
System: NetBSD flash.vaultron.com 1.4X NetBSD 1.4X (FLASH) #1: Sun Apr 23 19:16:24 EDT 2000 root@flash.vaultron.com:/usr/src/sys/arch/i386/compile/FLASH i386
>Description:
Any programs linking against libmysqlclient must also link
against libm. Currently www/php3-mysql does not. This results
in a sucessful package build/install, but a runtime failure.
The runtime failure is logged via apache when the failure occurs.
>How-To-Repeat:
Install www/php3-mysql, and dependencies.
Attempt to access a php3 script/page that does a mysqlconnect.
An error about 'unknown PLT symbol "floor"' will be logged.
>Fix:
The following patch:
--- www/php3-mysql/Makefile.orig Sat Apr 29 09:53:27 2000
+++ www/php3-mysql/Makefile Sat Apr 29 09:53:59 2000
@@ -12,7 +12,7 @@
do-build:
cd ${WRKSRC}/functions && \
${COMPILE.c} -I.. -I. -I${LOCALBASE}/include/mysql -fPIC -DPIC -DCOMPILE_DL mysql.c && \
- ld -Bshareable -o mysql.so mysql.o -L${LOCALBASE}/lib/mysql -R${LOCALBASE}/lib/mysql -lmysqlclient
+ ld -Bshareable -o mysql.so mysql.o -L${LOCALBASE}/lib/mysql -R${LOCALBASE}/lib/mysql -lmysqlclient -lm
do-install:
${INSTALL_DATA} ${WRKSRC}/functions/mysql.so ${PREFIX}/lib/php3/
>Release-Note:
>Audit-Trail:
>Unformatted: