|
linking problems: msg#00113programming.swig
Hello I seem to be having a problem loading everything properly at runtime with a c++/perl5.8 swig thing i am doing we use the solaris compiler CC for C++ and linking and I have compiled perl to know about that (I will include perl -V output below) i am not sure what all information to give you, so i will start with the error message and then fill out the rest below ld.so.1: /home/ayoung/bin/perl: fatal: relocation error: file /home/ayoung/lib/perl5/site_perl/5.8.0/sun4-solaris-thread-multi/auto/guid/guid.so: symbol __1cH__rwstdTInterlockedExchange6Fpll_l_: referenced symbol not found below are the commands that get executed + swig -shadow -I/bld/sun/v1249.0/wfg/include/incl/GA -perl5 -c++ -o guid_wrap.C guid.i + set +x + /home/ayoung/bin/perl Makefile.PL CC=CC Writing Makefile for guid + set +x cp guid.pm blib/lib/guid.pm CC -c -I/home/ayoung/tmp -I/prod_opt/odbc/include -I/home/ayoung/projects/g4/ntdev/services/clrsvcs/install/include/rscs -I/home/g4dev/cti_prod/.1.4/install/include -I/bld/sun/v1249.0/wfg/include/incl/GA -I/bld/sun/v1249.0/GA -I/bld/sun/v1249.0/wfg/include/rtdds -I/usr/local/xerces/xerces-c1_6_0/include -I/bld/sun/v1249.0/wfg/include -I/usr/local/ldap/netscape/ldapcsdk414/include -I/bld/sun/v1249.0/wfg/include/CmdLine -I/usr/local/ACE/5.1.13/SOLARIS28/SUNPRO52/include -I/usr/local/ACE/5.1.13 -I/usr/local/rogue711/workspaces/SOLARIS28/SUNPRO52/12s_nonstl -I/usr/local/tibco/6.6/SOL28/SPARC/include -mt -Bdynamic -G -KPIC -library=rwtools7_std,Cstd -features=no%localfor,anachronisms,no%conststrings,no%export -xtarget=ultra2 -xarch=v8plusa -DHAS_BOOL -DSOLARIS -O -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -KPIC "-I/home/ayoung/lib/perl5/5.8.0/sun4-solaris-thread-multi/CORE" guid_wrap.C CC -c -I/home/ayoung/tmp -I/prod_opt/odbc/include -I/home/ayoung/projects/g4/ntdev/services/clrsvcs/install/include/rscs -I/home/g4dev/cti_prod/.1.4/install/include -I/bld/sun/v1249.0/wfg/include/incl/GA -I/bld/sun/v1249.0/GA -I/bld/sun/v1249.0/wfg/include/rtdds -I/usr/local/xerces/xerces-c1_6_0/include -I/bld/sun/v1249.0/wfg/include -I/usr/local/ldap/netscape/ldapcsdk414/include -I/bld/sun/v1249.0/wfg/include/CmdLine -I/usr/local/ACE/5.1.13/SOLARIS28/SUNPRO52/include -I/usr/local/ACE/5.1.13 -I/usr/local/rogue711/workspaces/SOLARIS28/SUNPRO52/12s_nonstl -I/usr/local/tibco/6.6/SOL28/SPARC/include -mt -Bdynamic -G -KPIC -library=rwtools7_std,Cstd -features=no%localfor,anachronisms,no%conststrings,no%export -xtarget=ultra2 -xarch=v8plusa -DHAS_BOOL -DSOLARIS -O -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -KPIC "-I/home/ayoung/lib/perl5/5.8.0/sun4-solaris-thread-multi/CORE" guid.C Running Mkbootstrap for guid () chmod 644 guid.bs rm -f blib/arch/auto/guid/guid.so LD_RUN_PATH="/usr/lib:/bld/sun/v1249.0/wfg/lib:/usr/ccs/lib:/prod_opt/SUNWspro_6.2/SUNWspro/WS6U2/lib:/usr/local/tibco/6.6/SOL28/SPARC/lib:/usr/local/rogue711/workspaces/SOLARIS28/SUNPRO52/12s_nonstl/lib32:/usr/ucblib:/usr/local/xerces/xerces-c1_6_0/SUNPRO52/lib32a" CC -G -L/prod_opt/SUNWspro_6.2/SUNWspro/WS6U2/lib -L/usr/ccs/lib -L/usr/lib -L/usr/local/lib guid_wrap.o guid.o -o blib/arch/auto/guid/guid.so -L/prod_opt/SUNWspro_6.2/SUNWspro/WS6U2/lib -ldl -L/bld/sun/v1249.0/wfg/lib -L/usr/ucblib -L/usr/local/rogue711/workspaces/SOLARIS28/SUNPRO52/12s_nonstl/lib32 -L/usr/local/tibco/6.6/SOL28/SPARC/lib -L/usr/local/xerces/xerces-c1_6_0/SUNPRO52/lib32a -lc -lgaconfiguration -lgaeventloop -lgainitialization -lgalocation -lgalogging -lgamessaging -lgamonitoring -lganetutils -lgaregistry -lgautil -lgen -lnsl -lposix4 -lpthread -lsocket -lsunmath -ltibrv -ltibrvcm -ltibrvcmq -ltibrvcpp -ltibrvft -ltls12s -lucb -lxerces-c1_6_0 -lm -lw -lCrun -lCstd chmod 755 blib/arch/auto/guid/guid.so cp guid.bs blib/arch/auto/guid/guid.bs chmod 644 blib/arch/auto/guid/guid.bs Installing /home/ayoung/lib/perl5/site_perl/5.8.0/sun4-solaris-thread-multi/auto/guid/guid.so Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /home/ayoung/lib/perl5/site_perl/5.8.0/sun4-solaris-thread-multi/guid.pm Writing /home/ayoung/lib/perl5/site_perl/5.8.0/sun4-solaris-thread-multi/auto/guid/.packlist Appending installation info to /home/ayoung/lib/perl5/5.8.0/sun4-solaris-thread-multi/perllocal.pod <ayoung@ux-dev7:guid:164> ./test.pl ld.so.1: /home/ayoung/bin/perl: fatal: relocation error: file /home/ayoung/lib/perl5/site_perl/5.8.0/sun4-solaris-thread-multi/auto/guid/guid.so: symbol __1cH__rwstdTInterlockedExchange6Fpll_l_: referenced symbol not found Killed i will include the contents of some of the files (i think i have all the relevant ones...) guid.i %module guid %include "guid.h" %{ #include "guid.h" %} -------- Makefile.PL use ExtUtils::MakeMaker; my $build = $ENV{Build}; my $loadtype = "-Bstatic"; $loadtype = "-Bdynamic -G"; WriteMakefile( NAME => 'guid', VERSION => '0.01', CCFLAGS => " -mt $loadtype -KPIC -library=rwtools7_std,Cstd -features=no%localfor,anachronisms,no%conststrings,no%export -xtarget=ultra2 -xarch=v8plusa -DHAS_BOOL -DSOLARIS", INC => "-I/home/ayoung/tmp -I/prod_opt/odbc/include -I/home/ayoung/projects/g4/ntdev/services/clrsvcs/install/include/rscs -I/home/g4dev/cti_prod/.1.4/install/include -I/bld/sun/$build/wfg/include/incl/GA -I/bld/sun/$build/GA -I/bld/sun/$build/wfg/include/rtdds -I/usr/local/xerces/xerces-c1_6_0/include -I/bld/sun/$build/wfg/include -I/usr/local/ldap/netscape/ldapcsdk414/include -I/bld/sun/$build/wfg/include/CmdLine -I/usr/local/ACE/5.1.13/SOLARIS28/SUNPRO52/include -I/usr/local/ACE/5.1.13 -I/usr/local/rogue711/workspaces/SOLARIS28/SUNPRO52/12s_nonstl -I/usr/local/tibco/6.6/SOL28/SPARC/include ", LIBS => "-L/prod_opt/SUNWspro_6.2/SUNWspro/WS6U2/lib -ldl -L/bld/sun/$build/wfg/lib -L/usr/ucblib -L/usr/local/rogue711/workspaces/SOLARIS28/SUNPRO52/12s_nonstl/lib32 -L/usr/local/tibco/6.6/SOL28/SPARC/lib -L/usr/local/xerces/xerces-c1_6_0/SUNPRO52/lib32a -L/usr/ucb/lib -lc -lgaconfiguration -lgaeventloop -lgainitialization -lgalocation -lgalogging -lgamessaging -lgamonitoring -lganetutils -lgaregistry -lgautil -lgen -lnsl -lposix4 -lpthread -lsocket -lsunmath -ltibrv -ltibrvcm -ltibrvcmq -ltibrvcpp -ltibrvft -ltls12s -lucb -lxerces-c1_6_0 -lm -lw -lCrun -lCstd ", OBJECT => 'guid_wrap.o guid.o', ); ----------- guid.h #include <iostream> #include <util/GUID.H> #include <stdlib.h> #ifndef GUID_H #define GUID_H int gimmeGuid(int x); #endif -- Aaron _______________________________________________ Swig maillist - Swig@xxxxxxxxxxxxxxx http://mailman.cs.uchicago.edu/mailman/listinfo/swig |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Java and Arrays: 00113, Hoepfinger, Franz-Xaver (FH Rosenheim) |
|---|---|
| Next by Date: | Re: linking problems: 00113, Good Times |
| Previous by Thread: | Java and Arraysi: 00113, Hoepfinger, Franz-Xaver (FH Rosenheim) |
| Next by Thread: | Re: linking problems: 00113, Good Times |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |