LD_RUN_PATH="" gcc -L/usr/local/lib C.o -o ../../../lib/auto/B/C/C.so /usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.0/../../../../lib64/crt1.o(.data.rel.ro.local+0x8): undefined reference to `main' C.o(.text+0x3c): In function `.my_runops': : undefined reference to `.Perl_get_hv' C.o(.text+0x4c): In function `.my_runops': : undefined reference to `.Perl_newSViv' C.o(.text+0xb8): In function `.my_runops': : undefined reference to `.Perl_despatch_signals' C.o(.text+0xd8): In function `.my_runops': : undefined reference to `.Perl_newSViv' C.o(.text+0xe8): In function `.my_runops': : undefined reference to `.Perl_safesysmalloc' C.o(.text+0x12c): In function `.my_runops': : undefined reference to `.Perl_sv_setiv' C.o(.text+0x140): In function `.my_runops': : undefined reference to `.Perl_sv_setref_iv' C.o(.text+0x158): In function `.my_runops': : undefined reference to `.Perl_hv_store_ent' C.o(.text+0x198): In function `.my_runops': : undefined reference to `.Perl_sv_free' C.o(.text+0x30c): In function `.boot_B(void) const': : undefined reference to `.Perl_croak' C.o(.text+0x370): In function `.boot_B(void) const': : undefined reference to `.Perl_form' C.o(.text+0x37c): In function `.boot_B(void) const': : undefined reference to `.Perl_get_sv' C.o(.text+0x3ac): In function `.boot_B(void) const': : undefined reference to `.Perl_form' C.o(.text+0x3b8): In function `.boot_B(void) const': : undefined reference to `.Perl_get_sv' C.o(.text+0x3d4): In function `.boot_B(void) const': : undefined reference to `.Perl_sv_2pv_flags' C.o(.text+0x400): In function `.boot_B(void) const': : undefined reference to `.Perl_sv_2pv_flags' C.o(.toc+0x8): undefined reference to `PL_sig_pending' C.o(.toc+0x10): undefined reference to `PL_op' C.o(.toc+0x20): undefined reference to `PL_tainted' C.o(.toc+0x28): undefined reference to `PL_stack_sp' C.o(.toc+0x30): undefined reference to `PL_markstack_ptr' C.o(.toc+0x38): undefined reference to `PL_stack_base' C.o(.toc+0x88): undefined reference to `PL_runops' C.o(.toc+0x98): undefined reference to `PL_sv_yes' collect2: ld returned 1 exit status another -shared flag not passed ... cd ext/B/C LD_RUN_PATH="" gcc -L/usr/local/lib C.o -shared -o ../../../lib/auto/B/C/C.so works fine... Now trying to find where to sneak the -shared flag in wihtout breaking to whole wide world...
same thing in ext/B LD_RUN_PATH="" gcc -L/usr/local/lib B.o -o ../../lib/auto/B/B.so -shared same thing in ext/ByteLoader LD_RUN_PATH="" gcc -L/usr/local/lib byterun.o ByteLoader.o -o ../../lib/auto/ByteLoader/ByteLoader.so -shared Cwd and probably many others ... but I must go to work ... bbl
OK this was all the trouble that uname -a gave to us... since uname -a was Segfaulting then this package couldn't find what to do with the shared lib... coreutils patch fixed it, done we can close this.
just to point at the coreutils bug
ok stick a fork in it! yeah for uname!