polotek/libxmljs — Issue #108: npm install hangs occasionally
Author: emiloslavsky
Created: 2012-02-17 20:55:53+00:00
State: open

also at https://github.com/SaltwaterC/aws2js/issues/21
npm install hangs occasionally in aws2js - possibly in libxmljs

Below's the information from a compilation run that just got hung:
I'm wondering if popen in node_modules/aws2js/node_modules/libxmljs/wscript is causing the problme by opening a pipe that's never closed:

xml2_includedir = popen("%s --cflags" % xml2_config).readline().strip()

PID TTY STAT TIME COMMAND
1 ? Ss 0:00 /sbin/init
230 ? S 0:00 upstart-udev-bridge --daemon
395 ? S 0:00 upstart-socket-bridge --daemon
539 ? Ss 0:00 /bin/sh -e /proc/self/fd/9
790 ? S 0:00 \_ make
1196 ? S 0:00 \_ /bin/sh -c (cd clmgr; npm install; cd node_modules/mocha; npm install)
1197 ? S 0:00 \_ /bin/sh -c (cd clmgr; npm install; cd node_modules/mocha; npm install)
1199 ? Sl 0:07 \_ npm |cwd /srv/nuccc/repo/clmgr
1213 ? S 0:00 \_ sh -c node-waf configure build |cwd /srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/libxmljs
1214 ? Sl 0:00 \_ python /usr/local/bin/node-waf configure build |cwd /srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/libxmljs/build
1221 ? S 0:00 \_ python /usr/local/bin/node-waf configure build |cwd /srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/libxmljs/build

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 1199 root cwd DIR 202,1 4096 149830 /srv/nuccc/repo/clmgr
node 1199 root rtd DIR 202,1 4096 2 /
node 1199 root txt REG 202,1 10862948 17160 /opt/chef_node/bin/node
node 1199 root mem REG 202,1 141088 395318 /lib/x86_64-linux-gnu/ld-2.13.so
node 1199 root mem REG 202,1 96816 395369 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
node 1199 root mem REG 202,1 31752 395359 /lib/x86_64-linux-gnu/librt-2.13.so
node 1199 root mem REG 202,1 332400 395515 /lib/x86_64-linux-gnu/libssl.so.1.0.0
node 1199 root mem REG 202,1 1749000 395514 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
node 1199 root mem REG 202,1 14768 395331 /lib/x86_64-linux-gnu/libdl-2.13.so
node 1199 root mem REG 202,1 991424 9706 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
node 1199 root mem REG 202,1 538928 395341 /lib/x86_64-linux-gnu/libm-2.13.so
node 1199 root mem REG 202,1 88384 395336 /lib/x86_64-linux-gnu/libgcc_s.so.1
node 1199 root mem REG 202,1 135500 395357 /lib/x86_64-linux-gnu/libpthread-2.13.so
node 1199 root mem REG 202,1 1677624 395325 /lib/x86_64-linux-gnu/libc-2.13.so
node 1199 root mem REG 202,1 51736 395347 /lib/x86_64-linux-gnu/libnss_files-2.13.so
node 1199 root mem REG 202,1 27032 395346 /lib/x86_64-linux-gnu/libnss_dns-2.13.so
node 1199 root mem REG 202,1 101192 395358 /lib/x86_64-linux-gnu/libresolv-2.13.so
node 1199 root 0u CHR 1,3 0t0 5118 /dev/null
node 1199 root 1w REG 202,1 38108 13934 /tmp/workerAutoStart.log
node 1199 root 2w REG 202,1 38108 13934 /tmp/workerAutoStart.log
node 1199 root 3u 0000 0,9 0 5109 anon_inode
node 1199 root 4u 0000 0,9 0 5109 anon_inode
sh 1213 root cwd DIR 202,1 4096 154207 /srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/libxmljs
sh 1213 root rtd DIR 202,1 4096 2 /
sh 1213 root txt REG 202,1 109768 131316 /bin/dash
sh 1213 root mem REG 202,1 141088 395318 /lib/x86_64-linux-gnu/ld-2.13.so
sh 1213 root mem REG 202,1 1677624 395325 /lib/x86_64-linux-gnu/libc-2.13.so
sh 1213 root 0u CHR 1,3 0t0 5118 /dev/null
sh 1213 root 1w REG 202,1 38108 13934 /tmp/workerAutoStart.log
sh 1213 root 2w REG 202,1 38108 13934 /tmp/workerAutoStart.log
sh 1213 root 6w REG 202,1 608726 154213 /srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/arc/file-5.10.tar.gz

python 1214 root cwd DIR 202,1 4096 154333 /srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/libxmljs/build
python 1214 root rtd DIR 202,1 4096 2 /
python 1214 root txt REG 202,1 2735256 960 /usr/bin/python2.7
python 1214 root mem REG 202,1 141088 395318 /lib/x86_64-linux-gnu/ld-2.13.so
python 1214 root mem REG 202,1 135500 395357 /lib/x86_64-linux-gnu/libpthread-2.13.so
python 1214 root mem REG 202,1 14768 395331 /lib/x86_64-linux-gnu/libdl-2.13.so
python 1214 root mem REG 202,1 10640 395366 /lib/x86_64-linux-gnu/libutil-2.13.so
python 1214 root mem REG 202,1 332400 395515 /lib/x86_64-linux-gnu/libssl.so.1.0.0
python 1214 root mem REG 202,1 1749000 395514 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
python 1214 root mem REG 202,1 96816 395369 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
python 1214 root mem REG 202,1 538928 395341 /lib/x86_64-linux-gnu/libm-2.13.so
python 1214 root mem REG 202,1 1677624 395325 /lib/x86_64-linux-gnu/libc-2.13.so
python 1214 root mem REG 202,1 35712 395345 /lib/x86_64-linux-gnu/libnss_compat-2.13.so
python 1214 root mem REG 202,1 97256 395344 /lib/x86_64-linux-gnu/libnsl-2.13.so
python 1214 root mem REG 202,1 47696 395349 /lib/x86_64-linux-gnu/libnss_nis-2.13.so
python 1214 root mem REG 202,1 51736 395347 /lib/x86_64-linux-gnu/libnss_files-2.13.so
python 1214 root mem REG 202,1 21680 9230 /usr/lib/python2.7/lib-dynload/_heapq.so
python 1214 root mem REG 202,1 92768 9242 /usr/lib/python2.7/lib-dynload/datetime.so
python 1214 root mem REG 202,1 24576 9255 /usr/lib/python2.7/lib-dynload/termios.so
python 1214 root 0u CHR 1,3 0t0 5118 /dev/null
python 1214 root 1w REG 202,1 38108 13934 /tmp/workerAutoStart.log
python 1214 root 2w REG 202,1 38108 13934 /tmp/workerAutoStart.log
python 1214 root 3r FIFO 0,8 0t0 8004 pipe
python 1214 root 6w REG 202,1 608726 154213 /srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/arc/file-5.10.tar.gz

