id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc
56,pysyck install problem,anonymous,xi,"I installed the patched unofficial syck 0.61 and the pysyck 0.61.2  using  python 2.5 on a mac osx 10.4.8 on a G4 powerbook.

when i try to import pysyck into python2.5 (installed via fink) I get the following error:

{{{
In [1]: import syck

<type 'exceptions.ImportError'>           Traceback (most recent call last)

/Users/cems/<ipython console> in <module>()

/sw/lib/python2.5/site-packages/syck/__init__.py in <module>()
    100 
    101 
--> 102 from _syck import *
    103 from loaders import *
    104 from dumpers import *

<type 'exceptions.ImportError'>: dlopen(/sw/lib/python2.5/site-packages/_syck.so, 2): Symbol not found: _syck_emit_map
  Referenced from: /sw/lib/python2.5/site-packages/_syck.so
  Expected in: dynamic lookup

}}}

The install of pysyck does not produce error messages but the make of the patched syck does produce warnings.

here is the install output from the pysyck and syck installs:
{{{
 python setup.py install
running install
running build
running build_py
running build_ext
checking for syck.h
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/sw/include/python2.5 -c ./_check_syck.c -o ./_check_syck.o
checking for libsyck.a
gcc ./_check_syck.o -lsyck -o ./_check_syck
checking syck version
syck version: 0.61
running install_lib
running install_egg_info
Removing /sw/lib/python2.5/site-packages/PySyck-0.61.2-py2.5.egg-info
Writing /sw/lib/python2.5/site-packages/PySyck-0.61.2-py2.5.egg-info

}}}

here is the make and install of syck

{{{

make
make  all-recursive
Making all in lib
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -MT emitter.o -MD -MP -MF "".deps/emitter.Tpo"" -c -o emitter.o emitter.c; \
then mv -f "".deps/emitter.Tpo"" "".deps/emitter.Po""; else rm -f "".deps/emitter.Tpo""; exit 1; fi
emitter.c: In function 'syck_base64enc':
emitter.c:32: warning: incompatible implicit declaration of built-in function 'malloc'
emitter.c: In function 'syck_new_emitter':
emitter.c:110: warning: incompatible implicit declaration of built-in function 'malloc'
emitter.c: In function 'syck_emitter_clear':
emitter.c:271: warning: incompatible implicit declaration of built-in function 'malloc'
emitter.c: In function 'syck_emit':
emitter.c:372: warning: incompatible implicit declaration of built-in function 'malloc'
emitter.c:405: warning: incompatible implicit declaration of built-in function 'malloc'
emitter.c:423: warning: incompatible implicit declaration of built-in function 'malloc'
emitter.c: In function 'syck_emit_indent':
emitter.c:506: warning: incompatible implicit declaration of built-in function 'malloc'
emitter.c: In function 'syck_emit_item':
emitter.c:1136: warning: incompatible implicit declaration of built-in function 'malloc'
emitter.c: In function 'syck_emitter_mark_node':
emitter.c:1259: warning: incompatible implicit declaration of built-in function 'malloc'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -MT handler.o -MD -MP -MF "".deps/handler.Tpo"" -c -o handler.o handler.c; \
then mv -f "".deps/handler.Tpo"" "".deps/handler.Po""; else rm -f "".deps/handler.Tpo""; exit 1; fi
handler.c: In function 'syck_xprivate':
handler.c:149: warning: incompatible implicit declaration of built-in function 'malloc'
handler.c: In function 'syck_taguri':
handler.c:159: warning: incompatible implicit declaration of built-in function 'malloc'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -MT node.o -MD -MP -MF "".deps/node.Tpo"" -c -o node.o node.c; \
then mv -f "".deps/node.Tpo"" "".deps/node.Po""; else rm -f "".deps/node.Tpo""; exit 1; fi
node.c: In function 'syck_alloc_node':
node.c:20: warning: incompatible implicit declaration of built-in function 'malloc'
node.c: In function 'syck_alloc_map':
node.c:53: warning: incompatible implicit declaration of built-in function 'malloc'
node.c: In function 'syck_alloc_seq':
node.c:72: warning: incompatible implicit declaration of built-in function 'malloc'
node.c: In function 'syck_alloc_str':
node.c:90: warning: incompatible implicit declaration of built-in function 'malloc'
node.c: In function 'syck_new_str2':
node.c:113: warning: incompatible implicit declaration of built-in function 'malloc'
node.c: In function 'syck_replace_str2':
node.c:137: warning: incompatible implicit declaration of built-in function 'malloc'
node.c: In function 'syck_map_empty':
node.c:192: warning: incompatible implicit declaration of built-in function 'malloc'
node.c: In function 'syck_seq_empty':
node.c:316: warning: incompatible implicit declaration of built-in function 'malloc'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -MT syck.o -MD -MP -MF "".deps/syck.Tpo"" -c -o syck.o syck.c; \
then mv -f "".deps/syck.Tpo"" "".deps/syck.Po""; else rm -f "".deps/syck.Tpo""; exit 1; fi
syck.c: In function 'syck_assert':
syck.c:26: warning: incompatible implicit declaration of built-in function 'abort'
syck.c: In function 'syck_strndup':
syck.c:35: warning: incompatible implicit declaration of built-in function 'malloc'
syck.c: In function 'syck_parser_reset_cursor':
syck.c:122: warning: incompatible implicit declaration of built-in function 'malloc'
syck.c: In function 'syck_new_parser':
syck.c:159: warning: incompatible implicit declaration of built-in function 'malloc'
syck.c: In function 'syck_parser_file':
syck.c:302: warning: incompatible implicit declaration of built-in function 'malloc'
syck.c: In function 'syck_parser_str':
syck.c:321: warning: incompatible implicit declaration of built-in function 'malloc'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -MT syck_st.o -MD -MP -MF "".deps/syck_st.Tpo"" -c -o syck_st.o syck_st.c; \
then mv -f "".deps/syck_st.Tpo"" "".deps/syck_st.Po""; else rm -f "".deps/syck_st.Tpo""; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -MT gram.o -MD -MP -MF "".deps/gram.Tpo"" -c -o gram.o gram.c; \
then mv -f "".deps/gram.Tpo"" "".deps/gram.Po""; else rm -f "".deps/gram.Tpo""; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -MT bytecode.o -MD -MP -MF "".deps/bytecode.Tpo"" -c -o bytecode.o bytecode.c; \
then mv -f "".deps/bytecode.Tpo"" "".deps/bytecode.Po""; else rm -f "".deps/bytecode.Tpo""; exit 1; fi
bytecode.re: In function 'sycklex_bytecode_utf8':
bytecode.re:326: warning: incompatible implicit declaration of built-in function 'malloc'
bytecode.re:346: warning: incompatible implicit declaration of built-in function 'malloc'
bytecode.re:354: warning: incompatible implicit declaration of built-in function 'malloc'
bytecode.re:425: warning: incompatible implicit declaration of built-in function 'malloc'
bytecode.re: In function 'get_inline':
bytecode.re:497: warning: incompatible implicit declaration of built-in function 'malloc'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -MT yaml2byte.o -MD -MP -MF "".deps/yaml2byte.Tpo"" -c -o yaml2byte.o yaml2byte.c; \
then mv -f "".deps/yaml2byte.Tpo"" "".deps/yaml2byte.Po""; else rm -f "".deps/yaml2byte.Tpo""; exit 1; fi
yaml2byte.c: In function 'bytestring_alloc':
yaml2byte.c:40: warning: incompatible implicit declaration of built-in function 'malloc'
yaml2byte.c: In function 'syck_yaml2byte_handler':
yaml2byte.c:142: warning: incompatible implicit declaration of built-in function 'malloc'
yaml2byte.c: In function 'syck_yaml2byte':
yaml2byte.c:230: warning: incompatible implicit declaration of built-in function 'malloc'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -MT token.o -MD -MP -MF "".deps/token.Tpo"" -c -o token.o token.c; \
then mv -f "".deps/token.Tpo"" "".deps/token.Po""; else rm -f "".deps/token.Tpo""; exit 1; fi
token.re: In function 'sycklex_yaml_utf8':
token.re:528: warning: incompatible implicit declaration of built-in function 'malloc'
token.re:641: warning: incompatible implicit declaration of built-in function 'malloc'
token.re:729: warning: incompatible implicit declaration of built-in function 'malloc'
token.re:834: warning: incompatible implicit declaration of built-in function 'malloc'
token.re:920: warning: incompatible implicit declaration of built-in function 'malloc'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g -O2 -MT implicit.o -MD -MP -MF "".deps/implicit.Tpo"" -c -o implicit.o implicit.c; \
then mv -f "".deps/implicit.Tpo"" "".deps/implicit.Po""; else rm -f "".deps/implicit.Tpo""; exit 1; fi
implicit.re: In function 'syck_type_id_to_uri':
implicit.re:178: warning: incompatible implicit declaration of built-in function 'malloc'
implicit.re:191: warning: incompatible implicit declaration of built-in function 'malloc'
rm -f libsyck.a
ar cru libsyck.a emitter.o handler.o node.o syck.o syck_st.o gram.o bytecode.o yaml2byte.o token.o implicit.o 
ranlib libsyck.a
Making all in tests
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib    -g -O2 -MT Basic.o -MD -MP -MF "".deps/Basic.Tpo"" -c -o Basic.o Basic.c; \
then mv -f "".deps/Basic.Tpo"" "".deps/Basic.Po""; else rm -f "".deps/Basic.Tpo""; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib    -g -O2 -MT CuTest.o -MD -MP -MF "".deps/CuTest.Tpo"" -c -o CuTest.o CuTest.c; \
then mv -f "".deps/CuTest.Tpo"" "".deps/CuTest.Po""; else rm -f "".deps/CuTest.Tpo""; exit 1; fi
gcc  -g -O2  -L../lib -o test-basic  Basic.o CuTest.o -lsyck 
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib    -g -O2 -MT Parse.o -MD -MP -MF "".deps/Parse.Tpo"" -c -o Parse.o Parse.c; \
then mv -f "".deps/Parse.Tpo"" "".deps/Parse.Po""; else rm -f "".deps/Parse.Tpo""; exit 1; fi
gcc  -g -O2  -L../lib -o test-parse  Parse.o CuTest.o -lsyck 
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib    -g -O2 -MT YTS.o -MD -MP -MF "".deps/YTS.Tpo"" -c -o YTS.o YTS.c; \
then mv -f "".deps/YTS.Tpo"" "".deps/YTS.Po""; else rm -f "".deps/YTS.Tpo""; exit 1; fi
YTS.c: In function 'syck_copy_handler':
YTS.c:44: warning: incompatible implicit declaration of built-in function 'malloc'
YTS.c: In function 'CuStreamCompare':
YTS.c:143: warning: incompatible implicit declaration of built-in function 'malloc'
gcc  -g -O2  -L../lib -o test-yts  YTS.o CuTest.o -lsyck 
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib    -g -O2 -MT Emit.o -MD -MP -MF "".deps/Emit.Tpo"" -c -o Emit.o Emit.c; \
then mv -f "".deps/Emit.Tpo"" "".deps/Emit.Po""; else rm -f "".deps/Emit.Tpo""; exit 1; fi
gcc  -g -O2  -L../lib -o test-emit  Emit.o CuTest.o -lsyck 
make[2]: Nothing to be done for `all-am'.


make install
Making install in lib
test -z ""/usr/local/lib"" || mkdir -p -- ""/usr/local/lib""
 /sw/bin/ginstall -c -m 644 'libsyck.a' '/usr/local/lib/libsyck.a'
 ranlib '/usr/local/lib/libsyck.a'
test -z ""/usr/local/include"" || mkdir -p -- ""/usr/local/include""
 /sw/bin/ginstall -c -m 644 'syck.h' '/usr/local/include/syck.h'
 /sw/bin/ginstall -c -m 644 'syck_st.h' '/usr/local/include/syck_st.h'
Making install in tests
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.

}}}",defect,new,normal,pysyck,normal,,,
