Opened 12 years ago

Closed 11 years ago

#37830 closed defect (fixed)

VLC @2.0.5_1 fails to upgrade ld: unknown option: -force_load

Reported by: nonstop.server@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: VLC

Description

Upgrading port VLC from 2.0.5_0 to 2.0.5_1 fails with error message:

CCLD     libdolby_surround_decoder_plugin.la
/usr/bin/nm: no name list
/usr/bin/nm: no name list
ld: unknown option: -force_load
collect2: ld returned 1 exit status
make[4]: *** [libspatializer_plugin.la] Error 1

Version Information:

Mac OS Version:
ProductName:	Mac OS X
ProductVersion:	10.5.8
BuildVersion:	9L31a
Darwin 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

Xcode Version:
Xcode 3.1.4
Component versions: DevToolsCore-1204.0; DevToolsSupport-1186.0
BuildVersion: 9M2809

Macports Version:
Version: 2.1.2

Attachments (2)

main.log.bz2 (15.0 KB) - added by nonstop.server@… 12 years ago.
Portfile-VLC.diff (970 bytes) - added by nonstop.server@… 12 years ago.

Download all attachments as: .zip

Change History (11)

Changed 12 years ago by nonstop.server@…

Attachment: main.log.bz2 added

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

Cc: jeremyhu@… removed
Owner: changed from macports-tickets@… to jeremyhu@…

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

Sigh.

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

The only change between the first revision of 2.0.5 (r101233) and the current revision (r102174) is a revision bump and compiler choice changes:

http://trac.macports.org/changeset?reponame=&new=102174%40trunk%2Fdports%2Fmultimedia%2FVLC%2FPortfile&old=101233%40trunk%2Fdports%2Fmultimedia%2FVLC%2FPortfile

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

It looks like you're falling back on /opt/local/bin/gcc-apple-4.0 to build ...

comment:5 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

r102268

Leaving open to remind me to revert after base 2.2 is out.

comment:6 in reply to:  3 Changed 12 years ago by nonstop.server@…

Replying to jeremyhu@…:

My apologies, but it seems I did not provide you with all relevant information when filing this ticket.
I only realized this after seeing your comment on the compiler choice changes.
I failed to mention that on top of latest VLC Portfile I run a patch to enable the use of clang 3.1 instead of version 3.0.
The patch with additional changes has been attached to this ticket for your inspection.

Changed 12 years ago by nonstop.server@…

Attachment: Portfile-VLC.diff added

comment:7 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

With the new blacklisting, you should be able to set those preferences yourself (at your own risk) by setting default_compilers in macports.conf. For example, if you don't like the current options for Leopard:

{gcc-4.2 apple-gcc-4.2 gcc-4.0 macports-clang-3.2}

You can add this to /opt/local/etc/macports/macports.conf to prefer clang:

default_compilers macports-clang-3.2 apple-gcc-4.2 gcc-4.2 gcc-4.0

Note that many ports just check for "clang" rather than all the options, and this feature is a "developer" feature which is not recommended unless you like finding and fixing all the problems it uncovers ;)

comment:8 in reply to:  7 Changed 12 years ago by nonstop.server@…

Replying to jeremyhu@…:

Thank you for the tip, I'll try using this feature.

comment:9 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.