logo       

Re: swig and perl580 and sun solaris compiler 5.3: msg#00172

programming.swig

Subject: Re: swig and perl580 and sun solaris compiler 5.3

On Jan 26, Good Times wrote:
> hi
>
> this looks like it definitely fixes the
>
> > >"/usr/local/rogue711/workspaces/SOLARIS28/SUNPRO52/12s_nonstl/rw/tislist.h",
>
> problem, but the ACE headers are still breaking
>
> i am going to start searching through for more macros that might need to be
> undef'd

I've been trying to get my C++ SWIG project working with perl 5.8, and what
I've fuond so far is that if you include <iostream> you also need to undef
these macros in the .i file:

#undef do_open
#undef do_close

With that change, things compile and link, but crash on the first creation of a
wrapped object. I'm working on this now... has anyone else seen something like
this?

RedHat Linux 8.0
SWIG 1.3.17
GCC 3.2

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8192 (LWP 17772)]
0x400a28db in Perl_newSVrv ()
from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so
(gdb) bt
#0 0x400a28db in Perl_newSVrv ()
from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so
#1 0x400a2aba in Perl_sv_setref_pv ()
from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so
#2 0x403a6ad3 in SWIG_MakePtr ()
from
/net/lathe/home/brettw/work/cicd-test/lib/ddf++/linux/i686/libddfperl.so
#3 0x402f4ea7 in _wrap_new_DDF (my_perl=0x804b3c0, cv=0x80c36e4) at
MasterPerl.C:9317
#4 0x400958c5 in Perl_pp_entersub ()
from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so
#5 0x4008e059 in Perl_runops_standard ()
from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so
#6 0x400355bb in S_run_body ()
from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so
#7 0x40035355 in perl_run ()
from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so
#8 0x08049173 in main ()
#9 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6

_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise