Skip to content

Instantly share code, notes, and snippets.

@vzarytovskii
Created June 25, 2012 12:20
Show Gist options
  • Save vzarytovskii/2988267 to your computer and use it in GitHub Desktop.
Save vzarytovskii/2988267 to your computer and use it in GitHub Desktop.
--- ~/dbd-pg-hstore » make test
cp lib/Pg/hstore.pm blib/lib/Pg/hstore.pm
/opt/local/bin/perl /opt/local/lib/perl5/5.12.4/ExtUtils/xsubpp -typemap /opt/local/lib/perl5/5.12.4/ExtUtils/typemap hstore.xs > hstore.xsc && mv hstore.xsc hstore.c
/usr/bin/clang -c -I. -pipe -O2 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -fstack-protector -I/opt/local/include -O3 -DVERSION=\"1.02\" -DXS_VERSION=\"1.02\" "-I/opt/local/lib/perl5/5.12.4/darwin-thread-multi-2level/CORE" hstore.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
hstore.xs:70:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
while( ent = hv_iternext(hash) ) {
~~~~^~~~~~~~~~~~~
hstore.xs:70:13: note: place parentheses around the assignment to silence this warning
while( ent = hv_iternext(hash) ) {
^
( )
hstore.xs:70:13: note: use '==' to turn this assignment into an equality comparison
while( ent = hv_iternext(hash) ) {
^
==
hstore.xs:216:3: warning: expression result unused [-Wunused-value]
hv_store_ent(hash, svkey, svval, 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/lib/perl5/5.12.4/darwin-thread-multi-2level/CORE/hv.h:413:6: note: expanded from macro 'hv_store_ent'
((HE *) hv_common((hv), (keysv), NULL, 0, 0, HV_FETCH_ISSTORE, \
^
2 warnings generated.
Running Mkbootstrap for Pg::hstore ()
chmod 644 hstore.bs
rm -f blib/arch/auto/Pg/hstore/hstore.bundle
env MACOSX_DEPLOYMENT_TARGET=10.3 /usr/bin/clang -L/opt/local/lib -bundle -undefined dynamic_lookup -fstack-protector hstore.o -o blib/arch/auto/Pg/hstore/hstore.bundle \
\
chmod 755 blib/arch/auto/Pg/hstore/hstore.bundle
cp hstore.bs blib/arch/auto/Pg/hstore/hstore.bs
chmod 644 blib/arch/auto/Pg/hstore/hstore.bs
PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/decode-more.t .... ok
t/encode-decode.t .. ok
t/invalid_use.t .... ok
t/Pg-hstore.t ...... 1/67 perl(6142) malloc: *** error for object 0x7fcc79498f18: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
t/Pg-hstore.t ...... Failed 58/67 subtests
t/utf8.t ........... ok
Test Summary Report
-------------------
t/Pg-hstore.t (Wstat: 6 Tests: 9 Failed: 0)
Non-zero wait status: 6
Parse errors: Bad plan. You planned 67 tests but ran 9.
Files=5, Tests=85, 1 wallclock secs ( 0.04 usr 0.01 sys + 0.19 cusr 0.02 csys = 0.26 CPU)
Result: FAIL
Failed 1/5 test programs. 0/85 subtests failed.
make: *** [test_dynamic] Error 255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment