[MacPorts] #70504: links @2.30 does not build on macOS Sonoma 14.5 because of configure: error: No graphics drivers found.
MacPorts
noreply at macports.org
Wed Aug 7 22:25:41 UTC 2024
#70504: links @2.30 does not build on macOS Sonoma 14.5 because of configure:
error: No graphics drivers found.
------------------------+--------------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Resolution: | Keywords: sonoma intel
Port: links |
------------------------+--------------------------
Comment (by ballapete):
Invoking `configure` with `sh -x` gives:
{{{
+ echo avif_avifDecoderSetIOMemory
++ sed y%./+-%__p_%
+ ac_lib_var=avif_avifDecoderSetIOMemory
++ echo '${ac_cv_lib_avif_avifDecoderSetIOMemory+set}'
+ eval 'test "${ac_cv_lib_avif_avifDecoderSetIOMemory+set}" = set'
++ test '' = set
+ ac_save_LIBS='-L/opt/local/lib -lwebp -L/opt/local/lib -lrsvg-2 -lm
-lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lintl -lcairo -ltiff
-ljpeg -L/opt/local/lib -lpng16 -L/opt/local/lib -lfontconfig -lfreetype
-llzma -lbz2 -lz -L/opt/local/libexec/openssl3/lib -lssl -lcrypto -lm '
+ LIBS='-lavif -L/opt/local/lib -lwebp -L/opt/local/lib -lrsvg-2 -lm
-lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lintl -lcairo -ltiff
-ljpeg -L/opt/local/lib -lpng16 -L/opt/local/lib -lfontconfig -lfreetype
-llzma -lbz2 -lz -L/opt/local/libexec/openssl3/lib -lssl -lcrypto -lm '
+ cat
+ eval echo configure:12255: '"${CC-cc}' -o 'conftest${ac_exeext}'
'$CFLAGS' '$CPPFLAGS' '$LDFLAGS' 'conftest.$ac_ext' '$LIBS' '1>&5"'
++ echo configure:12255: 'gcc -o conftest -g -O2
-I/opt/local/libexec/openssl3/include -I/opt/local/include
-I/opt/local/include/freetype2 -I/opt/local/include/libpng16
-I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include
-I/opt/local/include/librsvg-2.0 -I/opt/local/include/gdk-pixbuf-2.0
-I/opt/local/include -I/opt/local/include/cairo -I/opt/local/include
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include
-I/opt/local/include/freetype2 -I/opt/local/include
-I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include
-I/opt/local/include/webp conftest.c -lavif -L/opt/local/lib -lwebp
-L/opt/local/lib -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0
-lglib-2.0 -lintl -lcairo -ltiff -ljpeg -L/opt/local/lib -lpng16
-L/opt/local/lib -lfontconfig -lfreetype -llzma -lbz2 -lz
-L/opt/local/libexec/openssl3/lib -lssl -lcrypto -lm 1>&5'
+ test -s conftest
+ rm -rf conftest conftest.c conftest.dSYM
+ eval ac_cv_lib_avif_avifDecoderSetIOMemory=yes
++ ac_cv_lib_avif_avifDecoderSetIOMemory=yes
+ rm -f 'conftest*'
+ LIBS='-L/opt/local/lib -lwebp -L/opt/local/lib -lrsvg-2 -lm -lgio-2.0
-lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lintl -lcairo -ltiff -ljpeg
-L/opt/local/lib -lpng16 -L/opt/local/lib -lfontconfig -lfreetype -llzma
-lbz2 -lz -L/opt/local/libexec/openssl3/lib -lssl -lcrypto -lm '
++ echo '$ac_cv_lib_avif_avifDecoderSetIOMemory'
+ eval 'test "$ac_cv_lib_avif_avifDecoderSetIOMemory" = yes'
++ test yes = yes
+ echo yes
yes
++ echo avif
++ sed -e 's/[^a-zA-Z0-9_]/_/g' -e
y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/
+ ac_tr_lib=HAVE_LIBAVIF
+ cat
+ LIBS='-lavif -L/opt/local/lib -lwebp -L/opt/local/lib -lrsvg-2 -lm
-lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lintl -lcairo -ltiff
-ljpeg -L/opt/local/lib -lpng16 -L/opt/local/lib -lfontconfig -lfreetype
-llzma -lbz2 -lz -L/opt/local/libexec/openssl3/lib -lssl -lcrypto -lm '
+ test yes = yes
+ test yes = yes
+ cat
+ cf_have_avif=yes
+ image_formats='GIF PNG XBM JPEG TIFF SVG WEBP AVIF'
+ test -z ''
+ test yes '!=' no
+ echo 'configure: error: No graphics drivers found.'
configure: error: No graphics drivers found.
+ exit 1
}}}
The test seems to be successful, but: No graphics drivers found.
Concerning the graphics libraries I seem to have all. The problem is in
these lines:
{{{
12306 if test -z "$drivers" && test "$cf_use_graphics" != no; then
12307 { echo "configure: error: No graphics drivers found."
1>&2; exit 1; }
12308 fi
}}}
`$drivers` is empty. Shouldn't it be at least `X`?
{{{
8410: drivers=""
8552: drivers="$drivers SVGALIB"
8604: drivers="$drivers FB"
8794: drivers="$drivers DIRECTFB"
9478: drivers="$drivers X"
9525: drivers="$drivers PMSHELL"
9699: drivers="$drivers WINDOWS"
10036: drivers="$drivers ATHEOS"
10327: drivers="$drivers HAIKU"
10428: drivers="$drivers GRX"
12306: if test -z "$drivers" && test "$cf_use_graphics" != no; then
12307: { echo "configure: error: No graphics drivers found."
1>&2; exit 1; }
}}}
--
Ticket URL: <https://trac.macports.org/ticket/70504#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list