Ticket #17501 (closed defect: worksforme)
python25 doesn't build universal on Leopard
| Reported by: | jeremyhu@… | Owned by: | mww@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.6.0 |
| Keywords: | universal | Cc: | mww@… |
| Port: | python25 |
Description
This takes care of configure using the right SDK:
Index: Portfile
===================================================================
--- Portfile (revision 42954)
+++ Portfile (working copy)
@@ -137,7 +137,7 @@
}
variant universal {
- configure.args-append --enable-universalsdk
+ configure.args-append --enable-universalsdk=${universal_sysroot}
}
livecheck.check regex
---
But then we get this:
/usr/bin/gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/opt/local/include -D__DARWIN_UNIX03 -DPy_BUILD_CORE -c ./Modules/posixmodule.c -o Modules/posixmodule.o ./Modules/posixmodule.c:3493:21: error: libutil.h: No such file or directory ./Modules/posixmodule.c: In function 'posix_openpty': ./Modules/posixmodule.c:3521: warning: implicit declaration of function 'openpty' ./Modules/posixmodule.c: In function 'posix_forkpty': ./Modules/posixmodule.c:3579: warning: implicit declaration of function 'forkpty' ./Modules/posixmodule.c:3493:21: error: libutil.h: No such file or directory ./Modules/posixmodule.c: In function 'posix_openpty': ./Modules/posixmodule.c:3521: warning: implicit declaration of function 'openpty' ./Modules/posixmodule.c: In function 'posix_forkpty': ./Modules/posixmodule.c:3579: warning: implicit declaration of function 'forkpty'
Change History
comment:4 Changed 4 years ago by jeremyhu@…
When I get rid of my /usr/local cruft, it builds more, but then fails because it's using /usr/bin/libtool instead of /opt/local/bin/glibtool
/usr/bin/libtool -o libpython2.5.dylib -dynamic \ -all_load libpython2.5.a -single_module \ -install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/libpython2.5.dylib \ -compatibility_version 2.5 \ -current_version 2.5 -lSystem -lSystemStubs -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/opt/local/lib /usr/bin/libtool: unknown option character `r' in: -arch Usage: /usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load] make: *** [libpython2.5.dylib] Error 1
Note: See
TracTickets for help on using
tickets.


I have /usr/local/include/libutil.h which is probably part of the problem...