DragonFlyBSD / DPorts

The dedicated application build system for DragonFly BSD
Other
89 stars 44 forks source link

lang/python27 fails to build #107

Closed kworr closed 10 years ago

kworr commented 10 years ago
--- libpython2.7.so ---
Modules/posixmodule.o: In function `posix_tmpnam':
posixmodule.c:(.text+0x3d88): warning: warning: tmpnam() possibly used unsafely; consider using mkstemp()
--- libpython2.7.a ---
ar rc libpython2.7.a Modules/threadmodule.o  Modules/signalmodule.o  Modules/posixmodule.o  Modules/errnomodule.o  Modules/pwdmodule.o  Modules/_sre.o  Modules/_codecsmodule.o  Modules/_weakref.o  Modules/zipimport.o  Modules/symtablemodule.o  Modules/xxsubtype.o
--- libpython2.7.so ---
Modules/posixmodule.o: In function `posix_tempnam':
posixmodule.c:(.text+0x66a): warning: warning: tempnam() possibly used unsafely; consider using mkstemp()
--- libpython2.7.a ---
ranlib libpython2.7.a
--- python ---
cc -pthread -Wl,-rpath,/usr/lib:/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib -L/usr/local/lib -Wl,--export-dynamic -o python  Modules/python.o  -L. -lpython2.7 -ldl -L/usr/local/lib -lintl -lutil   -lm
/usr/local/lib/libpython2.7.so: warning: warning: tmpnam() possibly used unsafely; consider using mkstemp()
/usr/local/lib/libpython2.7.so: warning: warning: tempnam() possibly used unsafely; consider using mkstemp()
--- pybuilddir.txt ---
LD_LIBRARY_PATH=/tmp/ports/lang/python27/work/Python-2.7.8 ./python -E -S -m sysconfig --generate-posix-vars
--- sharedmods ---
cc: error: _struct.c: No such file or directory
cc: fatal error: no input files
compilation terminated.
jrmarino commented 10 years ago

yet somehow python27 (the indirect dependency for 14,000 packages) is in the repository...

jrmarino commented 10 years ago

Explicitly: there's a binary package for it, so it builds.

kworr commented 10 years ago

I prefer building from source and it was built correctly as I have version python27-2.7.8 installed. But upgrading fails constantly... The final part of the log is:

compilation terminated.
cc: error: ossaudiodev.c: No such file or directory
cc: fatal error: no input files
compilation terminated.
building dbm using ndbm
error: [Errno 2] No such file or directory: '/tmp/ports/lang/python27/work/Modules/_ctypes/libffi'
*** [sharedmods] Error code 1

make[2]: stopped in /tmp/ports/lang/python27/work/Python-2.7.8
1 error

make[2]: stopped in /tmp/ports/lang/python27/work/Python-2.7.8
jrmarino commented 10 years ago

I don't get your point. The package builders build from source, ergo it builds in a clean environment. Dports was always geared for either binary packages or building local repositories in poudriere. Building on a dirty live system isn't a priority. The issues could be anything and almost always specific to that particular machine.

kworr commented 10 years ago

Yeah... Probably this is what I was missing. Removing python from machine before the build fixes everything...

jrmarino commented 10 years ago

yeah, who knows. We don't have enough manpower to troubleshoot live systems.

kworr commented 10 years ago

Heh, ENOTIME either. I'm closing this for now until I'll get some time to come back with the patch.