[Wireshark-dev] Regression in SVN revision ~41162?

2012-02-23 Thread Tyson Key
Hi list,

It seems that as of revision 41162 (or maybe a few before?), I am no
longer able to completely compile and link the EPAN/dissectors portion
of the codebase under Ubuntu. I suspect that recent modifications to
the MPEG-related dissectors may have caused this, given by the errors
from the linker that I receive:

libtool: link: rm -fr  .libs/libwireshark.ver
libtool: link: echo { global:  .libs/libwireshark.ver
libtool: link:  cat libwireshark.sym | sed -e s/\(.*\)/\1;/ 
.libs/libwireshark.ver
libtool: link:  echo local: *; };  .libs/libwireshark.ver
libtool: link:  gcc -shared  -fPIC -DPIC
.libs/libwireshark_la-addr_and_mask.o
.libs/libwireshark_la-addr_resolv.o
.libs/libwireshark_la-address_to_str.o .libs/libwireshark_la-adler32.o
.libs/libwireshark_la-afn.o .libs/libwireshark_la-asn1.o
.libs/libwireshark_la-atalk-utils.o .libs/libwireshark_la-base64.o
.libs/libwireshark_la-bitswap.o
.libs/libwireshark_la-camel-persistentdata.o
.libs/libwireshark_la-charsets.o .libs/libwireshark_la-circuit.o
.libs/libwireshark_la-codecs.o .libs/libwireshark_la-column.o
.libs/libwireshark_la-column-utils.o
.libs/libwireshark_la-conversation.o .libs/libwireshark_la-crc16-tvb.o
.libs/libwireshark_la-crc32-tvb.o .libs/libwireshark_la-crc8-tvb.o
.libs/libwireshark_la-dissector_filters.o .libs/libwireshark_la-emem.o
.libs/libwireshark_la-epan.o .libs/libwireshark_la-ex-opt.o
.libs/libwireshark_la-except.o .libs/libwireshark_la-expert.o
.libs/libwireshark_la-filesystem.o
.libs/libwireshark_la-filter_expressions.o
.libs/libwireshark_la-follow.o .libs/libwireshark_la-frame_data.o
.libs/libwireshark_la-frequency-utils.o .libs/libwireshark_la-funnel.o
.libs/libwireshark_la-gcp.o .libs/libwireshark_la-geoip_db.o
.libs/libwireshark_la-golay.o .libs/libwireshark_la-guid-utils.o
.libs/libwireshark_la-h225-persistentdata.o
.libs/libwireshark_la-in_cksum.o .libs/libwireshark_la-ipproto.o
.libs/libwireshark_la-ipv4.o .libs/libwireshark_la-next_tvb.o
.libs/libwireshark_la-nstime.o .libs/libwireshark_la-oids.o
.libs/libwireshark_la-osi-utils.o .libs/libwireshark_la-packet.o
.libs/libwireshark_la-plugins.o .libs/libwireshark_la-prefs.o
.libs/libwireshark_la-proto.o .libs/libwireshark_la-range.o
.libs/libwireshark_la-reassemble.o .libs/libwireshark_la-reedsolomon.o
.libs/libwireshark_la-report_err.o
.libs/libwireshark_la-req_resp_hdrs.o
.libs/libwireshark_la-sigcomp_state_hdlr.o
.libs/libwireshark_la-sigcomp-udvm.o .libs/libwireshark_la-sminmpec.o
.libs/libwireshark_la-sna-utils.o
.libs/libwireshark_la-stat_cmd_args.o
.libs/libwireshark_la-stats_tree.o .libs/libwireshark_la-strutil.o
.libs/libwireshark_la-stream.o .libs/libwireshark_la-t35.o
.libs/libwireshark_la-tap.o
.libs/libwireshark_la-tcap-persistentdata.o
.libs/libwireshark_la-timestamp.o .libs/libwireshark_la-tfs.o
.libs/libwireshark_la-to_str.o .libs/libwireshark_la-tvbparse.o
.libs/libwireshark_la-tvbuff.o .libs/libwireshark_la-uat.o
.libs/libwireshark_la-value_string.o .libs/libwireshark_la-xdlc.o
-Wl,--whole-archive ./.libs/libwireshark_generated.a
./.libs/libwireshark_asmopt.a crypt/.libs/libairpdcap.a
ftypes/.libs/libftypes.a dfilter/.libs/libdfilter.a
dissectors/.libs/libdissectors.a dissectors/.libs/libdirtydissectors.a
wslua/.libs/libwslua.a -Wl,--no-whole-archive  -Wl,-rpath
-Wl,/home/tyson/wireshark/wiretap/.libs -Wl,-rpath
-Wl,/home/tyson/wireshark/wsutil/.libs -L/usr/local/lib -llua5.1
-ladns -L/lib/i386-linux-gnu -lgcrypt
/usr/lib/i386-linux-gnu/libgnutls.so -L/usr/lib -lsmi
../wiretap/.libs/libwiretap.so
/usr/lib/i386-linux-gnu/libgthread-2.0.so
/usr/lib/i386-linux-gnu/libgmodule-2.0.so -lrt
/usr/lib/i386-linux-gnu/libglib-2.0.so ../wsutil/.libs/libwsutil.so
-lm -lz  -O2 -pthread -Wl,--as-needed -pthread -Wl,--export-dynamic
-pthread -Wl,-soname -Wl,libwireshark.so.0 -Wl,-version-script
-Wl,.libs/libwireshark.ver -o .libs/libwireshark.so.0.0.1
dissectors/.libs/libdissectors.a(lt1-libdissectors_la-packet-mpeg-sect.o):
In function `dissect_mpeg_sect':
/home/tyson/wireshark/epan/dissectors/packet-mpeg-sect.c:140: multiple
definition of `dissect_mpeg_sect'
dissectors/.libs/libdissectors.a(libdissectors_la-packet-mpeg-sect.o):/home/tyson/wireshark/epan/dissectors/packet-mpeg-sect.c:140:
first defined here
dissectors/.libs/libdissectors.a(lt1-libdissectors_la-packet-mpeg-sect.o):
In function `proto_register_mpeg_sect':
/home/tyson/wireshark/epan/dissectors/packet-mpeg-sect.c:212: multiple
definition of `proto_register_mpeg_sect'
dissectors/.libs/libdissectors.a(libdissectors_la-packet-mpeg-sect.o):/home/tyson/wireshark/epan/dissectors/packet-mpeg-sect.c:212:
first defined here
dissectors/.libs/libdissectors.a(lt1-libdissectors_la-packet-mpeg-sect.o):
In function `proto_reg_handoff_mpeg_sect':
/home/tyson/wireshark/epan/dissectors/packet-mpeg-sect.c:267: multiple
definition of `proto_reg_handoff_mpeg_sect'
dissectors/.libs/libdissectors.a(libdissectors_la-packet-mpeg-sect.o):/home/tyson/wireshark/epan/dissectors/packet-mpeg-sect.c:267:
first defined here

