Opened 13 years ago

Closed 10 years ago

#29452 closed defect (fixed)

libplist does not build on OSX 10.4

Reported by: tael67@… Owned by: rmstonecipher@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: tiger Cc: ryandesign (Ryan Carsten Schmidt)
Port: libplist

Description

Rudloff:~ Pierre$ sudo port install libplist
--->  Computing dependencies for libplist
--->  Building libplist
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for libplist is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_libplist/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (2)

main.log (27.2 KB) - added by tael67@… 13 years ago.
main.2.log (34.2 KB) - added by rudloff@… 13 years ago.

Download all attachments as: .zip

Change History (10)

Changed 13 years ago by tael67@…

Attachment: main.log added

comment:1 Changed 13 years ago by rmstonecipher@…

Summary: libplist does not buildlibplist does not build on OSX 10.4 (x86)

Pierre,
I do not have any computers running OS X 10.4 but will see what I can do in a VM.
Please include your OS X version in future ticket summaries if you are not running the current release.

Cheers,
Ryan Stonecipher

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Seems to be because cmake insists on using an SDK all the time, and 10.4's gcc has some oddities when you use an SDK and also link to files outside the SDK. Adding explicit -lxml2 -lintl -liconv -lz to configure.ldflags may help IIRC. Should also check if cmake will accept -DCMAKE_OSX_SYSROOT=/ to make it not use an SDK, and add that to the portgroup if it works.

comment:3 Changed 13 years ago by rudloff@…

I have added the following to the portfile :

platform darwin 8 {
    configure.ldflags-append    \
                                -lxml2 \
                                -lintl \
                                -liconv \
                                -lz
    configure.args-append       -DCMAKE_OSX_SYSROOT=/
}

and now I get a new error.

Changed 13 years ago by rudloff@…

Attachment: main.2.log added

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Added the sysroot fix to the portgroup in r78651. That alone should fix the non-universal and universal on x86 cases.

Building universal on PowerPC Tiger still won't work without the explicit -l flags because you have to use the SDK in that case.

comment:5 in reply to:  3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Replying to rudloff@…:

and now I get a new error.

I get the same new error on both Tiger ppc and Tiger i386.

comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: rmstonecipher@… removed
Owner: changed from macports-tickets@… to rmstonecipher@…
Summary: libplist does not build on OSX 10.4 (x86)libplist does not build on OSX 10.4

Looks like a python error, so this is basically a further consequence of #27094 and would presumably be resolved by resolving that ticket.

comment:7 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

#27094 was resolved, and libplist has been updated to version 1.10. So is this still an issue?

comment:8 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

I confirm that libplist @1.10 builds fine on Tiger ppc.

Note: See TracTickets for help on using tickets.