ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Build problem (was Re: Patch for bug 310)

From: "Prokash Sinha" <prokashs@xxxxxxxxx>
Date: Mon, 19 Feb 2007 15:31:47 -0800
When all the optional components are off ( that is the header inclusion path is commented out in the conf.nmake) I see the following error from pcap. It seems like the build process does not know how to honor this - And if I just put that header path back in  this is no more a point of failure, but get stuck further down the build process of another component -
 

C:\Documents and Settings\psinha\wireshark>nmake -f Makefile.nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        sed -e s/@VERSION@/0.99.69999/  -e "s/@HAVE_GNU_ADNS@//"  -e "s/@HAVE_PC
RE@//"  -e "s/@HAVE_KFW@//"  -e "s/@HAVE_NETTLE@//"  -e "s/@HAVE_LIBZ@// "  -e "s
/@HAVE_LIBPCAP@//"  -e "s/@HAVE_PCAP_FINDALLDEVS@//"  -e "s/@HAVE_PCAP_DATALINK_
NAME_TO_VAL@//"  -e "s/@HAVE_PCAP_DATALINK_VAL_TO_NAME@//"  -e "s/@HAVE_PCAP_BRE
AKLOOP@// "  -e "s/@HAVE_LIBWIRESHARKDLL@/#define HAVE_LIBWIRESHARKDLL 1/"  -e "s
/@WPCAP_CONSTIFIED@//"  -e " s/@HAVE_LIBGNUTLS@//"  -e "s/@HAVE_LIBGCRYPT@//"  -e
 "s/@HAVE_LUA@//"  -e " s/@HAVE_LUA_5_1@//"  -e "s/@HAVE_AIRPCAP@//"  -e "s/@HAVE
_AIRPDCAP@//"  -e " s/@HAVE_LIBPORTAUDIO@//"  -e "s/@PORTAUDIO_API_1@//"  -e "s/@
HAVE_NET_SNMP@//"  < config.h.win32 > config.h
        cd tools
        NMAKE /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        cd lemon
        NMAKE /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        cd ..
        cd ..
        cd image
        NMAKE /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        sed -e s/@VERSION_MAJOR@/0/  -e s/@VERSION_MINOR@/99/  -e s/@VERSION_MIC
RO@/6/   < wireshark.exe.manifest.in > wireshark.exe.manifest
        sed -e s/@VERSION@/0.99.69999/  -e s/@RC_VERSION@/0,99,6/  < wireshark.r
c.in > wireshark.rc
        sed -e s/@VERSION@/0.99.69999/  -e s/@RC_VERSION@/0,99,6/  < libwireshar
k.rc.in > libwireshark.rc
        sed -e s/@VERSION@/0.99.69999/  -e s/@RC_VERSION@/0,99,6/  < tshark.rc.i
n > tshark.rc
        sed -e s/@VERSION@/0.99.69999/  -e s/@RC_VERSION@/0,99,6/   < capinfos.rc
.in > capinfos.rc
        sed -e s/@VERSION@/0.99.69999/  -e s/@RC_VERSION@/0,99,6/  < editcap.rc.
in > editcap.rc
        sed -e s/@VERSION@/0.99.69999/  -e s/@RC_VERSION@/0,99,6/  < text2pcap.r
c.in > text2pcap.rc
        sed -e s/@VERSION@/0.99.69999/  -e s/@RC_VERSION@/0,99,6/  < mergecap.rc
.in > mergecap.rc
        sed -e s/@VERSION@/0.3.1/  -e s/@RC_VERSION@/0,3,1/  < wiretap.rc.in > w
iretap.rc
        sed -e s/@VERSION@/0.99.69999/  -e s/@RC_VERSION@/0,99,6/  < dumpcap.rc.
in > dumpcap.rc
        cd ..
        cd codecs
        NMAKE /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

'codecs.lib' is up-to-date
        cd ..
        cd wiretap
        NMAKE /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        sed -e s/@VERSION@/0.3.1/  -e "s/@HAVE_LIBZ@//"  < config.h.win32 > conf
ig.h
        rc  /r ..\image\wiretap
        cl -DWIN32 -DNULL=0 -D_MT -D_DLL -DHAVE_CONFIG_H /IC:\cygwin\lib\glib\in
clude\glib-2.0  /IC:\cygwin\lib\glib\lib\glib-2.0\include  /I/include  -D_U_=""
/Zi /W3 /MD -DMSC_VER_REQUIRED=1200 -Fd.\ -c 5views.c airopeek9.c ascend.c atm.c
 ber.c buffer.c catapult_dct2000.c cosine.c csids.c dbs-etherwatch.c erf.c ether
peek.c eyesdn.c file_access.c file_wrappers.c hcidump.c i4btrace.c iptrace.c ise
ries.c k12.c lanalyzer.c libpcap.c netmon.c nettl.c network_instruments.c netxra
y.c ngsniffer.c pppdump.c radcom.c snoop.c toshiba.c visual.c vms.c wtap.c ascen
d-grammar.c ascend-scanner.c file_util.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

5views.c
airopeek9.c
ascend.c
atm.c
ber.c
buffer.c
catapult_dct2000.c
cosine.c
csids.c
dbs-etherwatch.c
erf.c
etherpeek.c
eyesdn.c
file_access.c
file_access.c(181) : warning C4133: 'function' : incompatible types - from 'stru
ct stat *' to 'struct _stat *'
file_wrappers.c
hcidump.c
i4btrace.c
iptrace.c
iseries.c
k12.c
k12.c(225) : warning C4018: '<' : signed/unsigned mismatch
k12.c(239) : warning C4018: '<' : signed/unsigned mismatch
k12.c(284) : warning C4018: '<' : signed/unsigned mismatch
Generating Code...
Compiling...
lanalyzer.c
libpcap.c
libpcap.c(28) : fatal error C1083: Cannot open include file: 'pcap.h': No such f  <<<<-- Does not have include path <<<
ile or directory
netmon.c
nettl.c
network_instruments.c
netxray.c
ngsniffer.c
pppdump.c
radcom.c
snoop.c
toshiba.c
visual.c
vms.c
wtap.c
ascend-grammar.c
ascend-grammar.c(453) : warning C4273: 'malloc' : inconsistent dll linkage.  dll
export assumed.
ascend-grammar.c(460) : warning C4273: 'free' : inconsistent dll linkage.  dllex
port assumed.
ascend-scanner.c
file_util.c
Generating Code...
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\N
MAKE.EXE"' : return code '0x2'
Stop.

C:\Documents and Settings\psinha\wireshark>