pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: audio/csound6 and devel/sdl12-compat failing on Darwin (macOS 14.0)



Am Freitag 27 Oktober 2023 um 5:11:54 -0700, schrieb Jason Bacon 2,4K:
> On 10/26/23 11:10, Manuel Kuklinski wrote:
> > Am Samstag 21 Oktober 2023 um 10:29:09 +0200, schrieb Manuel Kuklinski 17K:
> > > Hi!
> > > 
> > > Sorry to bother you but I'm in "desperate" need of sdl12-compat for
> > > audio/din(audio/din with only devel/SDL fails to produce any graphics on
> > > Darwin.
> > > 
> > > I tested this months ago and could produce a working version of din with
> > > sdl12-compat, after mailing back and forth with Santosh) and
> > > audio/csound6, which ist currently at version 6.15.0 and I have the
> > > strong believe that a bump to version 6.18.1 could solve the build
> > > problems at Darwin on a M1.
> > > 
> > > - - - - - - - - - - %< - - - - - - - - - -
> > > 
> > > => Automatic manual page handling
> > > => Generating post-install file lists
> > > => Checking file-check results for sdl12-compat-1.2.52nb3
> > > => Checking for non-existent script interpreters in sdl12-compat-1.2.52nb3
> > > => Checking file permissions in sdl12-compat-1.2.52nb3
> > > => Checking for missing run-time search paths in sdl12-compat-1.2.52nb3
> > > ERROR: lib/libSDL-1.2.0.dylib: relative library path: libSDL-1.2.0.dylib
> > > ERROR: lib/libSDL-1.2.0.dylib: missing library: libSDL-1.2.0.dylib
> > > *** Error code 1
> > > 
> > > Stop.
> > > bmake[2]: stopped in /Users/mk/pkgsrc/devel/sdl12-compat
> > > *** Error code 1
> > > 
> > > Stop.
> > > bmake[1]: stopped in /Users/mk/pkgsrc/devel/sdl12-compat
> > > *** Error code 1
> > > 
> > > Stop.
> > > bmake: stopped in /Users/mk/pkgsrc/devel/sdl12-compat
> > 
> > Hi Adam & Jason,
> > 
> > I'm directly adressing you, since you were so kind and helped me, with
> > either tips and explanations (from which I could learn about Darwin,
> > cmake, pkgsrc and csound) or directly with a patch, resolving the
> > mentioned problems with csound. I don't want to overuse your generous
> > help, but could you maybe give me hint / tip, where to look for the
> > mentioned, second problem with devel/sdl12-compat? I have absolutely no
> > clue...
> > 
> > If I, respectively you could resolve this last issue, I could continue
> > with my audio experimentations and I'd take notes for possible future
> > problems in pkgsrc...
> > 
> > Kind regards.
> 
> Always happy to help out a hard-working maintainer...
> 
> The "missing run-time search paths" makes me suspect it's in need of
> -install_name in the link command. Another way macOS is "special".
> 
> Here's an example of how building dylibs differs from BSD/Linux shared
> objects:
> 
> https://github.com/outpaddling/libxtend/blob/main/Makefile

Hi Jason!

O.K., I could resolve the mentioned errors with devel/sdl12-compat after
setting PKG_DEVELOPER=NO in /opt/pkg/etc/mk.conf.local; I then switched
to audio/din, started bmake install but stumbled upon a lang/python311
PLIST error:

- - - - - - - - - - %< - - - - - - - - - -

=> Generating post-install file lists
pkg_create: can't stat `/Users/mk/pkgsrc/lang/python311/work/.destdir/opt/pkg/lib/python3.11/lib-dynload/_curses.so'
pkg_create: can't stat `/Users/mk/pkgsrc/lang/python311/work/.destdir/opt/pkg/lib/python3.11/lib-dynload/_curses_panel.so'
=> Checking file-check results for python311-3.11.6nb2
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /Users/mk/pkgsrc/lang/python311/work/.destdir/opt/pkg:
ERROR:         /Users/mk/pkgsrc/lang/python311/work/.destdir/opt/pkg/lib/python3.11/lib-dynload/_curses.so
ERROR:         /Users/mk/pkgsrc/lang/python311/work/.destdir/opt/pkg/lib/python3.11/lib-dynload/_curses_panel.so
ERROR: ************************************************************
ERROR: The following files are in /Users/mk/pkgsrc/lang/python311/work/.destdir/opt/pkg but not in the PLIST:
ERROR:         /Users/mk/pkgsrc/lang/python311/work/.destdir/opt/pkg/lib/python3.11/lib-dynload/_curses_panel_failed.so
*** Error code 1

