Opened 16 years ago

Closed 16 years ago

Last modified 12 years ago

#17501 closed defect (worksforme)

python25 doesn't build universal on Leopard

Reported by: jeremyhu (Jeremy Huddleston Sequoia) 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 (7)

comment:1 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

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

comment:2 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Cc: mww@… added; mww removed

comment:3 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Owner: changed from mww to mww@…

comment:4 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

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
Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 16 years ago by jmroot (Joshua Root)

See also #17306, #16864, #16349, #14923, #13701.

comment:6 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed

comment:7 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.