python 1221 root cwd DIR 202,1 4096 154333 /srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/libxmljs/build
python 1221 root rtd DIR 202,1 4096 2 /
python 1221 root txt REG 202,1 2735256 960 /usr/bin/python2.7
python 1221 root mem REG 202,1 141088 395318 /lib/x86_64-linux-gnu/ld-2.13.so
python 1221 root mem REG 202,1 135500 395357 /lib/x86_64-linux-gnu/libpthread-2.13.so
python 1221 root mem REG 202,1 14768 395331 /lib/x86_64-linux-gnu/libdl-2.13.so
python 1221 root mem REG 202,1 10640 395366 /lib/x86_64-linux-gnu/libutil-2.13.so
python 1221 root mem REG 202,1 332400 395515 /lib/x86_64-linux-gnu/libssl.so.1.0.0
python 1221 root mem REG 202,1 1749000 395514 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
python 1221 root mem REG 202,1 96816 395369 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
python 1221 root mem REG 202,1 538928 395341 /lib/x86_64-linux-gnu/libm-2.13.so
python 1221 root mem REG 202,1 1677624 395325 /lib/x86_64-linux-gnu/libc-2.13.so
python 1221 root mem REG 202,1 35712 395345 /lib/x86_64-linux-gnu/libnss_compat-2.13.so
python 1221 root mem REG 202,1 97256 395344 /lib/x86_64-linux-gnu/libnsl-2.13.so
python 1221 root mem REG 202,1 47696 395349 /lib/x86_64-linux-gnu/libnss_nis-2.13.so
python 1221 root mem REG 202,1 51736 395347 /lib/x86_64-linux-gnu/libnss_files-2.13.so
python 1221 root mem REG 202,1 21680 9230 /usr/lib/python2.7/lib-dynload/_heapq.so
python 1221 root mem REG 202,1 92768 9242 /usr/lib/python2.7/lib-dynload/datetime.so
python 1221 root mem REG 202,1 24576 9255 /usr/lib/python2.7/lib-dynload/termios.so
python 1221 root 0u CHR 1,3 0t0 5118 /dev/null
python 1221 root 1w REG 202,1 38108 13934 /tmp/workerAutoStart.log
python 1221 root 2w REG 202,1 38108 13934 /tmp/workerAutoStart.log
python 1221 root 3r FIFO 0,8 0t0 8004 pipe
python 1221 root 4w FIFO 0,8 0t0 8004 pipe
python 1221 root 6w REG 202,1 608726 154213 /srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/arc/file-5.10.tar.gz