Stop.
bmake[2]: stopped in /Users/mk/pkgsrc/lang/python311
*** Error code 1

Stop.
bmake[1]: stopped in /Users/mk/pkgsrc/lang/python311
*** Error code 1

Stop.
bmake: stopped in /Users/mk/pkgsrc/lang/python311

- - - - - - - - - - %< - - - - - - - - - -

I resolved that, after adding the missing files to the PLIST with:

> $ bmake CHECK_FILES=no install
> [...]
> $ bmake print-PLIST >PLIST
> $ bmake deinstall
> $ bmake install

As mentioned here: https://www.netbsd.org/docs/pkgsrc/creating.html

I can send a diff for this, but I don't think that is necessary...

Now on to the next problem with audio/din:

- - - - - - - - - - %< - - - - - - - - - -

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1938: checking for a BSD-compatible install
configure:2006: result: /usr/bin/install -c -o root -g wheel
configure:2017: checking whether build environment is sane
configure:2072: result: yes
configure:2218: checking for a thread-safe mkdir -p
configure:2257: result: ./install-sh -c -d
configure:2264: checking for gawk
configure:2291: result: /opt/pkg/bin/nawk
configure:2302: checking whether make sets $(MAKE)
configure:2324: result: yes
configure:2353: checking whether make supports nested variables
configure:2370: result: yes
configure:2505: checking for aarch64-apple-darwin23-gcc
configure:2532: result: clang
configure:2801: checking for C compiler version
configure:2810: clang --version >&5
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: arm64-apple-darwin23.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:2821: $? = 0
configure:2810: clang -v >&5
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: arm64-apple-darwin23.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:2821: $? = 0
configure:2810: clang -V >&5
clang: error: unsupported option '-V -isysroot'
configure:2821: $? = 1
configure:2810: clang -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?
clang: error: no input files
configure:2821: $? = 1
configure:2841: checking whether the C compiler works
configure:2863: clang -O2 -I/opt/pkg/include -D_REENTRANT -I/opt/pkg/include/SDL -I/opt/pkg/include -D_REENTRANT -I/opt/pkg/include/SDL -L/opt/pkg/lib conftest.c -ltcl -lSDL -lGL>
ld: warning: ignoring duplicate libraries: '-lSDL'
configure:2867: $? = 0
configure:2915: result: yes
configure:2918: checking for C compiler default output file name
configure:2920: result: a.out
configure:2926: checking for suffix of executables
configure:2933: clang -o conftest -O2 -I/opt/pkg/include -D_REENTRANT -I/opt/pkg/include/SDL -I/opt/pkg/include -D_REENTRANT -I/opt/pkg/include/SDL -L/opt/pkg/lib conftest.c -ltc>
ld: warning: ignoring duplicate libraries: '-lSDL'
configure:2937: $? = 0
configure:2959: result:
configure:2981: checking whether we are cross compiling
configure:2989: clang -o conftest -O2 -I/opt/pkg/include -D_REENTRANT -I/opt/pkg/include/SDL -I/opt/pkg/include -D_REENTRANT -I/opt/pkg/include/SDL -L/opt/pkg/lib conftest.c -ltc>
ld: warning: ignoring duplicate libraries: '-lSDL'
configure:2993: $? = 0
configure:3000: ./conftest
dyld[1840]: Library not loaded: libSDL-1.2.0.dylib
  Referenced from: <B245C32D-4222-328B-964C-7AAAF1C55345> /Users/mk/pkgsrc/audio/din/work/din-57/conftest
  Reason: tried: 'libSDL-1.2.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibSDL-1.2.0.dylib' (no such file), 'libSDL-1.2.0.dylib' (no such file), '/Users/mk/pkg>
Abort trap
configure:3004: $? = 134
configure:3011: error: in `/Users/mk/pkgsrc/audio/din/work/din-57':
configure:3013: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

- - - - - - - - - - %< - - - - - - - - - -

devel/sdl12-compat is installed; could it be, that the error is related
to the inital mentioned problem? If yes, it seems it's a loop of
problems for me :o) I'm giving give up - for this weekend...

Kind regards.


Home | Main Index | Thread Index | Old Index