This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

error when compiling wireshark1.2.9

0

How can I compile Wireshark 1.2.9 successfully?

In Windows XP, I executed nmake -f Makefile.nmake all, but I get the following errors:

packet-ipmi-bridge.c
packet-ipmi-chassis.c
packet-ipmi-picmg.c
packet-ipmi-se.c
packet-ipmi-storage.c
packet-ipmi-transport.c
Generating Code...
Compiling...
packet-ipmi-pps.c
packet-ipmi-update.c
packet-dcerpc-nt.c
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\c
l.exe"' : return code '0x2'
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'
Stop.

asked 10 Sep '11, 02:17

ylda_ljm0620's gravatar image

ylda_ljm0620
31101013
accept rate: 0%

edited 11 Sep '11, 13:05

helloworld's gravatar image

helloworld
3.1k42041

You'll need to provide the output from prior to the above for us to provide any help..

At some point prior to the above messages there was a compile error which eventually caused a delayed exit with the messages shown above.

P.S. Why Wireshark 1.2.9 ? That version is old and not actuallysupported anymore.

(10 Sep '11, 05:04) Bill Meier ♦♦

because wireshark1.2.9 just satisfy our needs, when tshark convert pcap to text, SMV remain original hex, we hope ourselves to dissect the SMV for higher efficiency. but wireshark1.2.9(as any vertion), it's tshark can not dissect mms when mms is not begining with initiate. so we try to develop wireshark1.2.9.

now, I compile wireshark1.2.9 in windows XP, My complier is Visual studio 6.0.

After nmake -f Makefile verify_tools, what appears as follows:

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

Checking for required applications: cl: /cygdrive/c/Program Files/Microsoft Visual Studio/VC98/Bin/cl link: /cygdrive/c/Program Files/Microsoft Visual Studio/VC98/Bin/link nmake: /cygdrive/c/Program Files/Microsoft Visual Studio/VC98/Bin/nmake

    bash: /usr/bin/bash
    bison: /usr/bin/bison
    flex: /usr/bin/flex
    env: /usr/bin/env
    grep: /usr/bin/grep
    /usr/bin/find: /usr/bin/find
    perl: /usr/bin/perl
    sed: /usr/bin/sed
    unzip: /usr/bin/unzip
    wget: /usr/bin/wget

then , nmake -f Makefile.nmake setup, it success!

finally, nmake -f Makefile.nmake all, errors as follws:

packet-sccpmg.c
packet-scsi.c
packet-scsi-mmc.c
packet-scsi-sbc.c
packet-scsi-smc.c
packet-scsi-ssc.c
packet-sdlc.c
packet-sdp.c
packet-sebek.c
packet-ses.c
packet-sflow.c
packet-simulcrypt.c
packet-sip.c
packet-sigcomp.c
packet-sipfrag.c
packet-sita.c
packet-skinny.c
packet-slimp3.c
packet-sll.c
Generating Code…
Compiling…
packet-slowprotocols.c
packet-slsk.c
packet-smb-browse.c
packet-smb-common.c
packet-smb-logon.c
packet-smb-mailslot.c
packet-smb-pipe.c
packet-smb-sidsnooping.c
packet-smb.c
packet-smb2.c
packet-smpp.c
packet-smtp.c
packet-sna.c
packet-snaeth.c
packet-sndcp.c
packet-sndcp-xid.c
packet-socks.c
packet-nasdaq-soup.c
packet-spp.c
packet-spray.c
Generating Code…
Compiling…
packet-srp.c
packet-sscf-nni.c
packet-srvloc.c
packet-sscop.c
packet-scriptingservice.c
packet-ssh.c
packet-ssl.c
packet-ssl-utils.c
packet-starteam.c
packet-stat-notify.c
packet-stat.c
packet-stun.c
packet-stun2.c
packet-sua.c
packet-symantec.c
packet-synergy.c
packet-synphasor.c
packet-syslog.c
packet-t30.c
packet-t38.c
Generating Code…
Compiling…
packet-tacacs.c
packet-tali.c
packet-tapa.c
packet-tcp.c
packet-tds.c
packet-teamspeak2.c
packet-teimanagement.c
packet-telnet.c
packet-teredo.c
packet-text-media.c
packet-telkonet.c
packet-tftp.c
packet-time.c
packet-tipc.c
packet-tivoconnect.c
packet-tnef.c
packet-tns.c
packet-tpkt.c
packet-tpncp.c
packet-tr.c
Generating Code…
Compiling…
packet-trmac.c
packet-tsp.c
packet-tte.c
packet-tte-pcf.c
packet-turbocell.c
packet-turnchannel.c
packet-tuxedo.c
packet-tzsp.c
packet-ucp.c
packet-udld.c
packet-uma.c
packet-udp.c
packet-usb.c
packet-usb-masstorage.c
packet-umts_fp.c
packet-uts.c
packet-v120.c
packet-v5ua.c
packet-vcdu.c
packet-vicp.c
Generating Code…
Compiling…
packet-vines.c
packet-vj.c
packet-vlan.c
packet-vnc.c
packet-vrrp.c
packet-vtp.c
packet-wap.c
packet-wassp.c
packet-wbxml.c
packet-wccp.c
packet-wcp.c
packet-wfleet-hdlc.c
packet-who.c
packet-windows-common.c
packet-winsrepl.c
packet-wlccp.c
packet-wol.c
packet-wow.c
packet-wps.c
packet-wsmp.c
Generating Code…
Compiling…
packet-wsp.c
packet-wtls.c
packet-wtp.c
packet-x11.c
packet-x25.c
packet-x29.c
packet-xcsl.c
packet-xdmcp.c
packet-xml.c
packet-xot.c
packet-xtp.c
packet-xyplex.c
packet-yhoo.c
packet-ymsg.c
packet-ypbind.c
packet-yppasswd.c
packet-ypserv.c
packet-ypxfr.c
packet-zbee-aps.c
packet-zbee-security.c
Generating Code…
Compiling…
packet-zbee-nwk.c
packet-zbee-zdp.c
packet-zbee-zdp-binding.c
packet-zbee-zdp-discovery.c
packet-zbee-zdp-management.c
packet-zebra.c
packet-zep.c
packet-ziop.c
packet-zrtp.c
packet-isakmp.c
packet-k12.c
packet-nbd.c
packet-sccp.c
packet-scsi-osd.c
packet-sctp.c
packet-user_encap.c
packet-dcerpc-atsvc.c
packet-dcerpc-budb.c
packet-dcerpc-butc.c
packet-dcerpc-dfs.c
Generating Code…
Compiling…
packet-dcerpc-drsuapi.c
packet-dcerpc-dssetup.c
packet-dcerpc-efs.c
packet-dcerpc-initshutdown.c
packet-dcerpc-nspi.c
packet-dcerpc-rfr.c
packet-dcerpc-wkssvc.c
packet-dcerpc-wzcsvc.c
packet-dcerpc-dnsserver.c
packet-dcerpc-eventlog.c
packet-dcerpc-lsa.c
packet-dcerpc-srvsvc.c
packet-dcerpc-winreg.c
packet-acp133.c
packet-acse.c
packet-ansi_tcap.c
packet-camel.c
packet-cdt.c
packet-cmip.c
packet-cmp.c
Generating Code…
Compiling…
packet-cms.c
packet-crmf.c
packet-dap.c
packet-disp.c
packet-dop.c
packet-dsp.c
packet-ess.c
packet-ftam.c
packet-goose.c
packet-h225.c
packet-h235.c
packet-h245.c
packet-h248.c
packet-h282.c
packet-h283.c
packet-h323.c
packet-h450.c
packet-h450-ros.c
packet-h460.c
packet-h501.c
Generating Code…
Compiling…
packet-logotypecertextn.c
packet-mms.c
packet-mpeg-audio.c
packet-mpeg-pes.c
packet-ns_cert_exts.c
packet-ocsp.c
packet-opsi.c
packet-p7.c
packet-pkcs1.c
packet-pkinit.c
packet-pkix1explicit.c
packet-pkix1implicit.c
packet-pkixproxy.c
packet-pkixqualified.c
packet-pkixtsp.c
packet-q932.c
packet-q932-ros.c
packet-qsig.c
packet-ranap.c
packet-ros.c
Generating Code…
Compiling…
packet-rtnet.c
packet-rtse.c
packet-s4406.c
packet-sabp.c
packet-smrse.c
packet-spnego.c
packet-ulp.c
packet-wlancertextn.c
packet-x224.c
packet-x509af.c
packet-x509ce.c
packet-x509if.c
packet-x509sat.c
packet-ansi_map.c
packet-charging_ase.c
packet-gnm.c
packet-gsm_map.c
packet-inap.c
packet-ldap.c
packet-lte-rrc.c
Generating Code…
Compiling…
packet-nbap.c
packet-pcap.c
packet-pkcs12.c
packet-pres.c
packet-rnsap.c
packet-rrlp.c
packet-s1ap.c
packet-snmp.c
packet-t125.c
packet-tcap.c
packet-x2ap.c
packet-x411.c
packet-x420.c
packet-ipmi-app.c
packet-ipmi-bridge.c
packet-ipmi-chassis.c
packet-ipmi-picmg.c
packet-ipmi-se.c
packet-ipmi-storage.c
packet-ipmi-transport.c
Generating Code…
Compiling…
packet-ipmi-pps.c
packet-ipmi-update.c
packet-dcerpc-nt.c
Generating Code…
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\Bin\c
l.exe"' : return code '0x2'
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'
Stop.
(10 Sep ‘11, 07:01) ylda_ljm0620

It seems the error must have occurred even before the text posted.

In any case, you’re using VC6 to do the build.

VC6 certainly isn’t supported for building Wireshark 1.2.9. (I suppose that it’s possible to fix whatever is causing the problem when using VC6 but it isn’t worth the effort). :)

