Wireshark-dev: Re: [Wireshark-dev] OMG Still it doesn't compile!
Date: Tue, 31 Oct 2006 13:47:49 -0000
Ok I've started over. This post is a little long, but it shows where I'm at, hopefully it'll give you guys an idea as to what I'm not doing or whats wrong!!!! All this is from the win32 command line. Run vcvar32.bat Nmake -f makefile.nmake distclean Nmake -f makefile.nmake verify_tools Nmake -f makefile.nmake setup Nmake -f makefile.nmake all And there's a whole load of compiling that goes on forever and a day, I get some compiler warnings (unreferenced locals, things like that), some fatal errors relating to winposixtype.h and netsnmp.h but still it keeps going! To get past all that I need to move some files locally and then it compiles up to: LINK : fatal error LNK1181: cannot open input file "C:\wireshark-win32-libs\net-snmp-5.3.1\win32\lib\release\netsnmp.lib" NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\link.exe' : return code '0x49d' Stop. NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' : return code '0x2' Stop. Now I don't have netsnmp.lib, I do have netsnmpagent.lib, which I rename and move locally which solves the immediate problem, but may cause yet to be discovered problems later! At that point I have another error relating to lua5.1 which I solve by renaming the vc6 directory to 'dll'. BUT... After this point I now get: Creating library libwireshark.lib and object libwireshark.exp dissectors.lib(packet-snmp.obj) : error LNK2001: unresolved external symbol _sprint_realloc_objid dissectors.lib(packet-snmp.obj) : error LNK2001: unresolved external symbol _sprint_realloc_value dissectors.lib(packet-snmp.obj) : error LNK2001: unresolved external symbol _netsnmp_ds_set_int dissectors.lib(packet-snmp.obj) : error LNK2001: unresolved external symbol _netsnmp_ds_set_boolean dissectors.lib(packet-snmp.obj) : error LNK2001: unresolved external symbol _read_configs dissectors.lib(packet-snmp.obj) : error LNK2001: unresolved external symbol _init_mib dissectors.lib(packet-snmp.obj) : error LNK2001: unresolved external symbol _read_premib_configs dissectors.lib(packet-snmp.obj) : error LNK2001: unresolved external symbol _register_mib_handlers dissectors.lib(packet-snmp.obj) : error LNK2001: unresolved external symbol _shutdown_mib dissectors.lib(packet-cops.obj) : error LNK2001: unresolved external symbol _sprint_realloc_by_type dissectors.lib(packet-cops.obj) : error LNK2001: unresolved external symbol _mib_to_asn_type dissectors.lib(packet-cops.obj) : error LNK2001: unresolved external symbol _get_tree dissectors.lib(packet-cops.obj) : error LNK2001: unresolved external symbol _tree_head lua5.1.lib(lauxlib.obj) : error LNK2001: unresolved external symbol _errno lua5.1.lib(loslib.obj) : error LNK2001: unresolved external symbol _errno lua5.1.lib(liolib.obj) : error LNK2001: unresolved external symbol _errno lua5.1.lib(lobject.obj) : error LNK2001: unresolved external symbol __pctype lua5.1.lib(llex.obj) : error LNK2001: unresolved external symbol __pctype lua5.1.lib(lstrlib.obj) : error LNK2001: unresolved external symbol __pctype lua5.1.lib(lbaselib.obj) : error LNK2001: unresolved external symbol __pctype lua5.1.lib(lobject.obj) : error LNK2001: unresolved external symbol ___mb_cur_max lua5.1.lib(llex.obj) : error LNK2001: unresolved external symbol ___mb_cur_max lua5.1.lib(lstrlib.obj) : error LNK2001: unresolved external symbol ___mb_cur_max lua5.1.lib(lbaselib.obj) : error LNK2001: unresolved external symbol ___mb_cur_max lua5.1.lib(lmathlib.obj) : error LNK2001: unresolved external symbol __HUGE libwireshark.dll : fatal error LNK1120: 17 unresolved externals NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\link.exe' : return code '0x460' Stop. NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' : return code '0x2' Stop. So I figure stop and ask you guys. I've got to write a dissector when I get this to compile, I hope its nowhere near as much fun! This email and any files attached are intended for the addressee and may contain information of a confidential nature. If you are not the intended recipient, be aware that this email was sent to you in error and you should not disclose, distribute, print, copy or make other use of this email or its attachments. Such actions, in fact, may be unlawful. In compliance with the various Regulations and Acts, General Dynamics UK Limited reserves the right to monitor (and examine for viruses) all emails and email attachments, both inbound and outbound. Email communications and their attachments may not be secure or error- or virus-free and the company does not accept liability or responsibility for such matters or the consequences thereof. Registered Office: 100 New Bridge Street, London EC4V 6JA. Registered in England and Wales No: 1911653.
- Follow-Ups:
- Re: [Wireshark-dev] OMG Still it doesn't compile!
- From: Anders Broman
- Re: [Wireshark-dev] OMG Still it doesn't compile!
- References:
- Re: [Wireshark-dev] OMG Still it doesn't compile!
- From: Aamer Akhter
- Re: [Wireshark-dev] OMG Still it doesn't compile!
- Prev by Date: Re: [Wireshark-dev] Source code for ACN (ANSI BSR E1.17) Dissector
- Next by Date: [Wireshark-dev] (no subject)
- Previous by thread: Re: [Wireshark-dev] OMG Still it doesn't compile!
- Next by thread: Re: [Wireshark-dev] OMG Still it doesn't compile!
- Index(es):