compiler errors - Mailing list psycopg
From | Alexandre Freire da Silva Osorio |
---|---|
Subject | compiler errors |
Date | |
Msg-id | c851d3ffbc49448c8ecaded3402860f3@serv031.corp.eldorado.org.br Whole thread Raw |
Responses |
Re: compiler errors
|
List | psycopg |
Hello,
When trying to install psycopg2 from source I’m facing some linker errors. Please could you give me a help to find out what’s going on?
Thanks in advance.
Alexandre
SRC_URI = "https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.6.1.tar.gz
Here’s the piece of the log where the error occurs:
x86_64-poky-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=build/tmp/sysroots/qemux86-64 -shared -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=build/tmp/sysroots/qemux86-64 -shared -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now -O2 -pipe -g -feliminate-unused-debug-types -fstack-protector-all -lpq -O2 -pipe -g -feliminate-unused-debug-types -fstack-protector-all -pie -fpie -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o build/temp.linux-x86_64-2.7/psycopg/green.o build/temp.linux-x86_64-2.7/psycopg/pqpath.o build/temp.linux-x86_64-2.7/psycopg/utils.o build/temp.linux-x86_64-2.7/psycopg/bytes_format.o build/temp.linux-x86_64-2.7/psycopg/connection_int.o build/temp.linux-x86_64-2.7/psycopg/connection_type.o build/temp.linux-x86_64-2.7/psycopg/cursor_int.o build/temp.linux-x86_64-2.7/psycopg/cursor_type.o build/temp.linux-x86_64-2.7/psycopg/diagnostics_type.o build/temp.linux-x86_64-2.7/psycopg/error_type.o build/temp.linux-x86_64-2.7/psycopg/lobject_int.o build/temp.linux-x86_64-2.7/psycopg/lobject_type.o build/temp.linux-x86_64-2.7/psycopg/notify_type.o build/temp.linux-x86_64-2.7/psycopg/xid_type.o build/temp.linux-x86_64-2.7/psycopg/adapter_asis.o build/temp.linux-x86_64-2.7/psycopg/adapter_binary.o build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o build/temp.linux-x86_64-2.7/psycopg/adapter_list.o build/temp.linux-x86_64-2.7/psycopg/adapter_pboolean.o build/temp.linux-x86_64-2.7/psycopg/adapter_pdecimal.o build/temp.linux-x86_64-2.7/psycopg/adapter_pint.o build/temp.linux-x86_64-2.7/psycopg/adapter_pfloat.o build/temp.linux-x86_64-2.7/psycopg/adapter_qstring.o build/temp.linux-x86_64-2.7/psycopg/microprotocols.o build/temp.linux-x86_64-2.7/psycopg/microprotocols_proto.o build/temp.linux-x86_64-2.7/psycopg/typecast.o -lpq -o build/lib.linux-x86_64-2.7/psycopg2/_psycopg.so
build/tmp/sysroots/qemux86-64/usr/lib/../lib/Scrt1.o: In function `_start':
build/tmp/work/core2-64-poky-linux/glibc/2.22-r0/git/csu/../sysdeps/x86_64/start.S:104: undefined reference to `main'
build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o: In function `psyco_register_type':
build/tmp/work/core2-64-poky-linux/python-psycopg2/2.6.1-r0/psycopg2-2.6.1/psycopg/psycopgmodule.c:148: undefined reference to `_PyArg_ParseTuple_SizeT'
build/tmp/work/core2-64-poky-linux/python-psycopg2/2.6.1-r0/psycopg2-2.6.1/psycopg/psycopgmodule.c:152: undefined reference to `_Py_NoneStruct'
build/tmp/work/core2-64-poky-linux/python-psycopg2/2.6.1-r0/psycopg2-2.6.1/psycopg/psycopgmodule.c:153: undefined reference to `PyType_IsSubtype'
build/tmp/work/core2-64-poky-linux/python-psycopg2/2.6.1-r0/psycopg2-2.6.1/psycopg/psycopgmodule.c:160: undefined reference to `PyType_IsSubtype'
build/tmp/work/core2-64-poky-linux/python-psycopg2/2.6.1-r0/psycopg2-2.6.1/psycopg/psycopgmodule.c:172: undefined reference to `_Py_NoneStruct'
build/tmp/work/core2-64-poky-linux/python-psycopg2/2.6.1-r0/psycopg2-2.6.1/psycopg/psycopgmodule.c:166: undefined reference to `PyExc_TypeError'
build/tmp/work/core2-64-poky-linux/python-psycopg2/2.6.1-r0/psycopg2-2.6.1/psycopg/psycopgmodule.c:166: undefined reference to `PyErr_SetString'
build/tmp/work/core2-64-poky-linux/python-psycopg2/2.6.1-r0/psycopg2-2.6.1/psycopg/psycopgmodule.c:156: undefined reference to `PyDict_New'
build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o: In function `psyco_connect':
build/tmp/work/core2-64-poky-linux/python-psycopg2/2.6.1-r0/psycopg2-2.6.1/psycopg/psycopgmodule.c:87: undefined reference to `_PyArg_ParseTupleAndKeywords_SizeT'
build/tmp/work/core2-64-poky-linux/python-psycopg2/2.6.1-r0/psycopg2-2.6.1/psycopg/psycopgmodule.c:95: undefined reference to `_Py_NoneStruct'
build/tmp/work/core2-64-poky-linux/python-psycopg2/2.6.1-r0/psycopg2-2.6.1/psycopg/psycopgmodule.c:109: undefined reference to `_PyObject_CallFunction_SizeT'
build/tmp/work/core2-64-poky-linux/python-psycopg2/2.6.1-r0/psycopg2-2.6.1/psycopg/psycopgmodule.c:107: undefined reference to `_PyObject_CallFunction_SizeT'
build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o: In function `psyco_errors_fill':
build/tmp/work/core2-64-poky-linux/python-psycopg2/2.6.1-r0/psycopg2-2.6.1/psycopg/psycopgmodule.c:504: undefined reference to `PyDict_SetItemString'
(...)