I suggest downloading/installing Microsoft VC2008EE (free); that’s the VC version used to build Windows Wireshark 1.2.9.

I’m not sure I understand your reason for using 1.2.9. Building with the the latest 1.4 or 1.6 source, will make it easier for us to help with any problems you may encounter,

(10 Sep ‘11, 15:59) Bill Meier ♦♦

Tanks very much. I have downloaded VS2008EE and installed, but new errors happened.

nmake -f Makefile.nmake verify_tools, it success.

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation. All rights reserved.

Checking for required applications: cl: /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/BIN/cl link: /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/BIN/link

    nmake: /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/BIN/nmak

e mt: /cygdrive/c/Program Files/Microsoft SDKs/Windows/v6.0A/bin/mt bash: /usr/bin/bash bison: /usr/bin/bison flex: /usr/bin/flex env: /usr/bin/env grep: /usr/bin/grep /usr/bin/find: /usr/bin/find perl: /usr/bin/perl C:\Python27\python.exe: /cygdrive/c/Python27/python.exe sed: /usr/bin/sed unzip: /usr/bin/unzip wget: /usr/bin/wget

finally, nmake -f Makefile.nmake all, errors appears as follows:

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

    cd tools
    "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\nmake.exe" /
        -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved.

    cd lemon
    ..\native-nmake "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\nma

