Note that this is not an issue any more in 3.7 since we dropped the configure
macro based on Perl -v, but it could be worth patching this for 3.6 for MacOSX
users.
------------
Subject: configure and os x
Date: Tue, 8 Oct 2002 16:09:01 -0400
From: Zak James <zak@aiya.dhs.org>
To: Daniel Morissette <morissette@dmsolutions.ca>
Hi Daniel,
I hope you had a good trip.
I'm trying to tie up some loose ends so that I can finally add a
mapserver wiki page for building on os x. I have a problem with
configure and I am wondering whether to put a workaround in the howto
or if it is feasible to change the configure script.
The problem is that the perl -V output from the perl installed with os
x is not handled properly so that PHP_LD is left as /bin/true and the
php mapscript linking doesn't get done.
In line 5365 of configure, PERL_LDDLFLAGS=`grep ' lddlflags' perl.out
| cut -d, -f2 | cut -d\' -f2 | grep -v undef` is returning a blank. I'm
including the os x perl -V output so you can see for yourself but the
if I modify the line to be
PERL_LDDLFLAGS `grep ' lddlflags' perl.out |cut -d\' -f4` it picks up
the right flags (-bundle -flat_namespace -undefined suppress).
I didn't want to start hacking around with it because I'd surely break
it for some other platform. Any ideas?
Zak
[frazzle:~/mapserver] zak% perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=darwin, osvers=6.0, archname=darwin
uname='darwin fisheye 6.0 darwin kernel version 5.2: mon jun 17
09:55:14 pdt 2002; root:xnu-201-14.rootsxnu-201-14.objrelease_ppc power
macintosh powerpc '
config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags='
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef
usesocks=undef
Compiler:
cc='cc', optimize='-Os', gccversion=Apple cpp-precomp 6.14
cppflags='-g -pipe -pipe -fno-common -no-cpp-precomp
-flat_namespace -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing'
ccflags ='-g -pipe -pipe -fno-common -no-cpp-precomp
-flat_namespace -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing'
stdchar='char', d_stdstdio=undef, usevfork=true
intsize=4, longsize=4, ptrsize=4, doublesize=8
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, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =''
libpth=/usr/lib
libs=-lm -lc
libc=/System/Library/Frameworks/System.framework/System, so=dylib,
useshrplib=true, libperl=libperl.dylib
Dynamic Linking:
dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-bundle -flat_namespace -undefined
suppress'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under darwin
Compiled at Jul 14 2002 04:04:33
%ENV:
PERL_LDDLFLAGS="-bundle -flat_namespace -undefined suppress"
@INC:
/System/Library/Perl/darwin
/System/Library/Perl
/Library/Perl/darwin
/Library/Perl
/Library/Perl
/Network/Library/Perl/darwin
/Network/Library/Perl
/Network/Library/Perl