Jakob Breivik Grimstveit
2012-Nov-28 09:31 UTC
Unable to compile Python 2.7.3 (latest) from ports on 9.1-RC3
I get this when compiling lang/python27 on a freshly upgraded 9.1-RC3: cc -shared -pthread -pthread -O2 -pipe -march=nocona -fno-strict-aliasing build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/_ctypes.o build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/callbacks.o build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/callproc.o build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/stgdict.o build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/cfield.o build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/libffi/src/prep_cif.o build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/libffi/src/closures.o build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/libffi/src/dlmalloc.o build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/libffi/src/x86/ffi64.o build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/libffi/src/x86/unix64.o build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/libffi/src/x86/ffi.o build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/libffi/src/x86/sysv.o -L/usr/local/lib -o build/lib.freebsd-9.1-RC3-amd64-2.7/_ctypes.so Python build finished, but the necessary bits to build these modules were not found: _tkinter dl imageop linuxaudiodev spwd sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. $ cat /etc/src.conf WITHOUT_ACCTWITHOUT_APMWITHOUT_ASSERT_DEBUGWITHOUT_ATWITHOUT_ATMWITHOUT_BLUETOOTHWITHOUT_CALENDARWITHOUT_CTMWITHOUT_CVSWITHOUT_DICTWITHOUT_FLOPPYWITHOUT_FREEBSD_UPDATEWITHOUT_GAMESWITHOUT_GPIBWITHOUT_GPIOWITHOUT_HTMLWITHOUT_IPFILTERWITHOUT_IPFWWITHOUT_IPXWITHOUT_KERNEL_SYMBOLSWITHOUT_LPRWITHOUT_NCPWITHOUT_NDISWITHOUT_NLSWITHOUT_NLS_CATALOGSWITHOUT_PPPWITHOUT_PROFILEWITHOUT_QUOTASWITHOUT_RCMDSWITHOUT_RCSWITHOUT_SENDMAILWITHOUT_SHAREDOCSWITHOUT_SYSINSTALLWITHOUT_WIRELESSWITHOUT_WPA_SUPPLICANT_EAPOL $ uname -a FreeBSD core2.grimstveit.no 9.1-RC3 FreeBSD 9.1-RC3 #4 r243646: Wed Nov 28 09:59:08 CET 2012 root at core2.grimstveit.no:/usr/obj/usr/src/sys/CORE2 amd64 All help is greatly appreciated. Thank you in advance! -- Vyrdsamt, Jakob Breivik Grimstveit | +47 4829 8152 http://grimstveit.no/jakob
Galati, Michael
2012-Nov-29 05:20 UTC
Unable to compile Python 2.7.3 (latest) from ports on 9.1-RC3
On Wed, Nov 28, 2012 at 1:31 AM, Jakob Breivik Grimstveit <jakob at grimstveit.no> wrote:> > I get this when compiling lang/python27 on a freshly upgraded 9.1-RC3: > > cc -shared -pthread -pthread -O2 -pipe -march=nocona -fno-strict-aliasing > > build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/_ctypes.o > > build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/callbacks.o > > build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/callproc.o > > build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/stgdict.o > > build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/cfield.o > > build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/libffi/src/prep_cif.o > > build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/libffi/src/closures.o > > build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/libffi/src/dlmalloc.o > > build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/libffi/src/x86/ffi64.o > > build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/libffi/src/x86/unix64.o > > build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/libffi/src/x86/ffi.o > > build/temp.freebsd-9.1-RC3-amd64-2.7/usr/ports/lang/python27/work/Python-2.7.3/Modules/_ctypes/libffi/src/x86/sysv.o > -L/usr/local/lib -o build/lib.freebsd-9.1-RC3-amd64-2.7/_ctypes.so > > Python build finished, but the necessary bits to build these modules were > not found: > _tkinter dl imageop > linuxaudiodev spwd sunaudiodev > To find the necessary bits, look in setup.py in detect_modules() for the > module's name. >(snip) Looks ok to me. You can run the python interpreter, right? sunaudiodev and linuxaudiodev, at least, you almost certainly don't need. spwd is for dealing with /etc/shadow (FreeBSD uses /etc/master.passwd instead, so it doesn't apply afaik). dl is deprecated in favour of ctypes (which you should have already). __tkinter is intentionally not included because it depends on X11; if you need it install x11-toolkits/py-tkinter. imageop is also deprecated, and would only work on i386; graphics/py-imaging is the replacement, apparently.