i've gone round-n-round with this one ......

modperl2 build on OSX Server10.1.4 fails with "/usr/bin/ld: -undefined: 
unknown argument: -undefined" with:

perl Makefile.PL MP_INST_APACHE2=1 MP_AP_PREFIX=/usr/local/apache2 
MP_USE_DSO=1 MP_USE_STATIC=0 MP_STATIC_EXTS=0;make

if it matters, modperl2 is the only pkg that seems to have trouble (on my 
systems ....) with "-undefined suppress"

here's the make tail:

cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN -no-cpp-precomp 
-fno-strict-aliasing -I/usr/include -I/usr/local/include 
-I/usr/local/BerkeleyDB/include -I/usr/X11R6/include 
-I/usr/local/perl/lib/CORE -DMOD_PERL -O3  \
-c modperl_xsinit.c && mv modperl_xsinit.o modperl_xsinit.lo
rm -f mod_perl.so
cc -flat_namespace -bundle -undefined suppress -L/usr/local/lib -L/usr/lib 
-L/usr/X11R6/lib -L/usr/local/BerkeleyDB/lib \
 \
mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo 
modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo 
modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo 
modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo 
modperl_global.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo 
modperl_perl_global.lo modperl_hooks.lo modperl_directives.lo 
modperl_flags.lo modperl_xsinit.lo  -flat_namespace -undefined suppress 
-L/usr/local/lib -L/usr/lib -L/usr/X11R6/lib -L/usr/local/BerkeleyDB/lib 
/usr/local/perl/lib/auto/DynaLoader/DynaLoader.a -L/usr/local/perl/lib/CORE 
-lperl -ldl -lm -lc \
-o mod_perl.so
/usr/bin/ld: -undefined: unknown argument: -undefined
make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory 
`/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl'
make: *** [modperl_lib] Error 2
[root@server]

the ENV settings -- including the "undefined suppress" -- are necessary to 
get successful builds of Apache2.0.37 & Perl 5.8.0RC1 with >99% test 
success ......

here are the criticals:

apache config:

unsetenv CFLAGS;\
unsetenv LDFLAGS;\
unsetenv CXXFLAGS;\
unsetenv CPPFLAGS;\
unsetenv DSOFLAGS;\
cd httpd-2.0;\
./configure \
--enable-layout=Darwin --with-port=80 --with-mpm=worker \
--enable-mods-shared=all --enable-so \
--prefix=/usr/local/apache2 \
--libexecdir=/usr/local/apache2/libexec \
--mandir=/usr/local/man \
--datadir=/Volumes/ServerDATA/data/WebSites \
--sysconfdir=/etc/httpd \
--includedir=/usr/local/apache2/include \
--localstatedir=/private/var \
--enable-dav --enable-dav-fs \
--enable-ssl --with-ssl=/usr/local/ssl \
--enable-suexec --with-suexec-caller=www \
--with-z=/usr/local/zlib \
--with-dbm=db4 --with-berkeley-db=/usr/local/BerkeleyDB \
--with-expat=/usr/local/expat;\
make;\
make install

perl config:

./Configure -Dfirstmakefile=GNUmakefile -Dusedevel -Duseperlio -Dusethreads

perl -V result:

[root@server]perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0 patch 17207) 
configuration:
  Platform:
    osname=darwin, osvers=5.4, archname=darwin-thread-multi
    uname='darwin server.internal.net 5.4 darwin kernel version 5.4: wed 
apr 10 09:27:47 pdt 2002; root:xnuxnu-201.19.3.obj~1release_ppc power 
macintosh powerpc '
    config_args='-Dfirstmakefile=GNUmakefile -Dusedevel -Duseperlio 
-Dusethreads -der'
    hint=previous, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define 
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-pipe -fno-common -DINT32_MIN_BROKEN 
-DINT64_MIN_BROKEN -no-cpp-precomp -fno-strict-aliasing -I/usr/include 
-I/usr/local/include -I/usr/local/BerkeleyDB/include -I/usr/X11R6/include',
    optimize='-O3',
    cppflags='-no-cpp-precomp -pipe -fno-common -DINT32_MIN_BROKEN 
-DINT64_MIN_BROKEN -no-cpp-precomp -fno-strict-aliasing -I/usr/include 
-I/usr/local/include -I/usr/local/BerkeleyDB/include -I/usr/X11R6/include 
-pipe -fno-common -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN -no-cpp-precomp 
-fno-strict-aliasing -I/usr/include -I/usr/local/include 
-I/usr/local/BerkeleyDB/include -I/usr/X11R6/include'
    ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-flat_namespace -undefined suppress -L/usr/local/lib 
-L/usr/lib -L/usr/X11R6/lib -L/usr/local/BerkeleyDB/lib'
    libpth=/usr/local/lib /usr/lib /usr/local/BerkeleyDB/lib /usr/X11R6/lib
    libs=-ldb -ldl -lm -lc
    perllibs=-ldl -lm -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, 
libperl=libperl.dylib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -flat_namespace -bundle -undefined suppress 
-L/usr/local/lib -L/usr/lib -L/usr/X11R6/lib -L/usr/local/BerkeleyDB/lib'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES 
PERL_IMPLICIT_CONTEXT
  Locally applied patches:
        DEVEL17205
  Built under darwin
  Compiled at Jun 12 2002 14:51:54
  @INC:
    /usr/local/perl/lib
    /usr/local/perl/lib
    /usr/local/perl/lib
    /usr/local/perl/lib
    .

any suggestions would be much appreciated .......

richard
--------------------------------------
R Blake
blakers <at> mac.com
http://homepage.mac.com/blakers
--------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to