Show quoted text> I took out the -bundle argument and now i get:
>
> g++ -dynamiclib -undefined dynamic_lookup -arch x86_64 -arch i386
-arch ppc
Show quoted text> -L/usr/local/lib -L/usr/lib
> -L/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE -ldbm
-ldl -lm
Show quoted text> -lutil -lc -lperl -o IBAPI.dylib IBAPI.o IBAPI_wrap.o EClientSocketBase.o
> EPosixClientSocket.o
> ld: warning: in EClientSocketBase.o, file was built for unsupported file
> format which is not the architecture being linked (i386)
> ld: warning: in EPosixClientSocket.o, file was built for unsupported file
> format which is not the architecture being linked (i386)
> ld: warning: in EClientSocketBase.o, file was built for unsupported file
> format which is not the architecture being linked (ppc)
> ld: warning: in EPosixClientSocket.o, file was built for unsupported file
> format which is not the architecture being linked (ppc)
Getting closer! Your second output only contains warnings, which may be
about the best I can do. The "-arch x86_64 -arch i386 -arch ppc" part
looks a bit silly, but if you look back to your perl -V output, you'll
see that all 3 are/were specified in that order when the OS-X packagers
were building your version of Perl, and that, via Config.pm, is where I
(and ExtUtils::MakeMaker and Module::Build) extract the arguments to g++
from for the Makefile. It's kind of a last-ditch effort to build
modules for a particular perl installation to trust that that perl
itself was built with the correct arguments.
So, since they were only warnings, was the file IBAPI.dylib generated
after your second command? If it did, try steps 3 and 4 from my last
message:
https://rt.cpan.org/Ticket/Display.html?id=70276#txn-967576
Tall request here: Are you familiar with setting up your OS-X machine
for remote shells, and if so, would you be comfortable doing so with a
new user account for me to login and try a few things to get/make sure
this builds correctly? If so, and that's fine with you, don't post any
IP/login information to the RT bug tracker, but instead to my
infidel@cpan.org email address.
No worries if not, but I figure it'd simplify this process quite a bit,
and let me whip up and test a correct Makefile for OS-X for you and
other Darwin users.
Regardless, see if the .dylib has been created, and continue on to steps
3 and 4, ignoring the warnings for now. You may wish to change line 43
in the Makefile.swig from "DLEXT=so" to "DLEXT=dylib" before doing that.