Opened 12 years ago

Closed 12 years ago

#25913 closed defect (fixed)

py26-pyobjc, py27-pyobjc: universal variant fails

Reported by: ryandesign (Ryan Schmidt) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: Russell-Jones-OxPhys (Russell Jones)
Port: py26-pyobjc py27-pyobjc

Description

py26-pyobjc 2.3 doesn't want to build universal (tested on Snow Leopard):

:info:build libtool: link: /usr/bin/gcc-4.2 -isysroot / -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -arch x86_64 -arch i386 -o xmllint xmllint.o  ./.libs/libxml2.a -lm
:info:build ld: warning: in xmllint.o, file was built for unsupported file format which is not the architecture being linked (i386)
:info:build ld: warning: in ./.libs/libxml2.a, file was built for unsupported file format which is not the architecture being linked (i386)
:info:build Undefined symbols for architecture i386:
:info:build   "_main", referenced from:
:info:build       start in crt1.10.6.o
:info:build ld: symbol(s) not found for architecture i386
:info:build collect2: ld returned 1 exit status

2.2 built fine universal.

Attachments (1)

main.log (91.6 KB) - added by ryandesign (Ryan Schmidt) 12 years ago.

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by ryandesign (Ryan Schmidt)

Attachment: main.log added

comment:1 Changed 12 years ago by Russell-Jones-OxPhys (Russell Jones)

Cc: russell.jones@… added

Cc Me!

comment:2 Changed 12 years ago by macports-trac@…

This is still broken, but I was able to work around it by hand-editing the setup.py file at the top level of py26-pyobjc to set USE_SYSTEM_LIBXML to True instead of false. This requires that you install and activate the universal variant of the libxml port before building py26-pyobjc. If this turns out to be a usable fix, we'll need a new dependency to enforce this relationship.

comment:3 in reply to:  description Changed 12 years ago by wiml@…

Still broken. As before, it fails because it tries to build its own copy of libxml2 and gets the configuration wrong.

Ticket #29236 contains a patch which fixes this by making it use macports' version of libxml2. I mention this because #29236 was closed as a dup, so its fix for this bug might easily be overlooked.

comment:4 Changed 12 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to jmr@…

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

Port: py27-pyobjc added
Resolution: fixed
Status: newclosed
Summary: py26-pyobjc: universal variant failspy26-pyobjc, py27-pyobjc: universal variant fails
Note: See TracTickets for help on using tickets.