Discussion:
xorg Build Failure
Thomas D. Dean
2021-05-31 00:21:33 UTC
Permalink
# cd /usr/ports/x11
# make install xort
Failed to build giflib. Building libgif in /usr/ports/graphics/giflib works.

# uname -a
FreeBSD aorus 13.0-RELEASE FreeBSD 13.0-RELEASE #0 \
releng/13.0-n244733-ea31abc261f: Fri Apr 9 04:24:09 UTC 2021 \
***@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC

CPU: AMD Ryzen Threadripper 3970X

# cd /usr/ports/xorg
# set MAKE_JOBS_UNSAFE=yes
# make
Accepted all defaults
...
===> imlib2-1.7.0,2 depends on shared library: libgif.so - not found
===> Building for giflib-5.2.1
gmake[7]: Entering directory '/usr/ports/graphics/giflib/work/giflib-5.2.1'
cc -std=gnu99 -fPIC -Wall -O2 -pipe -DHAVE_REALLOCARRAY
-fstack-protector-strong -fno-strict-aliasing -c -o dgif_lib.o dgif_lib.c
cc -std=gnu99 -fPIC -Wall -O2 -pipe -DHAVE_REALLOCARRAY
-fstack-protector-strong -fno-strict-aliasing -c -o egif_lib.o egif_lib.c
cc -std=gnu99 -fPIC -Wall -O2 -pipe -DHAVE_REALLOCARRAY
-fstack-protector-strong -fno-strict-aliasing -c -o gifalloc.o gifalloc.c
cc -std=gnu99 -fPIC -Wall -O2 -pipe -DHAVE_REALLOCARRAY
-fstack-protector-strong -fno-strict-aliasing -c -o gif_err.o gif_err.c
cc -std=gnu99 -fPIC -Wall -O2 -pipe -DHAVE_REALLOCARRAY
-fstack-protector-strong -fno-strict-aliasing -c -o gif_font.o gif_font.c
cc -std=gnu99 -fPIC -Wall -O2 -pipe -DHAVE_REALLOCARRAY
-fstack-protector-strong -fno-strict-aliasing -c -o gif_hash.o gif_hash.c
cc -std=gnu99 -fPIC -Wall -O2 -pipe -DHAVE_REALLOCARRAY
-fstack-protector-strong -fno-strict-aliasing -c -o
openbsd-reallocarray.o openbsd-reallocarray.c
cc -std=gnu99 -fPIC -Wall -O2 -pipe -DHAVE_REALLOCARRAY
-fstack-protector-strong -fno-strict-aliasing -c -o qprintf.o qprintf.c
cc -std=gnu99 -fPIC -Wall -O2 -pipe -DHAVE_REALLOCARRAY
-fstack-protector-strong -fno-strict-aliasing -c -o quantize.o quantize.c
cc -std=gnu99 -fPIC -Wall -O2 -pipe -DHAVE_REALLOCARRAY
-fstack-protector-strong -fno-strict-aliasing -c -o getarg.o getarg.c
cc -std=gnu99 -fPIC -Wall -O2 -pipe -DHAVE_REALLOCARRAY
-fstack-protector-strong -fno-strict-aliasing -shared
-fstack-protector-strong -Wl,-soname -Wl,libutil.so.7 -o libutil.so
qprintf.o quantize.o getarg.o
ar rcs libutil.a qprintf.o quantize.o getarg.o
cc -shared -fstack-protector-strong -Wl,-soname -Wl,libgif.so.7 -o
libgif.so.7.2.0 dgif_lib.o egif_lib.o gifalloc.o gif_err.o gif_font.o
gif_hash.o openbsd-reallocarray.o
ar rcs libgif.a dgif_lib.o egif_lib.o gifalloc.o gif_err.o gif_font.o
gif_hash.o openbsd-reallocarray.o
ln -s libgif.so.7.2.0 libgif.so.7
ln: libgif.so.7: File exists
gmake[7]: *** [Makefile:73: libgif.so.7] Error 1
gmake[7]: Leaving directory '/usr/ports/graphics/giflib/work/giflib-5.2.1'
===> Compilation failed unexpectedly.

# cd usr/ports/graphics/giflib
# make clean
# make
# make install - worked
Graham Perrin
2021-05-31 07:23:47 UTC
Permalink
Post by Thomas D. Dean
make install - worked
Don't forget to clean.

https://www.freshports.org/x11/xorg/#add

Loading...