Opened 9 years ago

Closed 8 years ago

#47764 closed defect (worksforme)

Ghostscript 9.16 does not build on PPC Tiger (Mac OS X 10.4.11) because of prototype

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: tiger powerpc Cc:
Port: ghostscript

Description

/opt/local/bin/gcc-apple-4.2  -DHAVE_MKSTEMP  -DHAVE_FSEEKO  -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE   -DHAVE_BSWAP32  -DHAVE_STRERROR -DHAVE_PREAD_PWRITE=1 -DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE -O2  -isystem/opt/local/include  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-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 -DGX_COLOR_INDEX_TYPE="unsigned long long" -D__USE_UNIX98=1 -D"strnlen(a,b)=strlen(a)" -pipe -Os -arch ppc -DUSE_LIBICONV_GNU -DUSE_LIBPAPER -I/opt/local/include    -I./soobj -I./base -I./devices  -DWHICH_CMS="lcms2" -I./trio -o ./soobj/gssprintf_0.o -c ./base/gssprintf.c
In file included from ./trio/trio.h:35,
                 from ./base/gssprintf.c:19:
./trio/triop.h:407: error: type qualifiers ignored on function return type
make[2]: *** [soobj/gssprintf_0.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.16'

The error happens with a patched version of Portfile which does not allow the use of Clang/llvm 3.3; Clang/llvm 3.4 are installed.

Attachments (1)

main.log (690.4 KB) - added by ballapete (Peter "Pete" Dyballa) 9 years ago.
main.log

Download all attachments as: .zip

Change History (11)

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

Attachment: main.log added

main.log

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

Well, yes. To fix that error, old compilers were blacklisted; see #47722 and r136307. You've apparently removed that blacklisting from your copy of the portfile, thereby causing the problem again.

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

Replying to ryandesign@…:

Well, yes. To fix that error, old compilers were blacklisted; see #47722 and r136307. You've apparently removed that blacklisting from your copy of the portfile, thereby causing the problem again.

Yes, I did so, because port started to build llvm-3.3 first, which can't be built on PPC Tiger.

How can I change the Portfile that llvm-3.4 or clang-3.4 or gcc-4.10 or whatever else can be used?

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

Cc: takanori@… removed
Keywords: tiger powerpc added
Owner: changed from macports-tickets@… to ghostscript

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

Owner: changed from ghostscript to takanori@…

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

Using powerpc-apple-darwin8-gcc-apple-4.2.4 (GCC) 4.2.4 (Apple Inc. build 5666) (dot 3) (MacPorts apple-gcc42 5666.3_14+gpl3) Ghostscript now compiles:

/opt/local/bin/gcc-apple-4.2  -DHAVE_MKSTEMP  -DHAVE_FSEEKO  -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE   -DHAVE_BSWAP32  -DHAVE_STRERROR -DHAVE_PREAD_PWRITE=1 -DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE -O2  -isystem/opt/local/include  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -fno-builtin -fno-common -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 -DGX_COLOR_INDEX_TYPE="unsigned long long" -D__USE_UNIX98=1 -D"strnlen(a,b)=strlen(a)" -pipe -Os -arch ppc -DUSE_LIBICONV_GNU -DUSE_LIBPAPER -I/opt/local/include    -I./soobj -I./base -I./devices  -DWHICH_CMS="lcms2" -I./trio -o ./soobj/gssprintf_0.o -c ./base/gssprintf.c
In file included from ./trio/trio.h:35,
                 from ./base/gssprintf.c:19:
./trio/triop.h:407: warning: type qualifiers ignored on function return type
cp ./soobj/gssprintf_0.o ./soobj/gssprintf.o

Some package I tried to upgrade seemed to have needed Ghostscript although before I had tried to check the dependencies—and so a new build was tried and it finished successfully:

DEBUG: destroot phase started at Fri May 22 18:04:43 CEST 2015
--->  Staging ghostscript into destroot

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

Owner: changed from takanori@… to macports-tickets@…

takanori has retired. See #47537.

comment:11 Changed 9 years ago by stephane.jublin@…

Cc: stephane.jublin@… added
Last edited 9 years ago by stephane.jublin@… (previous) (diff)

comment:12 Changed 9 years ago by stephane.jublin@…

Cc: stephane.jublin@… removed

Cc Me!

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

This ticket can be closed, I think, ghostscript @9.19_0+x11 builds…

comment:14 Changed 8 years ago by neverpanic (Clemens Lang)

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