Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#24061 closed defect (fixed)

ghostscript install fails with zlib 1.2.4

Reported by: allan.wolfe@… Owned by: takanori@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: jschwab@…, ben-macports@…, jean-philippe.humbert@…, silver_samurai@…, dershow, mf2k (Frank Schima), macports@…, cjones051073 (Chris Jones), jknockaert@…, ryandesign (Ryan Carsten Schmidt), ClintO (Clint O), m@…, bgschaid@…, eborisch@…, yamada.manabu.1207@…
Port: ghostscript

Description (last modified by mf2k (Frank Schima))

> sudo port upgrade ghostscript
--->  Computing dependencies for ghostscript
--->  Building ghostscriptError: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_ghostscript/work/ghostscript-8.71" && /usr/bin/make so " returned error 2Command output: /usr/bin/make LDFLAGS='-L/opt/local/lib  -dynamiclib -install_name /opt/local/lib/libgs.8.71.dylib' GS_XE=./bin/../sobin/libgs.8.71.dylib STDIO_IMPLEMENTATION=c DISPLAY_DEV=./obj/../soobj/display.dev BINDIR=./bin/../sobin GLGENDIR=./obj/../soobj GLOBJDIR=./obj/../soobj PSGENDIR=./obj/../soobj PSOBJDIR=./obj/../soobj CFLAGS='-O2  -isystem/opt/local/include  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long int" -Os -arch x86_64 -DUSE_LIBICONV_GNU ' prefix=/opt/local ./bin/../sobin/gsc ./bin/../sobin/gsx
/usr/bin/gcc-4.2  -DHAVE_MKSTEMP -DHAVE_HYPOT   -DHAVE_FONTCONFIG -O2  -isystem/opt/local/include  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long int" -Os -arch x86_64 -DUSE_LIBICONV_GNU  -I./obj/../soobj -I./base -Isrc -DSHARE_ZLIB=1  -o ./obj/../soobj/szlibc.o -c ./base/szlibc.c
In file included from ./base/szlibxx.h:22,
                 from ./base/szlibc.c:23:
/opt/local/include/zlib.h:1561: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gzseek64'
/opt/local/include/zlib.h:1562: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gztell64'
/opt/local/include/zlib.h:1563: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gzoffset64'
/opt/local/include/zlib.h:1564: error: expected declaration specifiers or '...' before 'off64_t'
/opt/local/include/zlib.h:1565: error: expected declaration specifiers or '...' before 'off64_t'
make[1]: *** [obj/../soobj/szlibc.o] Error 1
make: *** [so] Error 2

Error: Unable to upgrade port: 1
Before reporting a bug, first run the command again with the -d flag to get complete output.

Attachments (3)

ghostscript_error.txt (66.7 KB) - added by allan.wolfe@… 14 years ago.
mplayer-devel-log (694.3 KB) - added by ben-macports@… 14 years ago.
patch-largefile64.diff (406 bytes) - added by gellule.xg@… 14 years ago.
Removes a _LARGEFILE64_SOURCE define in base/stdpre.h

Download all attachments as: .zip

Change History (32)

Changed 14 years ago by allan.wolfe@…

Attachment: ghostscript_error.txt added

comment:1 Changed 14 years ago by jschwab@…

Cc: jschwab@… added

Cc Me!

comment:2 in reply to:  1 Changed 14 years ago by jschwab@…

Same problem on OSX 10.6.2

jschwab: ~$ uname -v
Darwin Kernel Version 10.2.0: Tue Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386
--->  Building ghostscript
DEBUG: Executing org.macports.build (ghostscript)
DEBUG: port disallows a parallel build
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_ghostscript/work/ghostscript-8.71" && /usr/bin/make so'
/usr/bin/make LDFLAGS='-L/opt/local/lib  -dynamiclib -install_name /opt/local/lib/libgs.8.71.dylib' GS_XE=./bin/../sobin/libgs.8.71.dylib STDIO_IMPLEMENTATION=c DISPLAY_DEV=./obj/../soobj/display.dev BINDIR=./bin/../sobin GLGENDIR=./obj/../soobj GLOBJDIR=./obj/../soobj PSGENDIR=./obj/../soobj PSOBJDIR=./obj/../soobj CFLAGS='-O2  -isystem/opt/local/include  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long int" -Os -arch x86_64 -DUSE_LIBICONV_GNU -DUSE_LIBPAPER ' prefix=/opt/local ./bin/../sobin/gsc ./bin/../sobin/gsx
/usr/bin/gcc-4.2  -DHAVE_MKSTEMP -DHAVE_HYPOT   -DHAVE_FONTCONFIG -O2  -isystem/opt/local/include  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long int" -Os -arch x86_64 -DUSE_LIBICONV_GNU -DUSE_LIBPAPER  -I./obj/../soobj -I./base -Isrc -DSHARE_ZLIB=1  -o ./obj/../soobj/szlibc.o -c ./base/szlibc.c
In file included from ./base/szlibxx.h:22,
                 from ./base/szlibc.c:23:
/opt/local/include/zlib.h:1561: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gzseek64'
/opt/local/include/zlib.h:1562: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gztell64'
/opt/local/include/zlib.h:1563: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gzoffset64'
/opt/local/include/zlib.h:1564: error: expected declaration specifiers or '...' before 'off64_t'
/opt/local/include/zlib.h:1565: error: expected declaration specifiers or '...' before 'off64_t'
make[1]: *** [obj/../soobj/szlibc.o] Error 1
make: *** [so] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_ghostscript/work/ghostscript-8.71" && /usr/bin/make so " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_ghostscript/work/ghostscript-8.71" && /usr/bin/make so " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for ghostscript): org.macports.destroot org.macports.build
DEBUG: couldn't read file "/opt/local/share/macports/Tcl/darwintrace1.0/pkgIndex.tcl": no such file or directory
    while executing
"source [file join $dir pkgIndex.tcl]"
Error: Unable to upgrade port: 1

comment:3 Changed 14 years ago by nicos_pavlov@…

This bug occurs with the new version of zlib (1.2.4). Ghostscripts compiles fine with version 1.2.3_4

comment:4 Changed 14 years ago by ben-macports@…

Cc: ben-macports@… added

Cc Me!

comment:5 Changed 14 years ago by ben-macports@…

This also effects building mplayer-devel

In file included from /opt/local/include/png.h:506,
                 from libvo/vo_png.c:33:
/opt/local/include/zlib.h:1561: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gzseek64'
/opt/local/include/zlib.h:1562: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gztell64'
/opt/local/include/zlib.h:1563: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gzoffset64'
/opt/local/include/zlib.h:1564: error: expected declaration specifiers or '...' before 'off64_t'
/opt/local/include/zlib.h:1565: error: expected declaration specifiers or '...' before 'off64_t'
make: *** [libvo/vo_png.o] Error 1
make: *** Waiting for unfinished jobs....
Warning: the following items did not execute (for mplayer-devel): org.macports.destroot org.macports.build

Changed 14 years ago by ben-macports@…

Attachment: mplayer-devel-log added

comment:6 Changed 14 years ago by jean-philippe.humbert@…

Cc: jean-philippe.humbert@… added

Cc Me!

comment:7 Changed 14 years ago by silver_samurai@…

Cc: silver_samurai@… added

Cc Me!

comment:8 Changed 14 years ago by dershow

Cc: dersh@… added

Cc Me!

comment:9 Changed 14 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: zlibc ghostscript removed
Owner: changed from macports-tickets@… to takanori@…
Port: ghostscript added

comment:10 Changed 14 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:11 Changed 14 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:12 Changed 14 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:13 Changed 14 years ago by cjones051073 (Chris Jones)

Cc: jonesc@… added

Cc Me!

comment:14 Changed 14 years ago by jknockaert@…

Cc: jknockaert@… added

Cc Me!

comment:15 Changed 14 years ago by gellule.xg@…

This looks like a zlib 1.2.4 issue. I opened a ticket for zlib and attached a preliminary patch there.

comment:16 Changed 14 years ago by gellule.xg@…

Sorry, forgot the zlib ticket link: #24067

comment:17 Changed 14 years ago by gellule.xg@…

Actually I was wrong. A message from Mark Adler (from zlib) suggests another direction related to ghostscript. A quote from him: "I replicated exactly that error if I add a -D_LARGEFILE64_SOURCE to the compile options when making zlib. All you need to do is find where the ghostscript source does that and kill it."

comment:18 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

comment:19 Changed 14 years ago by gellule.xg@…

Following Mark's suggestion, the attached patch that gets rid of a _LARGEFILE64_SOURCE define in base/stdpre.h seems to fix the compilation error. I haven't checked if it causes any side effect though.

Changed 14 years ago by gellule.xg@…

Attachment: patch-largefile64.diff added

Removes a _LARGEFILE64_SOURCE define in base/stdpre.h

comment:20 Changed 14 years ago by ClintO (Clint O)

Cc: clint.olsen@… added

Cc Me!

comment:21 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: ghostscript upgrade failure -- szlibc.o compile using zlib.hghostscript install fails with zlib 1.2.4

comment:22 Changed 14 years ago by m@…

Cc: m@… added

Cc Me!

comment:23 Changed 14 years ago by bgschaid@…

Cc: bgschaid@… added

Cc Me!

comment:24 Changed 14 years ago by eborisch@…

Cc: eborisch@… added

Cc Me!

comment:25 Changed 14 years ago by takanori@…

Resolution: fixed
Status: newclosed

Fixed in 64855.

Thanks you for your help, gellule.xg-san!!

comment:26 in reply to:  25 Changed 14 years ago by vjfidalgo2@…

sorry, what is 64855? thanks

comment:27 Changed 14 years ago by mf2k (Frank Schima)

He means revision r64855. You just need to run port selfupdate and try the upgrade again.

comment:28 in reply to:  27 Changed 14 years ago by vjfidalgo2@…

Replying to macsforever2000@…:

He means revision r64855. You just need to run port selfupdate and try the upgrade again.

thanks a lot!

comment:29 Changed 14 years ago by yamada.manabu.1207@…

Cc: yamada.manabu.1207@… added

Cc Me!

Note: See TracTickets for help on using tickets.