Ethereal-dev: [Ethereal-dev] Unable to build with static libraries

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Graeme Hewson <ghewson@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 24 Apr 2004 22:53:46 +0100
I've tried to build one of the nightly snapshots (2004-04-24) with static
libraries, but the linker fails.  After issuing ./autogen.sh, I issue
./configure --enable-static and then make.  If I omit the --enable-static
option, the make works fine.

Here are the error messages:

plugins/rlm/packet-rlm.o: In function `plugin_init':
ethereal-2004-04-24/plugins/rlm/packet-rlm.c:236: multiple definition of `plugin_init'
plugins/ciscosm/packet-sm.o:ethereal-2004-04-24/plugins/ciscosm/packet-sm.c:172: first defined here
/usr/bin/ld: Warning: size of symbol `plugin_init' changed from 96 to 72 in plugins/rlm/packet-rlm.o
plugins/rlm/packet-rlm.o: In function `plugin_reg_handoff':
ethereal-2004-04-24/plugins/rlm/packet-rlm.c:252: multiple definition of `plugin_reg_handoff'
plugins/ciscosm/packet-sm.o:ethereal-2004-04-24/plugins/ciscosm/packet-sm.c:186: first defined here
/usr/bin/ld: Warning: size of symbol `plugin_reg_handoff' changed from 7 to 66 in plugins/rlm/packet-rlm.o
plugins/rudp/packet-rudp.o: In function `plugin_init':
ethereal-2004-04-24/plugins/rudp/packet-rudp.c:219: multiple definition of `plugin_init'
plugins/ciscosm/packet-sm.o:ethereal-2004-04-24/plugins/ciscosm/packet-sm.c:172: first defined here
/usr/bin/ld: Warning: size of symbol `plugin_init' changed from 72 to 86 in plugins/rudp/packet-rudp.o
plugins/rudp/packet-rudp.o: In function `plugin_reg_handoff':
ethereal-2004-04-24/plugins/rudp/packet-rudp.c:235: multiple definition of `plugin_reg_handoff'
plugins/ciscosm/packet-sm.o:ethereal-2004-04-24/plugins/ciscosm/packet-sm.c:186: first defined here
/usr/bin/ld: Warning: size of symbol `plugin_reg_handoff' changed from 66 to 70 in plugins/rudp/packet-rudp.o
plugins/irda/packet-irda.o: In function `dissect_iap_result':
ethereal-2004-04-24/plugins/irda/packet-irda.c:693: undefined reference to `ircomm_attr_dissector'
ethereal-2004-04-24/plugins/irda/packet-irda.c:705: undefined reference to `irlpt_attr_dissector'
collect2: ld returned 1 exit status


Graeme Hewson