Opened 3 years ago

Closed 3 years ago

#61479 closed defect (worksforme)

ghostscript @9.52 does build with error on Big Sur, macOS 11.0.1

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur Cc:
Port: ghostscript

Description

First:

Warning: reinplace s|/usr/bin/perl|/opt/local/bin/perl| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostpdl-9.52/pcl/tools/gl2_chars.pl

Attachments (2)

main.log (1.3 MB) - added by ballapete (Peter "Pete" Dyballa) 3 years ago.
Main.log from build on Big Sur
configure_minimal_jbig2dec_version.diff (870 bytes) - added by ballapete (Peter "Pete" Dyballa) 3 years ago.
Patch to help configure say "is at least"

Download all attachments as: .zip

Change History (10)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Reinplace not changing anything should be fixed but is not necessarily a problem. Could you attach the main.log file so that we can see what the real cause of the build failure was?

Note, the port will be updated shortly: https://github.com/macports/macports-ports/pull/9118

comment:2 in reply to:  1 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Replying to ryandesign:

Reinplace not changing anything should be fixed but is not necessarily a problem. Could you attach the main.log file so that we can see what the real cause of the build failure was?

Not yet. I am trying to reinstall ffmpeg (in order to be able to listen to internet radio). I'll try to build ghostscript once more before a port selfupdate!

comment:3 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

That warning comes up here:

--->  Patching gl2_chars.pl: s|/usr/bin/perl|/opt/local/bin/perl|
DEBUG: Executing reinplace: /usr/bin/sed s|/usr/bin/perl|/opt/local/bin/perl| </opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostpdl-9.52/pcl/tools/gl2_chars.pl >@file9
Warning: reinplace s|/usr/bin/perl|/opt/local/bin/perl| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostpdl-9.52/pcl/tools/gl2_chars.pl
DEBUG: euid/egid changed to: 0/0
DEBUG: chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostpdl-9.52/pcl/tools/gl2_chars.pl to macports

early before the configure step. At its end this is reported:

checking byteswap support... yes
checking for byteswap.h... no
checking whether to explicitly disable strict aliasing... yes
configure: creating ./config.status
config.status: creating Makefile
configure: WARNING: unrecognized options: --enable-gpdl
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: build phase started at Sun Nov 15 22:16:59 CET 2020
--->  Building ghostscript

This configure option ist gone. A libno_gpdl.9.52.dylib (and also libno_gpcl6.9.52.dylib and libno_gxps.9.52.dylib) is built,

make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostpdl-9.52'
/Library/Developer/CommandLineTools/usr/bin/make -f Makefile GS_DOT_O= REALMAIN_OBJ= GS_XE=./sobin/libgs.9.52.dylib GPCL_XE=./sobin/libno_gpcl6.9.52.dylib GXPS_XE=./sobin/libno_gxps.9.52.dylib GPDL_XE=./sobin/libno_gpdl.9.52.dylib DISPLAY_DEV=./soobj/display.dev BUILDDIRPREFIX=so GENOPT='' GS_LDFLAGS='-Lsobin -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -dynamiclib -install_name /opt/local/lib/libgs.9.52.dylib'         PCL_LDFLAGS='-Lsobin -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -dynamiclib -install_name /opt/local/lib/libno_gpcl6.9.52.dylib' XPS_LDFLAGS='-Lsobin -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -dynamiclib -install_name /opt/local/lib/libno_gxps.9.52.dylib'          PDL_LDFLAGS='-Lsobin -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64   -dynamiclib -install_name /opt/local/lib/libno_gpdl.9.52.dylib' CFLAGS='-O2 -DNDEBUG -fPIC           -isystem/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -fno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror=return-type -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIBDL=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -D__USE_UNIX98=1 -DGS_MEMPTR_ALIGNMENT=8  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -DHAVE_RESTRICT=1 -DUSE_LIBICONV_GNU -DUSE_LIBPAPER  -fno-strict-aliasing -DHAVE_POPEN_PROTO=1  ' prefix=/opt/local
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostpdl-9.52'
/usr/bin/clang   -O2 -DNDEBUG -isystem/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -fno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror=return-type -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIBDL=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -D__USE_UNIX98=1 -DGS_MEMPTR_ALIGNMENT=8  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -DHAVE_RESTRICT=1 -DUSE_LIBICONV_GNU -DUSE_LIBPAPER  -fno-strict-aliasing -DHAVE_POPEN_PROTO=1 -DHAVE_POPEN_PROTO=1  -I./base -o ./soobj/aux/genconf ./base/genconf.c  -lm -ldl  -liconv -L/opt/local/lib -lidn -lpaper -L/opt/local/lib -ltiff  -lfontconfig -lfreetype -lfreetype -L/opt/local/lib -lopenjp2  -lz

but never installed:

-rwxr-xr-x   1 root     admin     51152 15. Nov 17:52 libXss.1.dylib
-rw-r--r--   1 root     admin      7064 15. Nov 17:52 libXss.a
lrwxr-xr-x   1 root     admin        14 15. Nov 17:52 libXss.dylib -> libXss.1.dylib
-rwxr-xr-x   1 root     admin  11784208 15. Nov 17:41 libgs.9.52.dylib
lrwxr-xr-x   1 root     admin        16 15. Nov 17:41 libgs.9.dylib -> libgs.9.52.dylib
lrwxr-xr-x   1 root     admin        16 15. Nov 17:41 libgs.dylib -> libgs.9.52.dylib
drwxr-xr-x   5 root     admin       160 15. Nov 17:40 openjpeg-2.3
lrwxr-xr-x   1 root     admin        22 15. Nov 17:40 libopenjp2.7.dylib -> libopenjp2.2.3.1.dylib
-rw-r--r--   1 root     admin    334976 15. Nov 17:40 libopenjp2.a
lrwxr-xr-x   1 root     admin        18 15. Nov 17:40 libopenjp2.dylib -> libopenjp2.7.dylib
-rwxr-xr-x   1 root     admin    287448 15. Nov 17:40 libopenjp2.2.3.1.dylib

Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from build on Big Sur

comment:4 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Although

  jbig2dec @0.17_0 (active) platform='darwin 20' archs='x86_64' date='2020-11-15T17:39:08+0100'
  jbigkit @2.1_0 (active) platform='darwin 20' archs='x86_64' date='2020-11-15T17:36:28+0100'

are installed the configure script finds:

checking for local jbig2dec library source... no
checking for jbig2dec 0.16 with pkg-config... yes

On lines # 8880/8881 the script has

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbig2dec $JBIG2DEC_REQ with pkg-config" >&5
$as_echo_n "checking for jbig2dec $JBIG2DEC_REQ with pkg-config... " >&6; }

$JBIG2DEC_REQ is set to be 0.16 – so a text "is at least" might help prevent misunderstandings…

Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Patch to help configure say "is at least"

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

I don't think we need such a patch. If you think the wording of the configure message should be changed, send the patch to the developers.

Is that the complete main.log? I don't see an error in it or any indication of why the build failed.

Please sudo port selfupdate and try with the latest versions. We're up to ghostscript 9.53.3 and jbig2dec 0.19 now.

comment:6 in reply to:  5 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Replying to ryandesign:

Is that the complete main.log? I don't see an error in it or any indication of why the build failed.

Ghostscript built from beginning. Since it was then quite silent I saw the report about the unnecessary reinplace.

comment:7 in reply to:  5 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Replying to ryandesign:

Please sudo port selfupdate and try with the latest versions. We're up to ghostscript 9.53.3 and jbig2dec 0.19 now.

The up-to-date ports build fine, ghostscript still has Warning: reinplace s|/usr/bin/perl|/opt/local/bin/perl| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostpdl-9.53.3/pcl/tools/gl2_chars.pl`.

comment:8 Changed 3 years ago by cjones051073 (Chris Jones)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.