Re: [Wireshark-dev] Regression in SVN revision ~41162?

2012-02-23 Thread Jeff Morriss

Tyson Key wrote:

Hi list,

It seems that as of revision 41162 (or maybe a few before?), I am no
longer able to completely compile and link the EPAN/dissectors portion
of the codebase under Ubuntu. I suspect that recent modifications to
the MPEG-related dissectors may have caused this, given by the errors
from the linker that I receive:

[...]

In function `proto_register_mpeg_pat':
/home/tyson/wireshark/epan/dissectors/packet-mpeg-pat.c:134: multiple
definition of `proto_register_mpeg_pat'
dissectors/.libs/libdissectors.a(libdissectors_la-packet-mpeg-pat.o):/home/tyson/wireshark/epan/dissectors/packet-mpeg-pat.c:134:
first defined here
dissectors/.libs/libdissectors.a(lt2-libdissectors_la-packet-mpeg-pat.o):
In function `proto_reg_handoff_mpeg_pat':
/home/tyson/wireshark/epan/dissectors/packet-mpeg-pat.c:199: multiple
definition of `proto_reg_handoff_mpeg_pat'
dissectors/.libs/libdissectors.a(libdissectors_la-packet-mpeg-pat.o):/home/tyson/wireshark/epan/dissectors/packet-mpeg-pat.c:199:
first defined here


Have you tried a make clean?

Have you changed libtool versions recently?  I note that you have both a 
libdissectors_la-packet-mpeg-pat.o and a 
lt2-libdissectors_la-packet-mpeg-pat.o, not sure what that's about.

___
Sent via:Wireshark-dev mailing list wireshark-dev@wireshark.org
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Regression in SVN revision ~41162?

2012-02-23 Thread Tyson Key
Thanks Jeff,

I eventually managed to narrow it down to having two instances of
packet-mpeg-pat.c and packet-mpeg-sect.c in
/wireshark/epan/dissectors/Makefile.common, for reasons that somewhat
elude me, right now.

I suspect that wanting to try the latest MPEG-2 changes a while ago,
and forgetting to update that file after updating to the latest SVN
revision might have had something to do with it, though. (Even though
I ran the autogen.sh script, and the usual ./configure  make 
sudo make install commands, afterwards).

Oh well.

Tyson.

On 23 February 2012 15:08, Jeff Morriss jeff.morriss...@gmail.com wrote:
 Tyson Key wrote:

 Hi list,

 It seems that as of revision 41162 (or maybe a few before?), I am no
 longer able to completely compile and link the EPAN/dissectors portion
 of the codebase under Ubuntu. I suspect that recent modifications to
 the MPEG-related dissectors may have caused this, given by the errors
 from the linker that I receive:

 [...]

 In function `proto_register_mpeg_pat':
 /home/tyson/wireshark/epan/dissectors/packet-mpeg-pat.c:134: multiple
 definition of `proto_register_mpeg_pat'

 dissectors/.libs/libdissectors.a(libdissectors_la-packet-mpeg-pat.o):/home/tyson/wireshark/epan/dissectors/packet-mpeg-pat.c:134:
 first defined here
 dissectors/.libs/libdissectors.a(lt2-libdissectors_la-packet-mpeg-pat.o):
 In function `proto_reg_handoff_mpeg_pat':
 /home/tyson/wireshark/epan/dissectors/packet-mpeg-pat.c:199: multiple
 definition of `proto_reg_handoff_mpeg_pat'

 dissectors/.libs/libdissectors.a(libdissectors_la-packet-mpeg-pat.o):/home/tyson/wireshark/epan/dissectors/packet-mpeg-pat.c:199:
 first defined here


 Have you tried a make clean?

 Have you changed libtool versions recently?  I note that you have both a
 libdissectors_la-packet-mpeg-pat.o and a
 lt2-libdissectors_la-packet-mpeg-pat.o, not sure what that's about.
 ___
 Sent via:    Wireshark-dev mailing list wireshark-dev@wireshark.org
 Archives:    http://www.wireshark.org/lists/wireshark-dev
 Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe



-- 
                                          Fight Internet Censorship!
http://www.eff.org
http://vmlemon.wordpress.com | Twitter/FriendFeed/Skype: vmlemon |
00447934365844
___
Sent via:Wireshark-dev mailing list wireshark-dev@wireshark.org
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe