消息 [69152]
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| 作者 | mmokrejs |
|---|---|
| 收信人 | mmokrejs |
| 日期 | 2008-07-03.00:07:41 |
| SpamBayes Score | 0.00687954 |
| Marked as misclassified | 否 |
| Message-id | <1215043666.75.0.766151712273.issue3265@psf.upfronthosting.co.za> |
| In-reply-to |
| 内容 | |
|---|---|
Hi, when building on Solaris 2.6 with gcc I get the following error: building '_ctypes' extension gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/./Include -Ibuild/temp.solaris-2.6-sun4u-2.5/libffi/include -Ibuild/temp.solaris-2.6-sun4u-2.5/libffi -I/usr/scratch/Python-2.5.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/usr/scratch/Python-2.5.2/Include -I/usr/scratch/Python-2.5.2 -c /usr/scratch/Python-2.5.2/Modules/_ctypes/_ctypes.c -o build/temp.solaris-2.6-sun4u-2.5/usr/scratch/Python-2.5.2/Modules/_ctypes/_ctypes.o gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/./Include -Ibuild/temp.solaris-2.6-sun4u-2.5/libffi/include -Ibuild/temp.solaris-2.6-sun4u-2.5/libffi -I/usr/scratch/Python-2.5.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/usr/scratch/Python-2.5.2/Include -I/usr/scratch/Python-2.5.2 -c /usr/scratch/Python-2.5.2/Modules/_ctypes/callbacks.c -o build/temp.solaris-2.6-sun4u-2.5/usr/scratch/Python-2.5.2/Modules/_ctypes/callbacks.o gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/./Include -Ibuild/temp.solaris-2.6-sun4u-2.5/libffi/include -Ibuild/temp.solaris-2.6-sun4u-2.5/libffi -I/usr/scratch/Python-2.5.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/usr/scratch/Python-2.5.2/Include -I/usr/scratch/Python-2.5.2 -c /usr/scratch/Python-2.5.2/Modules/_ctypes/callproc.c -o build/temp.solaris-2.6-sun4u-2.5/usr/scratch/Python-2.5.2/Modules/_ctypes/callproc.o /usr/scratch/Python-2.5.2/Modules/_ctypes/callproc.c: In function `_CallProc': /usr/scratch/Python-2.5.2/Modules/_ctypes/callproc.c:921: warning: implicit declaration of function `alloca' gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/./Include -Ibuild/temp.solaris-2.6-sun4u-2.5/libffi/include -Ibuild/temp.solaris-2.6-sun4u-2.5/libffi -I/usr/scratch/Python-2.5.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/usr/scratch/Python-2.5.2/Include -I/usr/scratch/Python-2.5.2 -c /usr/scratch/Python-2.5.2/Modules/_ctypes/stgdict.c -o build/temp.solaris-2.6-sun4u-2.5/usr/scratch/Python-2.5.2/Modules/_ctypes/stgdict.o gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/./Include -Ibuild/temp.solaris-2.6-sun4u-2.5/libffi/include -Ibuild/temp.solaris-2.6-sun4u-2.5/libffi -I/usr/scratch/Python-2.5.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/usr/scratch/Python-2.5.2/Include -I/usr/scratch/Python-2.5.2 -c /usr/scratch/Python-2.5.2/Modules/_ctypes/cfield.c -o build/temp.solaris-2.6-sun4u-2.5/usr/scratch/Python-2.5.2/Modules/_ctypes/cfield.o gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/./Include -Ibuild/temp.solaris-2.6-sun4u-2.5/libffi/include -Ibuild/temp.solaris-2.6-sun4u-2.5/libffi -I/usr/scratch/Python-2.5.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/usr/scratch/Python-2.5.2/Include -I/usr/scratch/Python-2.5.2 -c /usr/scratch/Python-2.5.2/Modules/_ctypes/malloc_closure.c -o build/temp.solaris-2.6-sun4u-2.5/usr/scratch/Python-2.5.2/Modules/_ctypes/malloc_closure.o /usr/scratch/Python-2.5.2/Modules/_ctypes/malloc_closure.c: In function `more_core': /usr/scratch/Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared (first use in this function) /usr/scratch/Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: (Each undeclared identifier is reported only once /usr/scratch/Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: for each function it appears in.) building '_ctypes_test' extension gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/./Include -I. -IInclude -I./Include -I/usr/local/include -I/usr/scratch/Python-2.5.2/Include -I/usr/scratch/Python-2.5.2 -c /usr/scratch/Python-2.5.2/Modules/_ctypes/_ctypes_test.c -o build/temp.solaris-2.6-sun4u-2.5/usr/scratch/Python-2.5.2/Modules/_ctypes/_ctypes_test.o gcc -shared -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes build/temp.solaris-2.6-sun4u-2.5/usr/scratch/Python-2.5.2/Modules/_ctypes/_ctypes_test.o -L/usr/local/lib -o build/lib.solaris-2.6-sun4u-2.5/_ctypes_test.so Let me add that I see -fPIC in the top-level Makefile but do not know why -static is not in the same variable as well. Anyway, it is not a shared library problem I think as I already recompiled my bzip2, openssl and ncurses libs with "-shared -fpic". ;-) |
|
| 历史 | |||
|---|---|---|---|
| 日期 | 用户 | 动作 | 参数 |
| 2008-07-03 00:07:47 | mmokrejs | 修改 | spambayes_score: 0.00687954 -> 0.00687954 recipients: + mmokrejs |
| 2008-07-03 00:07:46 | mmokrejs | 修改 | spambayes_score: 0.00687954 -> 0.00687954 messageid: <1215043666.75.0.766151712273.issue3265@psf.upfronthosting.co.za> |
| 2008-07-03 00:07:45 | mmokrejs | 链接 | issue3265 messages |
| 2008-07-03 00:07:42 | mmokrejs | 创建 | |