tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wrapper reordering issue?



Hi!
I'm trying to add snmp option to wip/cyrus-imapd.
But link error:

cc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o master master.o masterconf.o cyrusMasterMIB.o ../lib/lock_fcntl.o ../lib/libcyrus_min.a -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp -ldes -Wl,-E -Wl,-R/usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE -Wl,-R/usr/pkg/lib -L/usr/pkg/lib /usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE -lperl -lm -lcrypt -lpthread -lresolv -lfl -ldb4 -lssl -lcrypto -lcom_err /pkg_comp/obj/pkgsrc/wip/cyrus-imapd/default/.buildlink/lib/libnetsnmpagent.so: undefined reference to `boot_DynaLoader'
*** Error code 1

in .work.log:

==> Reordering libraries: -lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp -ldes -lperl -lm -lcrypt -lpthread -lresolv -lfl -ldb4 -lssl -lcrypto -lcom_err <.> /pkg_comp/obj/pkgsrc/wip/cyrus-imapd/default/.gcc/bin/gcc -L/pkg_comp/obj/pkgsrc/wip/cyrus-imapd/default/.buildlink/lib -Wl,-R/usr/pkg/lib -o master master.o masterconf.o cyrusMasterMIB.o ../lib/lock_fcntl.o ../lib/libcyrus_min.a -Wl,-E -Wl,-R/usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE /usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/auto/DynaLoader/DynaLoader.a -L/pkg_comp/obj/pkgsrc/wip/cyrus-imapd/default/.buildlink/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE -I/pkg_comp/obj/pkgsrc/wip/cyrus-imapd/default/.buildlink/include -lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp -ldes -lperl -lm -lcrypt -lpthread -lresolv -lfl -ldb4 -lssl -lcrypto -lcom_err

How to avoid this issue?
DynaLoader.a should be after -lnetsnmpagent.

--
"Of course I love NetBSD":-)
OBATA Akio / obache%NetBSD.org@localhost




Home | Main Index | Thread Index | Old Index