[MacPorts] #65305: libdeflate @1.11 does not build on PPC Mac OS X 10.4.11, Tiger, because: Makefile:130: *** only one `else' per conditional. Stop.
MacPorts
noreply at macports.org
Wed Jun 8 18:12:17 UTC 2022
#65305: libdeflate @1.11 does not build on PPC Mac OS X 10.4.11, Tiger, because:
Makefile:130: *** only one `else' per conditional. Stop.
-------------------------+--------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: tiger
Port: libdeflate |
-------------------------+--------------------
Comment (by ryandesign):
Replying to [comment:1 ballapete]:
> Using `GNU make` instead of `Apple's make` lets the compilation start.
Yes, using gmake in a `platform darwin 8` block is a common fix used for
Tiger. Note that "Apple's make" is simply GNU make 3.80 on Tiger; GNU make
3.81 introduced changes which many build system rely on.
Replying to [comment:2 ballapete]:
> {{{
> powerpc-apple-darwin8-gcc-4.0.1: unrecognized option '-shared'
> /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: unknown flag:
-soname=libdeflate.so.0
> }}}
Sure, `-shared` should be `-dynamiclib` on macOS (newer macOS versions
recognize `-shared` as a synonym for `-dynamiclib` but Tiger doesn't) and
`-soname` should be `-install_name`, along with specifying a macOS-style
dynamic library path rather than a Linux-style shared object name.
Replying to [comment:3 ballapete]:
> This is quite interesting: `/dev/null` was deleted each time I invoked
`port -vd install libdeflate`
This may be because of:
> {{{
> scripts/detect.sh: line 16: /dev/null: Operation not supported
> }}}
or maybe some other use of /dev/null in the build system. I'm envisioning
somewhere where /dev/null is used as the output of a compilation or
something (with a flag like `-o /dev/null`). The fix would be to direct
the output to a real file somewhere in the work directory, which will then
be deleted along with the rest of the work directory when the port is
installed.
--
Ticket URL: <https://trac.macports.org/ticket/65305#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list