Date: Wed, 14 Mar 2001 16:02:11 +0300 From: Lev Serebryakov <Lev.Serebryakov@arcadia.spb.ru> To: All <freebsd-stable@freebsd.org> Subject: Could not compile program with perl extensions on 4.2-STABLE? Message-ID: <9085000604.20010314160211@arcadia.spb.ru>
next in thread | raw e-mail | index | archive | help
Hello All, May be, it is wrong list for this question. But problem is appeared on FreeBSD 4.2-STABLE, and everything works Ok on other systems (Win32, some SunOs). I try to write simple program, which could call perl hooks, and export some API to perl for this hooks. My init_xs() function is standard: EXTERN_C void boot_DynaLoader (CV* cv); EXTERN_C void xs_init(pTHX) { char *file = __FILE__; /* Special case */ newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file); /* My API */ /* Skipped */ } On link stage I've got next message: %gcc -o prog `perl -MExtUtils::Embed -e ldopts` prog.o prog.o: In function `xs_init': prog.o(.text+0x275): undefined reference to `boot_DynaLoader' Ok, but `perl -MExtUtils::Embed -e ldopts` contains DynaLoader.a: Wl,-R/usr/lib -Wl,-E -lperl -lm \ /usr/libdata/perl/5.00503/mach/auto/DynaLoader/DynaLoader.a \ -L/usr/libdata/perl/5.00503/mach/CORE -lperl -lm -lc -lcrypt -lperl -lm And /usr/libdata/perl/5.00503/mach/auto/DynaLoader/DynaLoader.a contains boot_DynaLoader: strings /usr/libdata/perl/5.00503/mach/auto/DynaLoader/DynaLoader.a | grep boot_DynaLoader boot_DynaLoader boot_DynaLoader -- Best regards, Lev mailto:Lev.Serebryakov@arcadia.spb.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9085000604.20010314160211>