Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680110 - =media-libs/giflib-5.1.7: fails to compile on Mac OS X (ld: unknown option: -soname)
Summary: =media-libs/giflib-5.1.7: fails to compile on Mac OS X (ld: unknown option: -...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-12 10:12 UTC by Guilherme Amadio
Modified: 2021-01-14 12:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guilherme Amadio gentoo-dev 2019-03-12 10:12:32 UTC
Relevant part of the build log:

x86_64-apple-darwin17-clang -march=native -O2 -pipe -std=gnu99 -fPIC -Wno-format-truncation -shared -Wl,-dead_strip_dylibs -Wl,-soname,libgif.so.7 -o libgif.so dgif_lib.o egif_lib.o getarg.o gifalloc.o gif_err.o gif_font.o gif_hash.o openbsd-reallocarray.o qprintf.o quantize.o
ar rcs libgif.a dgif_lib.o egif_lib.o getarg.o gifalloc.o gif_err.o gif_font.o gif_hash.o openbsd-reallocarray.o qprintf.o quantize.o
x86_64-apple-darwin17-clang -march=native -O2 -pipe -std=gnu99 -fPIC -Wno-format-truncation  -Wl,-dead_strip_dylibs  gif2rgb.c libgif.a  libgif.a -lm -o gif2rgb
x86_64-apple-darwin17-clang -march=native -O2 -pipe -std=gnu99 -fPIC -Wno-format-truncation  -Wl,-dead_strip_dylibs  gifbuild.c libgif.a  libgif.a -lm -o gifbuild
x86_64-apple-darwin17-clang -march=native -O2 -pipe -std=gnu99 -fPIC -Wno-format-truncation  -Wl,-dead_strip_dylibs  gifecho.c libgif.a  libgif.a -lm -o gifecho
ld: unknown option: -soname
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:68: libgif.so] Error 1
make: *** Waiting for unfinished jobs....
warning: unknown warning option '-Wno-format-truncation' [-Wunknown-warning-option]
warning: unknown warning option '-Wno-format-truncation' [-Wunknown-warning-option]
warning: unknown warning option '-Wno-format-truncation' [-Wunknown-warning-option]

Note, giflib-5.1.4-r2 is installed and is not affected by this.
Comment 1 Guilherme Amadio gentoo-dev 2019-05-08 10:16:08 UTC
This is filed upstream at https://sourceforge.net/p/giflib/bugs/133
Comment 2 Larry the Git Cow gentoo-dev 2021-01-14 12:29:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a93c780dc88bbef2fee097e1e045eb25d0c5f0c5

commit a93c780dc88bbef2fee097e1e045eb25d0c5f0c5
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2021-01-14 12:23:40 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2021-01-14 12:28:34 +0000

    media-libs/giflib: drop *-macos, bug #680110
    
    buildsystem insists on ELF handling, patching it for Mach-O isn't
    trivial.  Upstream bug exists, with patch, but that one isn't trivial
    either
    reflecting current state of things, we cannot build this on macOS
    
    Closes: https://bugs.gentoo.org/680110
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 media-libs/giflib/giflib-5.2.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)