Ethereal-dev: Re: [Ethereal-dev] Compiling on cygwin does not work anymore

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

From: "Olivier Biot" <ethereal@xxxxxxxxxx>
Date: Fri, 19 Mar 2004 00:05:04 +0100
From: Olivier Biot

| From: Lars Roland
|
| (snip)
| | From: Olivier Biot
| | > This implies that we *cannot* build the libethereal shared
library
| | > on cygwin with the Ethereal code as it is today, as:

(snip)

| | > 2. And finally, the report_open_failure() symbol is declared in
| | >    report_err.h and defined in alert_box.c. If I add alert_box.o
| | >    to the objects to be linked into libethereral.la the I get
| | >    the same reference issues with the simle_dialog symbol etc.

(snip)

| | You can work around the second issue on Cygwin if you do not need
| | the diameter and the plugin dissectors.
|
| I'll give this a try (removed ../packet-diameter.c from
| epan/Makefile.common).

This yields the first successful libethereal build, however I cannot
link ethereal as there are again symbols defined in one place and not
available in another:

Info: resolving _ansi_a_ios401_dtap_strings by linking to
__imp__ansi_a_ios401_dtap_strings
(auto-importgtk/libui.a(file_dlg.o)(.text+0x1395): In function
`can_save_with_wiretap':
/home/Eigenaar/ethereal/cvs/ethereal-pcre/gtk/file_dlg.c:540:
undefined reference to `_wtap_dump_can_open'
gtk/libui.a(file_dlg.o)(.text+0x13bd):/home/Eigenaar/ethereal/cvs/ethe
real-pcre/gtk/file_dlg.c:541: undefined reference to
`_wtap_dump_can_write_encap'
)

The function symbols wtap_dump_can_open() and
wtap_dump_can_write_encap() are used in the following files: editcap.c
mergecap.c tethereal.c gtk/file_dlg.c.

They are declared in wiretap/wtap.h and defined in
wiretap/file_access.c

I have no clue on how to fix this :(

Regards,

Olivier