Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] OSX-10.3-PPC build error

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Wed, 21 Jun 2006 10:17:27 +0200 (CEST)
Hi,

Gerald tried to put in a fix but it breaks the Windows build:

catapult_dct2000.c
catapult_dct2000.h(31) : error C2054: expected '(' to follow 'WS_VAR_IMPORT'
catapult_dct2000.h(31) : error C2085: 'catapult_dct2000_board_ports_only' : not in formal parameter list

Thanx,
Jaap

On Tue, 20 Jun 2006, Martin Mathieson wrote:

> LEGO wrote:
>
> >On 6/20/06, Martin Mathieson <martin.mathieson@xxxxxxxxxxxx> wrote:
> >
> >
> >>Hi,
> >>
> >>This is a value that was originally defined in the wiretap module, and
> >>externed in the dissector.
> >>Anders reported that MSVC didn't like it
> >>(http://marc.theaimsgroup.com/?l=ethereal-dev&m=114501864832632&w=2).
> >>
> >>Would MSVC maybe be happy if it were declared extern in
> >>wiretap/catapult_dct2000.h ?
> >>
> >>
> >
> >NO, AFAIK a dll cannot read symbols from the dll that loads it.
> >
> >It's ugly but I think it shoud be defined with diferent names in
> >wiretap and in epan.
> >
> >
> >
> How is a windows build separated into DLLs?  Do the dissectors and
> wiretap code live in different executables?
>
> I'm pretty sure I tested a windows buildbot build and that they
> obviously both referred to the same variable.
>
> catapult_dct2000_board_ports_only is a variable that affects the
> behaviour of the wiretap module, and I want to control its value from
> the dissector preference.  I didn't want to have to call a function.
>
> Martin
>
>
>
> >>Martin
> >>
> >>Jaap Keuter wrote:
> >>
> >>
> >>
> >>>Hi,
> >>>
> >>>>From the start the OSX buildbot has the following problem building
> >>>Wireshark:
> >>>
> >>>ld: multiple definitions of symbol _catapult_dct2000_board_ports_only
> >>>wiretap/.libs/libwiretap.0.0.1.dylib(catapult_dct2000.o) definition of _catapult_dct2000_board_ports_only
> >>>epan/.libs/libwireshark.0.0.1.dylib(packet-catapult-dct2000.o) definition of _catapult_dct2000_board_ports_only
> >>>make[2]: *** [wireshark] Error 1
> >>>make[1]: *** [all-recursive] Error 1
> >>>make: *** [all] Error 2
> >>>program finished with exit code 2
> >>>
> >>>Either wiretap or the dissector needs to be fixed.
> >>>
> >>>Thanx,
> >>>Jaap
> >>>
> >>>_______________________________________________
> >>>Wireshark-dev mailing list
> >>>Wireshark-dev@xxxxxxxxxxxxx
> >>>http://www.wireshark.org/mailman/listinfo/wireshark-dev
> >>>
> >>>
> >>>
> >>>
> >>>
> >>_______________________________________________
> >>Wireshark-dev mailing list
> >>Wireshark-dev@xxxxxxxxxxxxx
> >>http://www.wireshark.org/mailman/listinfo/wireshark-dev
> >>
> >>
> >>
> >
> >
> >
> >
>
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>