Subject: www/apache build error with Darwin
To: None <tech-pkg@netbsd.org>
From: Sean J. Schluntz <schluntz@workofstone.com>
List: tech-pkg
Date: 12/13/2002 20:30:18
With the Dec 7th pkgsrc.tar.gz and the
bootstrap-Darwin-6.2-powerpc-20021202.tar.gz I've run in to a problem
trying to build Apache.

The "bmake" in www/apache finds libmm and expat, the configure runs
through and then it begins to build.  Then I run in to the following
error:

<=== src/modules
cc -c  -I./os/unix -I./include  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDARWIN -DUSE_HSREGEX -DEAPI -DEAPI_MM -g -I/usr/pkg/include `./apaci` modules.c
cc -c  -I./os/unix -I./include  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDARWIN -DUSE_HSREGEX -DEAPI -DEAPI_MM -g -I/usr/pkg/include `./apaci` buildmark.c
cc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDARWIN -DUSE_HSREGEX -DEAPI -DEAPI_MM -g -I/usr/pkg/include `./apaci`  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib    -o httpd buildmark.o modules.o  modules/standard/libstandard.a  main/libmain.a  ./os/unix/libos.a  ap/libap.a regex/libregex.a   -lexpat
ld: warning multiple definitions of symbol _regcomp
regex/libregex.a(regcomp.o) private external definition of _regcomp in section (__TEXT,__text)
/usr/lib/libSystem.dylib(regcomp.So) definition of _regcomp
ld: warning multiple definitions of symbol _regexec
regex/libregex.a(regexec.o) private external definition of _regexec in section (__TEXT,__text)
/usr/lib/libSystem.dylib(regexec.So) definition of _regexec
ld: warning multiple definitions of symbol _regfree
regex/libregex.a(regfree.o) private external definition of _regfree in section (__TEXT,__text)
/usr/lib/libSystem.dylib(regfree.So) definition of _regfree
ld: Undefined symbols:
_MM_available
_MM_calloc
_MM_create
_MM_destroy
_MM_error
_MM_free
_MM_lock
_MM_malloc
_MM_maxsize
_MM_permission
_MM_realloc
_MM_sizeof
_MM_strdup
_MM_unlock
_mm_available
_mm_calloc
_mm_core_align2page
_mm_core_align2word
_mm_core_create
_mm_core_delete
_mm_core_lock
_mm_core_maxsegsize
_mm_core_permission
_mm_core_size
_mm_core_unlock
_mm_create
_mm_destroy
_mm_display_info
_mm_error
_mm_free
_mm_lib_error_get
_mm_lib_error_set
_mm_lib_version
_mm_lock
_mm_malloc
_mm_maxsize
_mm_permission
_mm_realloc
_mm_sizeof
_mm_strdup
_mm_unlock
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/www/apache/work/apache_1.3.27/src
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/www/apache/work/apache_1.3.27
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/www/apache/work/apache_1.3.27
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/www/apache
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/www/apache


Have any of you run in to this?  None of the error messages showed up
in a maillist search.

-Sean