Re: libavcodec60 fails to build

Scott Hannahs via Fink-users <[email protected]>
Newsgroups gmane.os.apple.fink.general
Message-ID <[email protected]>
>> On Nov 20, 2023, at 5:01 AM, Hanspeter Niederstrasser <[email protected]> wrote:
>> 
>> On 11/19/23 5:20 PM, Scott Hannahs via Fink-users wrote:
>>> MacOS Ventura 13.6.1/Xcode 15.0.1
>>> Fink tells me that I have no Xcode, but Xcode 15.0.1 is installed.  Just not recognized?
>>> -Scott
>>> Also include the following system information:
>>> Package manager version: 0.45.99.git
>>> Distribution version: selfupdate-git Sat Nov 18 12:09:01 2023, 13.0, x86_64
>>> Trees: local/injected local/main stable/main
>>> No recognized Xcode.app installed
>>> Xcode command-line tools: 15.0.0.0.1.1694021235
>>> Max. Fink build jobs:  1
>> 
>> Not sure yet on the duplicate symbol problem, but for the missing Xcode.app:
>> 
>> run `fink-virtual-pkgs --debug` and in the output near the top should be some debugging info as to what Fink can and can't find about Xcode.app versioning that Fink uses to create the virtual package representing Xcode.app
>> 
>> You can also run these two commands to get the expected version directly:
>> xcode-select -print-path
>> defaults read `xcode-select -print-path 2>/dev/null`/../version CFBundleShortVersionString
>> 
>> And this one is used to find the Command Line Tools:
>> pkgutil --pkg-info com.apple.pkg.CLTools_Executables
>> 
>> Hanspeter


Ok, so the problem is that something is weird with Xcode 15.0.0 and 15.0.1 causing this multiple symbol definition.  Homebrew seems to solve it using the —ld_classic option to the linker.

This error seems to be related to Xcode 15 for versions after beta 2 according to homebrew.
https://github.com/homebrew-ffmpeg/homebrew-ffmpeg/issues/140


Thus assuming that this will be fixed in later versions of Xcode (a wild assumption), I would like to add the --ld_classic option to the configure option --extra-ldflags for Xcode 15.0 and 15.0.1.  There are shell script conditionals but I am not sure how to do a conditional setting of the fink ConfigureParams value.


I think this is the least invasive way to deal with this problem with Xcode.  I am not sure that we want to use -ld_classic on previous versions of Xcode. I can write a shell script conditional to set LDFLAGS but that does not seem to work with the configure script.

-Scott

_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.