sebi2k1/restcan — Issue #5: Building can_signals fails
Author: dschanoeh
Created: 2012-01-15 14:14:49+00:00
State: open

Building the can module works fine for me. After fixing some small module version problems (see https://github.com/dschanoeh/restcan/commit/5a752423e19947767dd8df22c2ea0af4a947dfb8 ) the build of can_signals fails with the following output. I have no idea what to do :)

> can_signals@0.0.1 preinstall /home/dschanoeh/Dokumente/restcan/node_modules/can_signals
> node-waf clean || (exit 0); node-waf configure build

'clean' finished successfully (0.025s)
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 : not found
Checking for node prefix : ok /usr
'configure' finished successfully (0.192s)
Waf: Entering directory `/usr/lib/node_modules/can_signals/build'
[1/2] cxx: signals.cc -> build/Release/signals_1.o
../signals.cc: In Funktion »v8::Handle DecodeSignal(const v8::Arguments&)«:
../signals.cc:146:62: Fehler: keine passende Funktion für Aufruf von »min(uint32_t, long unsigned int)«
../signals.cc:146:62: Anmerkung: Kandidaten sind:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algobase.h:187:5: Anmerkung: template const _Tp& std::min(const _Tp&, const _Tp&)
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algobase.h:233:5: Anmerkung: template const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
../signals.cc: In Funktion »v8::Handle EncodeSignal(const v8::Arguments&)«:
../signals.cc:277:62: Fehler: keine passende Funktion für Aufruf von »min(uint32_t, long unsigned int)«
../signals.cc:277:62: Anmerkung: Kandidaten sind:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algobase.h:187:5: Anmerkung: template const _Tp& std::min(const _Tp&, const _Tp&)
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algobase.h:233:5: Anmerkung: template const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
Waf: Leaving directory `/usr/lib/node_modules/can_signals/build'
Build failed: -> task failed (err #1):
{task: cxx signals.cc -> signals_1.o}
npm ERR! can_signals@0.0.1 preinstall: `node-waf clean || (exit 0); node-waf configure build`
npm ERR! `sh "-c" "node-waf clean || (exit 0); node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the can_signals@0.0.1 preinstall script.
npm ERR! This is most likely a problem with the can_signals package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf clean || (exit 0); node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls can_signals
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.1.9-2-ARCH
npm ERR! command "node" "/usr/bin/npm" "link" "can_signals"
npm ERR! cwd /home/dschanoeh/Dokumente/restcan
npm ERR! node -v v0.6.7
npm ERR! npm -v 1.1.0-beta-10
npm ERR! code ELIFECYCLE
npm ERR! message can_signals@0.0.1 preinstall: `node-waf clean || (exit 0); node-waf configure build`
npm ERR! message `sh "-c" "node-waf clean || (exit 0); node-waf configure build"` failed with 1