ke.exe" / -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved.

    cl -WX -D_U_="" /Zi /W3 /MD /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO

DEPRECATE /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=1500 /D_BIND_TO_CURRENT_CRT VERSION=1 lemon.c NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin \cl.EXE"' : return code '0xc0000135' Stop. NMAKE : fatal error U1077: '..\native-nmake.CMD' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin \nmake.exe"' : return code '0x2' Stop.

(10 Sep ‘11, 18:32) ylda_ljm0620

in addition, I will tell you the reason to use wireshark1.2.9.

first, wireshark of any vertion can not dissect mms what is not begining with Initiate, so i try to develop the wireshark to solve the problem. not like mms-ethereal, even mms-ethereal start after Initiate(you known, just as Initiate-request, Initiate-response) ,It can dissect the mms. but the wireshark show “dissctor is not available” near by ASN1.type.

second, I think to dissect the 61850 SMV by myself for higher Efficiency. the tshark(covert pcap to text) of wireshark1.2.9 just remain 61850 SMV hex in text file. but the tshark(covert pcap to text) of wireshark 1.6 have dissected the 61850 SM.

which vertion wireshark can solve the problem?

(10 Sep ‘11, 18:55) ylda_ljm0620

in addition, i whill farther explain why i use wireshark1.2.9 to develop.

It is that we have used thark of wireshark1.2.9 to convert pcap to text, and we read the text and further dissect the text to other application.

different vertion of wireshark thark to text, the 61850SMV and 61850GOOSE int text have different format. so we had better not to change wireshark vertion.

(10 Sep ‘11, 19:07) ylda_ljm0620
Thanks, Bill Meier.
I am very anxious and waiting on-net for your answer.
please help me, thank you very much.
(11 Sep ‘11, 00:02) ylda_ljm0620

Bill Meier, Thanks.

I am very anxious and will waiting for your answer online. Please help me.

(11 Sep ‘11, 04:19) ylda_ljm0620

Re: cl.EXE"’ : return code ‘0xc0000135’

A Google search suggests this is caused by some type of setup problem.

Are you following the instructions (exactly) in the Wireshark Developer’s Guide section: Win32: Step-by-Step Guide? http://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html

What is your PATH ? Are you doing call “c:Program FilesMicrosoft Visual Studio 9.0VCbinvcvars32.bat” as described in the Guide ?

(11 Sep ‘11, 08:05) Bill Meier ♦♦
1

re: the questions about issues with dissecting mms and 61850 SMV and asking “which vertion wireshark can solve the problem?"

I’ve no knowledge of these protocols.

I suggest posting this question on the wireshark-dev mailing list: See: http://www.wireshark.org/lists/

ask.wireshark.org is not really intended for extended discussions so I also suggest posting (separately) on wireshark-dev any further issues about building Wireshark. (You can link to this ask.wireshark.org question if needed).

Thanks

(11 Sep ‘11, 09:27) Bill Meier ♦♦

Thanks. it compiled successfully.

the reason of compiling is that i called the vcvar32.bat and nmake in two different cmd-window.

if calling them in the same cmd-window, and firstly calling vcvar32.bat, then calling nmake, it will success.

(14 Sep ‘11, 01:56) ylda_ljm0620
showing 5 of 11 show 6 more comments