root@ip-10-176-159-131:~# strace -p 1199
Process 1199 attached - interrupt to quit
clock_gettime(CLOCK_MONOTONIC, {1098, 168786393}) = 0
gettimeofday({1329507077, 231619}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC, {1098, 169137473}) = 0
epoll_wait(3, ^C

root@ip-10-176-159-131:~# strace -p 1213
Process 1213 attached - interrupt to quit
wait4(-1, ^C

root@ip-10-176-159-131:~# strace -p 1214
Process 1214 attached - interrupt to quit
futex(0x2610eb0, FUTEX_WAIT_PRIVATE, 0, NULL^C

root@ip-10-176-159-131:~# strace -p 1221
Process 1221 attached - interrupt to quit
futex(0x23d9090, FUTEX_WAIT_PRIVATE, 0, NULL^C

flags@0.1.1 ./node_modules/flags
streamline@0.2.2 ./node_modules/streamline
mongodb@0.9.7-1.4 ./node_modules/mongodb
express@2.5.8 ./node_modules/express
├── qs@0.4.2
├── mime@1.2.4
├── mkdirp@0.3.0
└── connect@1.8.5
mocha@0.10.1 ./node_modules/mocha
├── growl@1.4.1
├── debug@0.5.0
└── commander@0.5.2
npm http GET https://registry.npmjs.org/should
npm http 200 https://registry.npmjs.org/should
npm http GET https://registry.npmjs.org/should/-/should-0.4.2.tgz
npm http 200 https://registry.npmjs.org/should/-/should-0.4.2.tgz
should@0.4.2 ./node_modules/should
(cd clmgr; npm install; cd node_modules/mocha; npm install)
npm http GET https://registry.npmjs.org/flags
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/aws2js/0.6.2
npm http GET https://registry.npmjs.org/streamline/0.2.2
npm http 304 https://registry.npmjs.org/flags
npm http 304 https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/streamline/0.2.2
npm http 200 https://registry.npmjs.org/aws2js/0.6.2
npm http GET https://registry.npmjs.org/aws2js/-/aws2js-0.6.2.tgz
npm http 200 https://registry.npmjs.org/aws2js/-/aws2js-0.6.2.tgz
npm http GET https://registry.npmjs.org/libxmljs
npm http GET https://registry.npmjs.org/libxml-to-js
npm http GET https://registry.npmjs.org/mime-magic
npm http GET https://registry.npmjs.org/mime/1.2.4
npm http GET https://registry.npmjs.org/connect
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/mkdirp/0.3.0
npm http 304 https://registry.npmjs.org/connect
npm http 304 https://registry.npmjs.org/mime/1.2.4
npm http 200 https://registry.npmjs.org/mime-magic
npm http GET https://registry.npmjs.org/mime-magic/-/mime-magic-0.2.5.tgz
npm http 200 https://registry.npmjs.org/libxmljs
npm http GET https://registry.npmjs.org/libxmljs/-/libxmljs-0.5.3.tgz
npm http 200 https://registry.npmjs.org/libxml-to-js
npm http GET https://registry.npmjs.org/libxml-to-js/-/libxml-to-js-0.3.9.tgz
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/mkdirp/0.3.0
npm http 200 https://registry.npmjs.org/mime-magic/-/mime-magic-0.2.5.tgz
npm http 200 https://registry.npmjs.org/libxmljs/-/libxmljs-0.5.3.tgz
npm http 200 https://registry.npmjs.org/libxml-to-js/-/libxml-to-js-0.3.9.tgz
npm http GET https://registry.npmjs.org/formidable
npm http 304 https://registry.npmjs.org/formidable

> libxmljs@0.5.3 install /srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/libxmljs
> node-waf configure build

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 /opt/chef_node/lib/node
Checking for node prefix : ok /opt/chef_node
Checking for program xml2-config : /usr/bin/xml2-config
'configure' finished successfully (0.080s)
Waf: Entering directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/libxmljs/build'
[ 1/10] cxx: src/libxmljs.cc -> build/Release/src/libxmljs_1.o
[ 2/10] cxx: src/xml_attribute.cc -> build/Release/src/xml_attribute_1.o

> mime-magic@0.2.5 preinstall /srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic
> node make.js build

make[1]: Entering directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic'
tools/build.sh
file(1) is not installed
[ 3/10] cxx: src/xml_document.cc -> build/Release/src/xml_document_1.o
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... [ 4/10] cxx: src/xml_element.cc -> build/Release/src/xml_element_1.o
yes
hecking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for builtin ELF support... yes
checking for ELF core file support... yes
checking for file formats in man section 5... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... [ 5/10] cxx: src/xml_namespace.cc -> build/Release/src/xml_namespace_1.o
yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... [ 6/10] cxx: src/xml_node.cc -> build/Release/src/xml_node_1.o
gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
[ 7/10] cxx: src/xml_sax_parser.cc -> build/Release/src/xml_sax_parser_1.o
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... [ 8/10] cxx: src/xml_syntax_error.cc -> build/Release/src/xml_syntax_error_1.o
no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
[ 9/10] cxx: src/xml_xpath_context.cc -> build/Release/src/xml_xpath_context_1.o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 3458764513820540925
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ANSI C header files... (cached) yes
checking whether sys/types.h defines makedev... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for stdint.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/utime.h usability... no
checking sys/utime.h presence... no
checking for sys/utime.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for size_t... yes
checking for struct stat.st_rdev... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_gmtoff... no
checking for struct tm.tm_zone... no
checking for tm_zone in struct tm... yes
checking whether tzname is declared... yes
checking for tzname... yes
checking for tm_isdst in struct tm... yes
checking whether daylight is declared... yes
checking for daylight... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for mbstate_t... yes
checking for struct option in getopt... yes
checking for pid_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for int32_t... yes
checking for uint64_t... yes
checking for int64_t... yes
checking size of long long... 8
checking for gcc compiler warnings... yes
checking for mmap... yes
checking for strerror... yes
checking for strndup... yes
checking for strtoul... yes
checking for mbrtowc... yes
checking for mkstemp... yes
checking for utimes... yes
checking for utime... yes
checking for wcwidth... yes
checking for strtof... yes
checking for fork... yes
checking for getopt_long... yes
checking for asprintf... yes
checking for vasprintf... yes
checking for strlcpy... no
checking for strlcat... no
checking for getline... yes
checking for gzopen in -lz... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating magic/Makefile
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating python/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make[2]: Entering directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10'
make all-recursive
make[3]: Entering directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10'
Making all in src
make[4]: Entering directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10/src'
CC magic.lo
CC apprentice.lo
apprentice.c: In function 'mkdbname':
apprentice.c:2373:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
apprentice.c:2380:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
CC softmagic.lo
softmagic.c: In function 'mprint':
softmagic.c:378:4: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:382:4: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:399:4: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:404:8: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:421:4: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:425:4: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:436:3: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:446:4: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:453:4: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:465:3: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:474:3: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:483:7: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:492:7: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:506:4: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:510:4: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:526:4: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:530:4: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:546:3: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:560:5: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
softmagic.c:569:5: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
CC ascmagic.lo
CC encoding.lo
CC compress.lo
compress.c: In function 'uncompressbuf':
compress.c:402:7: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result]
compress.c:405:7: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result]
compress.c:411:3: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result]
CC is_tar.lo
CC readelf.lo
CC print.lo
CC fsmagic.lo
CC funcs.lo
CC apptype.lo
CC cdf.lo
CC cdf_time.lo
CC readcdf.lo
CC strlcpy.lo
CC strlcat.lo
CCLD libmagic.la
CC file.o
CCLD file
make[4]: Leaving directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10/src'
Making all in magic
make[4]: Entering directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10/magic'
../src/file -C -m magic
make[4]: Leaving directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10/magic'
Making all in tests
make[4]: Entering directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10/tests'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10/tests'
Making all in doc
make[4]: Entering directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10/doc'
sed -e s@__CSECTION__@1@g \
-e s@__FSECTION__@4@g \
-e s@__VERSION__@5.10@g \
-e s@__MAGIC__@/usr/local/share/misc/magic@g ./file.man > file.1
sed -e s@__CSECTION__@1@g \
-e s@__FSECTION__@4@g \
-e s@__VERSION__@5.10@g \
-e s@__MAGIC__@/usr/local/share/misc/magic@g ./magic.man > magic.4
sed -e s@__CSECTION__@1@g \
-e s@__FSECTION__@4@g \
-e s@__VERSION__@5.10@g \
-e s@__MAGIC__@/usr/local/share/misc/magic@g ./libmagic.man > libmagic.3
make[4]: Leaving directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10/doc'
Making all in python
make[4]: Entering directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10/python'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10/python'
make[4]: Entering directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10'
make[4]: Leaving directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10'
make[3]: Leaving directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10'
make[2]: Leaving directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic/src/file-5.10'
lt-file-5.10
magic file from /usr/local/share/misc/magic
make[1]: Leaving directory `/srv/nuccc/repo/clmgr/node_modules/aws2js/node_modules/mime-magic'

# node_modules/aws2js/node_modules/libxmljs/wscript:
from os import popen

srcdir = '.'
blddir = 'build'
VERSION = '0.0.1'

def set_options(opt):
opt.tool_options('compiler_cxx')

def configure(conf):
conf.check_tool('compiler_cxx')
conf.check_tool('node_addon')

conf.env.append_value("LIB_XML2", "xml2")
xml2_config = conf.find_program('xml2-config', var='XML2_CONFIG', mandatory=True)
xml2_includedir = popen("%s --cflags" % xml2_config).readline().strip()
conf.env.append_value("CPPPATH_XML2", [i.strip() for i in xml2_includedir.split('-I') if len(i) > 0])

def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
obj.cxxflags = ["-O3", "-g", "-Wall", "-Werror"]
obj.target = 'libxmljs'
obj.source = [
'src/libxmljs.cc',
'src/xml_attribute.cc',
'src/xml_document.cc',
'src/xml_element.cc',
'src/xml_namespace.cc',
'src/xml_node.cc',
'src/xml_sax_parser.cc',
'src/xml_syntax_error.cc',
'src/xml_xpath_context.cc',
]
obj.uselib = 'XML2'