On May 26, 2010, at 1:47 PM, Bjoern Hoehrmann via RT wrote:
Show quoted text> * john via RT wrote:
>> Wed May 26 16:37:48 2010: Request 57886 was acted upon.
>> Transaction: Ticket created by smadness
>> Queue: SGML-Parser-OpenSP
>> Subject: installing on SnowLeopard fails run with Symbol not found:
>> __ZN15SGMLApplication11nonSgmlCharERKNS_16NonSgmlCharEventE
>
> "Fink" appears to have only OpenSP 1.5.1 while, as you will find in the
> README, the module requires OpenSP 1.5.2.
Thanks for the reply.
From my best estimate it seems that I'm trying to compile against the OpenSP 1.5.2 sources. I've also since switched to MacPorts since it seems to be working better. But the same symbol error occurs, all the output is pasted below.
Thanks for the help,
~ john
bash-3.2# /mp/bin/port uninstall opensp
---> Deactivating opensp @1.5.2_0
---> Uninstalling opensp @1.5.2_0
bash-3.2# /mp/bin/port install opensp
---> Computing dependencies for opensp
---> Fetching opensp
---> Verifying checksum(s) for opensp
---> Extracting opensp
---> Configuring opensp
---> Building opensp
---> Staging opensp into destroot
---> Installing opensp @1.5.2_0
---> Activating opensp @1.5.2_0
---> Cleaning opensp
bash-3.2# grep SP_VERSION /mp/include/OpenSP/config.h
#define SP_VERSION "1.5.2"
bash-3.2# pwd
/Users/john/Sites/validator/_downloads/SGML-Parser-OpenSP-0.994
bash-3.2# grep INC Makefile.PL
INC => '-I/mp/include', # e.g., '-I/usr/include/other'
bash-3.2# make clean
bash-3.2# perl Makefile.PL
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lstdc++
Note (probably harmless): No library found for -losp
Writing Makefile for SGML::Parser::OpenSP
bash-3.2# make
cp lib/SGML/Parser/OpenSP.pm blib/lib/SGML/Parser/OpenSP.pm
cp lib/SGML/Parser/OpenSP/Tools.pm blib/lib/SGML/Parser/OpenSP/Tools.pm
/usr/bin/perl /System/Library/Perl/5.10.0/ExtUtils/xsubpp -C++ -typemap /System/Library/Perl/5.10.0/ExtUtils/typemap -typemap typemap OpenSP.xs > OpenSP.xsc && mv OpenSP.xsc OpenSP.c
g++ -c -I/mp/include -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"0.994\" -DXS_VERSION=\"0.994\" "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE" -DSP_MULTI_BYTE=1 OpenSP.c
OpenSP.c: In function 'void boot_SGML__Parser__OpenSP(PerlInterpreter*, CV*)':
OpenSP.c:1363: warning: deprecated conversion from string constant to 'char*'
OpenSP.c: In function 'void boot_SGML__Parser__OpenSP(PerlInterpreter*, CV*)':
OpenSP.c:1363: warning: deprecated conversion from string constant to 'char*'
OpenSP.c: In function 'void boot_SGML__Parser__OpenSP(PerlInterpreter*, CV*)':
OpenSP.c:1363: warning: deprecated conversion from string constant to 'char*'
Running Mkbootstrap for SGML::Parser::OpenSP ()
chmod 644 OpenSP.bs
rm -f blib/arch/auto/SGML/Parser/OpenSP/OpenSP.bundle
g++ -arch x86_64 -arch i386 -arch ppc -bundle -undefined dynamic_lookup -L/usr/local/lib OpenSP.o -o blib/arch/auto/SGML/Parser/OpenSP/OpenSP.bundle \
\
chmod 755 blib/arch/auto/SGML/Parser/OpenSP/OpenSP.bundle
cp OpenSP.bs blib/arch/auto/SGML/Parser/OpenSP/OpenSP.bs
chmod 644 blib/arch/auto/SGML/Parser/OpenSP/OpenSP.bs
Manifying blib/man3/SGML::Parser::OpenSP.3pm
Manifying blib/man3/SGML::Parser::OpenSP::Tools.3pm
bash-3.2# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01basic...........
# Failed test 'use SGML::Parser::OpenSP;'
# at t/01basic.t line 14.
t/01basic...........NOK 1/4# Tried to use 'SGML::Parser::OpenSP'.
# Error: Can't load '/Users/john/Sites/validator/_downloads/SGML-Parser-OpenSP-0.994/blib/arch/auto/SGML/Parser/OpenSP/OpenSP.bundle' for module SGML::Parser::OpenSP: dlopen(/Users/john/Sites/validator/_downloads/SGML-Parser-OpenSP-0.994/blib/arch/auto/SGML/Parser/OpenSP/OpenSP.bundle, 2): Symbol not found: __ZN15SGMLApplication11nonSgmlCharERKNS_16NonSgmlCharEventE
# Referenced from: /Users/john/Sites/validator/_downloads/SGML-Parser-OpenSP-0.994/blib/arch/auto/SGML/Parser/OpenSP/OpenSP.bundle
# Expected in: flat namespace
# in /Users/john/Sites/validator/_downloads/SGML-Parser-OpenSP-0.994/blib/arch/auto/SGML/Parser/OpenSP/OpenSP.bundle at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm line 207.
# at (eval 5) line 2
# Compilation failed in require at (eval 5) line 2.
# BEGIN failed--compilation aborted at (eval 5) line 2.
...