Re: [MacPorts] #69146: libpixman @0.42.2: error: expected identifier before ‘__attribute__’
MacPorts
noreply at macports.org
Mon Jan 29 17:24:55 UTC 2024
#69146: libpixman @0.42.2: error: expected identifier before ‘__attribute__’
-------------------------+-------------------------------------------------
Reporter: | Owner: ryandesign
barracuda156 |
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: duplicate | Keywords: snowleopard, rosetta, tiger,
Port: libpixman | leopard
-------------------------+-------------------------------------------------
Comment (by barracuda156):
Replying to [comment:4 rmottola]:
> I experience also issues on 10.5 pcc.
> However, forcing gcc7 makes compilation issues go away, but I have a
linker error:
>
> {{{
>
> [42/113] /opt/local/bin/gcc-mp-7 -o test/infinite-loop test/infinite-
loop.p/infinite-loop.c.o -L/opt/local/lib -I/opt/local/include
-Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names
-Wl,-headerpad_max_install_names -arch ppc -pipe -Os -arch ppc
-Wl,-rpath, at loader_path/../pixman test/libtestutils.a
pixman/libpixman-1.0.dylib -lm
> FAILED: test/infinite-loop
> /opt/local/bin/gcc-mp-7 -o test/infinite-loop test/infinite-loop.p
/infinite-loop.c.o -L/opt/local/lib -I/opt/local/include
-Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names
-Wl,-headerpad_max_install_names -arch ppc -pipe -Os -arch ppc
-Wl,-rpath, at loader_path/../pixman test/libtestutils.a
pixman/libpixman-1.0.dylib -lm
> Undefined symbols:
> "_posix_memalign", referenced from:
> _aligned_malloc in libtestutils.a(utils.c.o)
> ld: symbol(s) not found
> collect2: error: ld returned 1 exit status
>
> }}}
>
> appears to be PPC specific. Didn't see something ismilar during intel
upgrades. Ideas, @kencu?
I think you need `legacysupport` for `posix_memalign` on 10.5.
--
Ticket URL: <https://trac.macports.org/ticket/69146#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list