[Cin] on macos we have few undefined functions

Andrew Randrianasulu randrianasulu at gmail.com
Mon Jun 10 21:25:49 CEST 2024


tried to fix few of them via stackoverflow answers

DO NOT COMMIT as-is while I think edlexport.C change is harmless (just
extend netbsd/freebsd check for macosx).

sadly, linking still fails with

 ld: warning: unknown stabs type 0x71 in x86_64/theme_data.o

ld: warning: unknown stabs type 0x71 in x86_64/theme_data.o

 ld: warning: unknown stabs type 0x5F in x86_64/theme_data.o

ld: object file x86_64/theme_data.o was built for different x86_64 sub-type
(-2147483645) than link command line (3) file 'x86_64/theme_data.o' for
architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make: ***
[/Users/andrewrandrianasulu/cinelerra/cinelerra-5.1/cinelerra/../bin/cin]
Error 1


so our fancy png in machine code object theme supports upsets  MacOSX's
clang ...?

also plugin linking completely fails ...

пн, 10 июн. 2024 г., 17:56 Andrew Randrianasulu <randrianasulu at gmail.com>:

> You guess it - I tried to convince cingg to build on macos 10.12.6
>
> bchash.C:184:13: error: use of undeclared identifier 'open_memstream'
>
> seems to exist (reimplemented ) here
>
>
> https://android.googlesource.com/platform/system/core/+/cf63d5d00f5a631a2905da7812b5c029b5211cf6%5E!/
>
> fmemopen also used in bchash.C
>
> https://github.com/mprzybylski/darwin-fmemopen
>
>
> pthread_spinlock_t does not exist here ...
>
>
> https://stackoverflow.com/questions/8177031/does-mac-os-x-have-pthread-spinlock-t-type
>
> there is also bunch of  dirent64 vs dirent and this
>
>
> ffmpeg.C:4499:26: error: no member named 'st_mtim' in 'stat'
>                                          time_t t =
> (time_t)tst.st_mtim.tv_sec;
>                                 ~~~ ^
>                      ffmpeg.C:4502:20: error: no member named 'st_mtim' in
> 'stat'                                                       int64_t us =
> tst.st_mtim.tv_nsec / 1000;
>                         ~~~ ^
>                    20 warnings and 19 errors generated.
>
> ====
>
> I set build against wrong ffmpeg includes ....
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240610/a13cd2f0/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-cinelerra-Makefile-hacks-for-macos-WIP.patch
Type: application/x-patch
Size: 2522 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240610/a13cd2f0/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-macos-build-files-WIP.patch
Type: application/x-patch
Size: 3119 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240610/a13cd2f0/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-macos-configure.ac-for-macports-WIP.patch
Type: application/x-patch
Size: 2173 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240610/a13cd2f0/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Guicast-hacks-for-macos-WIP.patch
Type: application/x-patch
Size: 6465 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240610/a13cd2f0/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Cinelerra-macos-hacks-WIP.patch
Type: application/x-patch
Size: 4183 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240610/a13cd2f0/attachment-0009.bin>


More information about the Cin mailing list