Good idea, but it didnt work. I notice that the target file 'packet-pp.c' is not being listed when the Makefile attempted to create the register.c file.
Question: Should I need to modify the Makefile.in file? or is that built automatically? Oh..S$%! Never mind. I see the problem. I need automake version 1.9 to remake the Makefile.in ! (I only have version 1.6 installed) Thanks for the quick response, though. *** Doug F. Luis EG Ontanon wrote: > try: > > rm epan/register.c && make > > > On 9/11/07, Doug Fajardo <[EMAIL PROTECTED]> wrote: > >> Hi! >> I am attempting to add a built-in dissector to wireshark (version >> 0.99.6) on linux, and it appears that the build system is not processing >> (i.e.: putting references to the source into the Makefiles) the new >> dissector. The dissector code was originally written and works in >> ethereal-0.10.11. I am guessing that there is a step that I missed in >> setting up the build files. Can anyone tell me what I missed? >> >> Here's what I did, and what I see: >> >> (1) Copy packet-pp.c (the dissector) into epan/dissectors. >> >> (2) Edit Makefile.common and add it to the DISSECTOR_SRC macro. (Yes, >> There are tabs before and after the packet-pp.c text. No, there is no >> associated *.h file): >> >> # the dissector sources (without any helpers) >> DISSECTOR_SRC = \ >> packet-bacapp.c \ >> packet-pp.c \ >> packet-cops.c \ >> packet-diameter.c \ >> packet-ipsec.c \ >> packet-isup.c \ >> packet-k12.c \ >> packet-nbd.c \ >> packet-sccp.c \ >> packet-scsi-osd.c \ >> packet-sctp.c \ >> packet-ssl-utils.c \ >> packet-user_encap.c >> >> (3) Ran configure (no options) at the top level. >> >> (4) I notice that epan/dissector/Makefile was built. It does NOT have >> packet.c in it, although all of the other dissectors are present in the >> file. Here is one excerpt from the Makefile - notice that packet-ss.c is >> NOT in this list! >> # the dissector sources (without any helpers) >> DISSECTOR_SRC = \ >> packet-bacapp.c \ >> packet-cops.c \ >> packet-diameter.c \ >> packet-ipsec.c \ >> packet-isup.c \ >> packet-k12.c \ >> packet-nbd.c \ >> packet-sccp.c \ >> packet-scsi-osd.c \ >> packet-sctp.c \ >> packet-ssl-utils.c \ >> packet-user_encap.c >> >> (5) Note that wireshark built and runs normally, except that it doesnt >> have the new protocol dissector. >> >> Thanks in Advance! >> *** Doug >> _______________________________________________ >> Wireshark-dev mailing list >> [email protected] >> http://www.wireshark.org/mailman/listinfo/wireshark-dev >> >> > > > _______________________________________________ Wireshark-dev mailing list [email protected] http://www.wireshark.org/mailman/listinfo/wireshark-dev
