NetBSD Problem Report #32397

From mochid@netside.co.jp  Wed Dec 28 08:45:02 2005
Return-Path: <mochid@netside.co.jp>
Received: from smtp1.netside.co.jp (dns1.netside.co.jp [211.5.252.74])
	by narn.netbsd.org (Postfix) with ESMTP id 9955463BA67
	for <gnats-bugs@gnats.netbsd.org>; Wed, 28 Dec 2005 08:44:54 +0000 (UTC)
Message-Id: <200512280846.jBS8keO17899@cedar.yorie.netside.co.jp>
Date: Wed, 28 Dec 2005 17:46:40 +0900 (JST)
From: mochid@netside.co.jp
Reply-To: mochid@netside.co.jp
To: gnats-bugs@netbsd.org
Subject: pkgsrc/www/ap-php does not build on MacOS X
X-Send-Pr-Version: 3.95

>Number:         32397
>Category:       pkg
>Synopsis:       pkgsrc/www/ap-php does not build on MacOS X
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    darwin-pkg-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 28 08:50:00 +0000 2005
>Closed-Date:    Sun Sep 02 19:33:57 +0000 2007
>Last-Modified:  Sun Sep 02 19:33:57 +0000 2007
>Originator:     MOCHIDA Shuji
>Release:        MacOS X 10.3.9
>Organization:
personal
>Environment:
Mac mini
Darwin bass.yorie.netside.co.jp 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC  Power Macintosh powerpc
Architecture: MacOS X powerpc
Machine: Macintosh PowerPC G4 7447
>Description:

link error when linking libs/libphp5.bundle(libs/libphp5.so).
.o files are made in .libs/ directory, for example, libxml.o is in
ext/libxml/.libs/libxml.o, but link line specify
ext/libxml/libxml.o to gcc. There should be libtool magic or something.

=> Checksum RMD160 OK for php-5.1.1.tar.bz2.
work.powerpc -> /t/obj-powerpc-darwin/www/ap-php/work.powerpc
===> Extracting for ap-php-5.1.1nb3
  :
===> Creating toolchain wrappers for ap-php-5.1.1nb3
===> Configuring for ap-php-5.1.1nb3
  :
===> Building for ap-php-5.1.1nb3
/bin/sh /t/obj-powerpc-darwin/www/ap-php/work.powerpc/php-5.1.1/libtool --silent --preserve-dup-deps --mode=compile gcc -pipe  -Iext/libxml/ -I/t/obj-powerpc-darwin/www/ap-php/work.powerpc/php-5.1.1/ext/libxml/ -DPHP_ATOM_INC -I/t/obj-powerpc-darwin/www/ap-php/work. powerpc/php-5.1.1/include -I/t/obj-powerpc-darwin/www/ap-php/work.powerpc/php-5.1.1/main -I/t/obj-powerpc-darwin/www/ap-php/work.powerpc/php-5.1.1 -I/usr/pkg/include/libxml2 -I/t/obj-powerpc-darwin/www/ap-php/work.powerpc/php-5.1.1/ext/date/lib -I/t/obj-powerpc-darwin/www/ap-php/work.powerpc/php-5.1.1/TSRM -I/t/obj-powerpc-darwin/www/ap-php/work.powerpc/php-5.1.1/Zend  -no-cpp-precomp -I/usr/include -I/usr/pkg/include -no-cpp-precomp -I/usr/pkg/include  -O2 -I/usr/include -I/usr/pkg/include  -c /t/obj-powerpc-darwin/www/ap-php/work.powerpc/php-5.1.1/ext/libxml/libxml.c -o ext/libxml/libxml.lo
  :
  :
gcc -pipe -dynamic -twolevel_namespace -bundle -bundle_loader /usr/pkg/sbin/httpd -O2 -I/usr/include -I/usr/pkg/include  -L/usr/lib -L/usr/pkg/lib -L/usr/pkg/lib ext/libxml/libxml.o ext/openssl/openssl.o ext/openssl/xp_ssl.o ext/pcre/pcreli
  :
api/apache/php_apache.o main/internal_functions.o  -lssl -lcrypto -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm  -o libs/libphp5.bundle && cp libs/libphp5.bundle libs/libphp5.so
gcc: ext/libxml/libxml.o: No such file or directory
gcc: ext/openssl/openssl.o: No such file or directory
  :
gcc: sapi/apache/php_apache.o: No such file or directory
gcc: main/internal_functions.o: No such file or directory
*** Error code 1

Stop.

>How-To-Repeat:
    bmake in www/ap-php/ on MacOS X 10.3.9
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->darwin-pkg-people
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Fri, 30 Dec 2005 00:17:55 +0000
Responsible-Changed-Why:
Assigned to pkgsrc developers who can help on Darwin.


From: Mark Sergeant <msergeant@snsonline.net>
To: pkgsrc-bugs@netbsd.org
Cc: 
Subject: re: pkg/32397: pkgsrc/www/ap-php does not build on MacOS X
Date: Wed, 8 Feb 2006 00:17:53 +1000

 If anyone is interested this error is still in effect with the latest  
 PHP 5.1.2 import on OS X 10.4.4 as well. I tried a work around (doing  
 an individual ln -s .libs/*.o . on each affected directory). I then  
 ended up with the following error...

 /usr/bin/ld: multiple definitions of symbol _yytext
 Zend/zend_language_scanner.o definition of _yytext in section  
 (__DATA,__common)
 Zend/zend_ini_scanner.o definition of _yytext in section  
 (__DATA,__common)
 /usr/bin/ld: multiple definitions of symbol _xmlwriter_class_entry_ce
 ext/xmlwriter/php_xmlwriter.o definition of _xmlwriter_class_entry_ce  
 in section (__DATA,__common)
 main/internal_functions.o definition of _xmlwriter_class_entry_ce in  
 section (__DATA,__common)
 /usr/bin/ld: warning multiple definitions of symbol _pcre_free
 ext/pcre/pcrelib/pcre_globals.o definition of _pcre_free in section  
 (__DATA,__data)
 /data/sbin/httpd definition of _pcre_free
 /usr/bin/ld: warning multiple definitions of symbol _pcre_malloc
 ext/pcre/pcrelib/pcre_globals.o definition of _pcre_malloc in section  
 (__DATA,__data)
 /data/sbin/httpd definition of _pcre_malloc
 /usr/bin/ld: warning multiple definitions of symbol _regcomp
 /data/sbin/httpd definition of _regcomp
 /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libpthread.dylib 
 (regcomp.So) definition of _regcomp
 /usr/bin/ld: warning multiple definitions of symbol _regexec
 /data/sbin/httpd definition of _regexec
 /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libpthread.dylib 
 (regexec.So) definition of _regexec
 /usr/bin/ld: warning multiple definitions of symbol _regfree
 /data/sbin/httpd definition of _regfree
 /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libpthread.dylib 
 (regfree.So) definition of _regfree
 collect2: ld returned 1 exit status
 gnumake: *** [libs/libphp5.bundle] Error 1

 If anyone has any ideas let me know, I'm happy to help test fixes.

 Cheers,

 Mark

Responsible-Changed-From-To: darwin-pkg-people->schmonz
Responsible-Changed-By: schmonz@netbsd.org
Responsible-Changed-When: Wed, 30 May 2007 09:11:10 +0000
Responsible-Changed-Why:
I'll handle this one.


State-Changed-From-To: open->feedback
State-Changed-By: schmonz@netbsd.org
State-Changed-When: Wed, 30 May 2007 09:11:10 +0000
State-Changed-Why:
Awaiting feedback.


State-Changed-From-To: feedback->open
State-Changed-By: schmonz@netbsd.org
State-Changed-When: Wed, 30 May 2007 09:16:13 +0000
State-Changed-Why:
Oops, not ready for feedback yet.


Responsible-Changed-From-To: schmonz->darwin-pkg-people
Responsible-Changed-By: schmonz@netbsd.org
Responsible-Changed-When: Fri, 29 Jun 2007 03:31:08 +0000
Responsible-Changed-Why:
Mistakenly took the lock on this one, relinquishing...


State-Changed-From-To: open->closed
State-Changed-By: jdolecek@netbsd.org
State-Changed-When: Sun, 02 Sep 2007 19:33:57 +0000
State-Changed-Why:
This is fixed in www/ap-php/Makefile revision 1.16.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.