Skip to content

Instantly share code, notes, and snippets.

@Valid
Created September 15, 2010 20:52
Show Gist options
  • Select an option

  • Save Valid/581463 to your computer and use it in GitHub Desktop.

Select an option

Save Valid/581463 to your computer and use it in GitHub Desktop.
paf@PAF:~$ npm install pcap
npm info it worked if it ends with ok
npm info version 0.2.0
npm info install pcap@0.2.1
npm info install pcap@0.2.1
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /home/paf/.node_libraries
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.069s)
Waf: Entering directory `/usr/local/lib/node/.npm/pcap/0.2.1/package/build'
[1/2] cxx: pcap_binding.cc -> build/default/pcap_binding_1.o
../pcap_binding.cc:5:23: error: pcap/pcap.h: No such file or directory
../pcap_binding.cc:22: error: aggregate âbpf_program fpâ has incomplete type and cannot be defined
../pcap_binding.cc:23: error: âbpf_u_int32â does not name a type
../pcap_binding.cc:24: error: âbpf_u_int32â does not name a type
../pcap_binding.cc:25: error: expected constructor, destructor, or type conversion before â*â token
../pcap_binding.cc: In function âvoid PacketReady(u_char*, const pcap_pkthdr*, const u_char*)â:
../pcap_binding.cc:46: error: invalid use of incomplete type âconst struct pcap_pkthdrâ
../pcap_binding.cc:40: error: forward declaration of âconst struct pcap_pkthdrâ
../pcap_binding.cc:52: error: invalid use of incomplete type âconst struct pcap_pkthdrâ
../pcap_binding.cc:40: error: forward declaration of âconst struct pcap_pkthdrâ
../pcap_binding.cc:53: error: invalid use of incomplete type âconst struct pcap_pkthdrâ
../pcap_binding.cc:40: error: forward declaration of âconst struct pcap_pkthdrâ
../pcap_binding.cc:54: error: invalid use of incomplete type âconst struct pcap_pkthdrâ
../pcap_binding.cc:40: error: forward declaration of âconst struct pcap_pkthdrâ
../pcap_binding.cc:55: error: invalid use of incomplete type âconst struct pcap_pkthdrâ
../pcap_binding.cc:40: error: forward declaration of âconst struct pcap_pkthdrâ
../pcap_binding.cc: In function âv8::Handle<v8::Value> Dispatch(const v8::Arguments&)â:
../pcap_binding.cc:89: error: âpcap_handleâ was not declared in this scope
../pcap_binding.cc:89: error: âpcap_dispatchâ was not declared in this scope
../pcap_binding.cc: In function âv8::Handle<v8::Value> Open(bool, const v8::Arguments&)â:
../pcap_binding.cc:100: error: âPCAP_ERRBUF_SIZEâ was not declared in this scope
../pcap_binding.cc:120: error: ânetâ was not declared in this scope
../pcap_binding.cc:120: error: âmaskâ was not declared in this scope
../pcap_binding.cc:120: error: âerrbufâ was not declared in this scope
../pcap_binding.cc:120: error: âpcap_lookupnetâ was not declared in this scope
../pcap_binding.cc:126: error: âpcap_handleâ was not declared in this scope
../pcap_binding.cc:126: error: âerrbufâ was not declared in this scope
../pcap_binding.cc:126: error: âpcap_createâ was not declared in this scope
../pcap_binding.cc:132: error: âpcap_set_snaplenâ was not declared in this scope
../pcap_binding.cc:137: error: âpcap_set_promiscâ was not declared in this scope
../pcap_binding.cc:142: error: âpcap_set_buffer_sizeâ was not declared in this scope
../pcap_binding.cc:147: error: âpcap_set_timeoutâ was not declared in this scope
../pcap_binding.cc:157: error: âpcap_activateâ was not declared in this scope
../pcap_binding.cc:158: error: âpcap_geterrâ was not declared in this scope
../pcap_binding.cc:162: error: âpcap_handleâ was not declared in this scope
../pcap_binding.cc:162: error: âerrbufâ was not declared in this scope
../pcap_binding.cc:162: error: âpcap_open_offlineâ was not declared in this scope
../pcap_binding.cc:168: error: âpcap_handleâ was not declared in this scope
../pcap_binding.cc:168: error: âerrbufâ was not declared in this scope
../pcap_binding.cc:168: error: âpcap_setnonblockâ was not declared in this scope
../pcap_binding.cc:173: error: âpcap_handleâ was not declared in this scope
../pcap_binding.cc:173: error: ânetâ was not declared in this scope
../pcap_binding.cc:173: error: âpcap_compileâ was not declared in this scope
../pcap_binding.cc:174: error: âpcap_geterrâ was not declared in this scope
../pcap_binding.cc:177: error: âpcap_handleâ was not declared in this scope
../pcap_binding.cc:177: error: âpcap_setfilterâ was not declared in this scope
../pcap_binding.cc:178: error: âpcap_geterrâ was not declared in this scope
../pcap_binding.cc:192: error: âpcap_handleâ was not declared in this scope
../pcap_binding.cc:192: error: âpcap_datalinkâ was not declared in this scope
../pcap_binding.cc:196: error: âDLT_NULLâ was not declared in this scope
../pcap_binding.cc:199: error: âDLT_EN10MBâ was not declared in this scope
../pcap_binding.cc:202: error: âDLT_IEEE802_11_RADIOâ was not declared in this scope
../pcap_binding.cc:205: error: âDLT_RAWâ was not declared in this scope
../pcap_binding.cc:209: error: âerrbufâ was not declared in this scope
../pcap_binding.cc: In function âv8::Handle<v8::Value> FindAllDevs(const v8::Arguments&)â:
../pcap_binding.cc:232: error: âPCAP_ERRBUF_SIZEâ was not declared in this scope
../pcap_binding.cc:233: error: âpcap_if_tâ was not declared in this scope
../pcap_binding.cc:233: error: âalldevsâ was not declared in this scope
../pcap_binding.cc:233: error: âcur_devâ was not declared in this scope
../pcap_binding.cc:235: error: âerrbufâ was not declared in this scope
../pcap_binding.cc:235: error: âpcap_findalldevsâ was not declared in this scope
../pcap_binding.cc:251: error: âpcap_addr_tâ was not declared in this scope
../pcap_binding.cc:251: error: âcur_addrâ was not declared in this scope
../pcap_binding.cc:277: error: âPCAP_IF_LOOPBACKâ was not declared in this scope
../pcap_binding.cc:284: error: âpcap_freealldevsâ was not declared in this scope
../pcap_binding.cc: In function âv8::Handle<v8::Value> Close(const v8::Arguments&)â:
../pcap_binding.cc:293: error: âpcap_handleâ was not declared in this scope
../pcap_binding.cc:293: error: âpcap_closeâ was not declared in this scope
../pcap_binding.cc: In function âv8::Handle<v8::Value> Fileno(const v8::Arguments&)â:
../pcap_binding.cc:303: error: âpcap_handleâ was not declared in this scope
../pcap_binding.cc:303: error: âpcap_get_selectable_fdâ was not declared in this scope
../pcap_binding.cc: In function âv8::Handle<v8::Value> Stats(const v8::Arguments&)â:
../pcap_binding.cc:313: error: aggregate âpcap_stat psâ has incomplete type and cannot be defined
../pcap_binding.cc:315: error: âpcap_handleâ was not declared in this scope
../pcap_binding.cc:315: error: âpcap_statsâ was not declared in this scope
../pcap_binding.cc: In function âv8::Handle<v8::Value> DefaultDevice(const v8::Arguments&)â:
../pcap_binding.cc:334: error: âPCAP_ERRBUF_SIZEâ was not declared in this scope
../pcap_binding.cc:339: error: âpcap_if_tâ was not declared in this scope
../pcap_binding.cc:339: error: âalldevsâ was not declared in this scope
../pcap_binding.cc:339: error: âdevâ was not declared in this scope
../pcap_binding.cc:340: error: âpcap_addr_tâ was not declared in this scope
../pcap_binding.cc:340: error: âaddrâ was not declared in this scope
../pcap_binding.cc:343: error: âerrbufâ was not declared in this scope
../pcap_binding.cc:343: error: âpcap_findalldevsâ was not declared in this scope
../pcap_binding.cc:348: error: âPCAP_IF_LOOPBACKâ was not declared in this scope
../pcap_binding.cc:363: error: âpcap_freealldevsâ was not declared in this scope
../pcap_binding.cc: In function âv8::Handle<v8::Value> LibVersion(const v8::Arguments&)â:
../pcap_binding.cc:372: error: âpcap_lib_versionâ was not declared in this scope
Waf: Leaving directory `/usr/local/lib/node/.npm/pcap/0.2.1/package/build'
Build failed: -> task failed (err #1):
{task: cxx pcap_binding.cc -> pcap_binding_1.o}
npm info pcap@0.2.1 Failed to exec install script
npm ERR! install failed Error: pcap@0.2.1 install: `node-waf configure build`
npm ERR! install failed `sh` failed with 1
npm ERR! install failed at ChildProcess.<anonymous> (/usr/local/lib/node/.npm/npm/0.2.0/package/lib/utils/exec.js:24:18)
npm ERR! install failed at ChildProcess.emit (events:33:26)
npm ERR! install failed at ChildProcess.onexit (child_process:151:12)
npm ERR! install failed at node.js:764:9
npm info install failed rollback
npm info not installed pcap,0.2.1
npm info install failed rolled back
npm ERR! Error: pcap@0.2.1 install: `node-waf configure build`
npm ERR! `sh` failed with 1
npm ERR! at ChildProcess.<anonymous> (/usr/local/lib/node/.npm/npm/0.2.0/package/lib/utils/exec.js:24:18)
npm ERR! at ChildProcess.emit (events:33:26)
npm ERR! at ChildProcess.onexit (child_process:151:12)
npm ERR! at node.js:764:9
npm ERR! try running: 'npm help install'
npm ERR! Report this *entire* log at <http://github.com/isaacs/npm/issues>
npm ERR! or email it to <npm-@googlegroups.com>
npm not ok
paf@PAF:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment