I think the problem is that there are multiple global variables with the same name. This seems to work on some non-MacOSX systems. The correct way of handling such things is to declare variables with the same name as external (except one). So I guess you'll have to patch the source, however there's also a not recommended linker switch to work arround this. Jann Mark Duling schrieb:
I want to port the perl module CGI-SpeedyCGI for a dependency of another port I want to make. The developer doesn't seem to be available, the other package managers patches don't help, and I can't Google up anything valuable. It configures fine but it fails during build. Anyone have a clue as to why that might be?
Mark
/usr/bin/gcc-4.0 -o speedy_backend speedy_backend_main.o speedy_perl.o speedy_util.o speedy_sig.o speedy_frontend.o speedy_backend.o speedy_file.o speedy_slot.o speedy_poll.o speedy_ipc.o speedy_group.o speedy_script.o speedy_opt.o speedy_optdefs.o xsinit.o -L/opt/local/lib /opt/local/lib/perl5/5.8.8/darwin-2level/auto/DynaLoader/DynaLoader.a -L/opt/local/lib/perl5/5.8.8/darwin-2level/CORE -lperl -ldl -lm -lc /usr/bin/ld: multiple definitions of symbol _my_perl speedy_backend_main.o definition of _my_perl in section (__DATA,__common) speedy_perl.o definition of _my_perl in section (__DATA,__common) speedy_util.o definition of _my_perl in section (__DATA,__common) speedy_sig.o definition of _my_perl in section (__DATA,__common) speedy_frontend.o definition of _my_perl in section (__DATA,__common) speedy_backend.o definition of _my_perl in section (__DATA,__common) speedy_file.o definition of _my_perl in section (__DATA,__common) speedy_slot.o definition of _my_perl in section (__DATA,__common) speedy_poll.o definition of _my_perl in section (__DATA,__common) speedy_ipc.o definition of _my_perl in section (__DATA,__common) speedy_group.o definition of _my_perl in section (__DATA,__common) speedy_script.o definition of _my_perl in section (__DATA,__common) speedy_opt.o definition of _my_perl in section (__DATA,__common) speedy_optdefs.o definition of _my_perl in section (__DATA,__common) collect2: ld returned 1 exit status make[1]: *** [speedy_backend] Error 1 make: *** [subdirs] Error 2