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

Ethereal-dev: [Ethereal-dev] build libethereal.dll failed

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

From: "Vladimir Zherdenovsky" <Vladimir.Zherdenovsky@xxxxxxxxxxxxxx>
Date: Sun, 17 Jul 2005 13:37:08 +0300
Title: build libethereal.dll failed

I want to write dissector for ethereal.

Am I needed to enable or disable libethereal in the config.nmake?

I tried both cases and its failed. Please help.

When I enable libethereal (by default), then I get following printout:

================================================================

Linking libethereal.dll

        link  /INCREMENTAL:NO /NOLOGO -entry:_DllMainCRTStartup@12 -dll kernel32

.lib  ws2_32.lib mswsock.lib advapi32.lib bufferoverflowu.lib  /DEBUG /DEFAULTLI

B:msvcrt /NODEFAULTLIB:libc  /DEF:libethereal.def /OUT:libethereal.dll  /IMPLIB:

libethereal.lib addr_and_mask.obj                addr_resolv.obj

 adler32.obj             afn.obj                         asn1.obj

         atalk-utils.obj                 base64.obj              bitswap.obj

         charsets.obj            circuit.obj             column.obj

 column-utils.obj                conversation.obj                crc16.obj

                 crc32.obj                       crypt-des.obj           crypt-m

d4.obj           crypt-md5.obj           crypt-rc4.obj           epan.obj

                 except.obj              filesystem.obj          follow.obj

         frame_data.obj          h225-persistentdata.obj         in_cksum.obj

         ipproto.obj             ipv4.obj                        osi-utils.obj

         packet.obj              plugins.obj             prefs.obj

         proto.obj                       ptvcursor.obj           range.obj

                 reassemble.obj          req_resp_hdrs.obj               sha1.ob

j                        sigcomp_state_hdlr.obj  sigcomp-udvm.obj        sminmpe

c.obj            sna-utils.obj           stats_tree.obj          strutil.obj

         t35.obj                         tap.obj                         timesta

mp.obj           to_str.obj              tvbuff.obj              value_string.ob

j                xdlc.obj                        xmlstub.obj  C:\ethereal-win32-

libs\glib\lib\glib-2.0.lib  C:\ethereal-win32-libs\glib\lib\gmodule-2.0.lib  C:\

ethereal-win32-libs\glib\lib\gobject-2.0.lib     C:\ethereal-win32-libs\adns-1.0

-win32-04\adns_win32\lib\adns_dll.lib  C:\ethereal-win32-libs\pcre-4.4\lib\pcre.

lib    C:\ethereal-win32-libs\zlib122-dll\lib\zdll.lib  C:\ethereal-win32-libs\n

et-snmp-5.1.2\win32\lib\release\netsnmp.lib  C:\ethereal-win32-libs\libiconv-1.9

.1.bin.woe32\lib\iconv.lib  ftypes\ftypes.lib  dfilter\dfilter.lib  dissectors\d

issectors.lib ..\image\libethereal.res  dissectors\register.obj  inet_aton.obj

 inet_pton.obj   inet_ntop.obj   mkstemp.obj     strptime.obj

libethereal.def : error LNK2001: unresolved external symbol dissect_ber_choice

libethereal.lib : fatal error LNK1120: 1 unresolved externals

LINK : fatal error LNK1141: failure during build of exports file

NMAKE : fatal error U1077: 'link' : return code '0x475'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\N

MAKE.EXE"' : return code '0x2'

Stop.

================================================================

/*Config.nmake*/

# If you don't want to build libethereal.dll, you should comment out the

# following line

#ENABLE_LIBETHEREAL=USE

When I disable using by libethereal, then I get following printout:

=================================================================

Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        rm -f  rtnet.dll rtnet.exp rtnet.lib *.pdb

        cd ..

        cd rudp

        NMAKE /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0

Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        rm -f  rudp.dll rudp.exp rudp.lib *.pdb

        cd ..

        cd stats_tree

        NMAKE /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0

Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

NMAKE : fatal error U1073: don't know how to make '..\plugin_api.obj'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\N

MAKE.EXE"' : return code '0x2'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\N

MAKE.EXE"' : return code '0x2'

===================================================================

Please contact me if you have any ideas.

Thanks,

Vladimir