Opened 20 years ago

Closed 17 years ago

Last modified 15 years ago

#1653 closed defect (wontfix)

freetype 2.1.7 failes to build on Darwin 7.0.0

Reported by: michaelstealy@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: High Milestone:
Component: ports Version: 1.0
Keywords: Cc: brian.bechtel@…, ryandesign (Ryan Carsten Schmidt)
Port:

Description

Here's the output from the build:

localhost:~ root# port install -vd freetype +puredarwin DEBUG: com.apple.package registered provides 'package', a pre-existing procedure. Target override will not be provided DEBUG: Skipping completed com.apple.main (freetype) DEBUG: Skipping completed com.apple.fetch (freetype) DEBUG: Skipping completed com.apple.checksum (freetype) DEBUG: setting option extract.cmd to /opt/local/bin/bzip2 DEBUG: Skipping completed com.apple.extract (freetype) DEBUG: Skipping completed com.apple.patch (freetype) DEBUG: Skipping completed com.apple.configure (freetype) ---> Building freetype with target all DEBUG: Executing com.apple.build (freetype) DEBUG: Assembled command: 'cd "/private/var/root/darwinports/dports/print/freetype/work/ freetype-2.1.7" && make all' /private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/builds/unix/libtool -- mode=compile gcc -pedantic -ansi -I/private/var/root/darwinports/dports/print/freetype/work/ freetype-2.1.7/objs -I/private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/ builds/unix -I/private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/include -c -Wall -g -O2 -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DDARWIN_NO_CARBON -DFT_CONFIG_CONFIG_H="<ftconfig.h>" -o /private/var/root/darwinports/dports/print/freetype/ work/freetype-2.1.7/objs/ftsystem.lo /private/var/root/darwinports/dports/print/freetype/work/ freetype-2.1.7/builds/unix/ftsystem.c

gcc -pedantic -ansi -I/private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/objs

-I/private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/builds/unix -I/private/ var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/include -c -Wall -g -O2 -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DDARWIN_NO_CARBON "-DFT_CONFIG_CONFIG_H=<ftconfig.h>" /private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/builds/unix/ftsystem.c -fno-common -DPIC -o /private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/ objs/.libs/ftsystem.o In file included from /usr/include/libkern/OSByteOrder.h:40,

from /usr/include/architecture/byte_order.h:34, from /usr/include/machine/byte_order.h:32, from /usr/include/i386/endian.h:112, from /usr/include/machine/endian.h:35, from /usr/include/sys/types.h:78, from /usr/include/i386/limits.h:45, from /usr/include/gcc/darwin/3.3/machine/limits.h:26, from /usr/include/limits.h:63, from /private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/include/

freetype/config/ftstdlib.h:61,

from /private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/builds/

unix/ftconfig.h:43,

from /private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/builds/

unix/ftsystem.c:21: /usr/include/libkern/i386/OSByteOrder.h:38: error: syntax error before "uint16_t" /usr/include/libkern/i386/OSByteOrder.h:48: error: syntax error before "uint32_t" /usr/include/libkern/i386/OSByteOrder.h:58: error: syntax error before "uint64_t" /usr/include/libkern/i386/OSByteOrder.h:79: error: syntax error before "uint16_t" /usr/include/libkern/i386/OSByteOrder.h:92: error: syntax error before "uint32_t" /usr/include/libkern/i386/OSByteOrder.h:105: error: syntax error before "uint64_t" /usr/include/libkern/i386/OSByteOrder.h:128: error: syntax error before "void" /usr/include/libkern/i386/OSByteOrder.h:139: error: syntax error before "void" /usr/include/libkern/i386/OSByteOrder.h:150: error: syntax error before "void" In file included from /usr/include/architecture/byte_order.h:34,

from /usr/include/machine/byte_order.h:32, from /usr/include/i386/endian.h:112, from /usr/include/machine/endian.h:35, from /usr/include/sys/types.h:78, from /usr/include/i386/limits.h:45, from /usr/include/gcc/darwin/3.3/machine/limits.h:26, from /usr/include/limits.h:63, from /private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/include/

freetype/config/ftstdlib.h:61,

from /private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/builds/

unix/ftconfig.h:43,

from /private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/builds/

unix/ftsystem.c:21: /usr/include/libkern/OSByteOrder.h:52: error: syntax error before "int32_t" /usr/include/libkern/OSByteOrder.h:338: error: syntax error before "uint16_t" /usr/include/libkern/OSByteOrder.h:348: error: syntax error before "uint32_t" /usr/include/libkern/OSByteOrder.h:358: error: syntax error before "uint64_t" /usr/include/libkern/OSByteOrder.h:370: error: syntax error before "void" /usr/include/libkern/OSByteOrder.h:381: error: syntax error before "void" /usr/include/libkern/OSByteOrder.h:392: error: syntax error before "void" /usr/include/libkern/OSByteOrder.h:405: error: syntax error before "uint16_t" /usr/include/libkern/OSByteOrder.h:415: error: syntax error before "uint32_t" /usr/include/libkern/OSByteOrder.h:425: error: syntax error before "uint64_t" /usr/include/libkern/OSByteOrder.h:437: error: syntax error before "void" /usr/include/libkern/OSByteOrder.h:448: error: syntax error before "void" /usr/include/libkern/OSByteOrder.h:459: error: syntax error before "void" /usr/include/libkern/OSByteOrder.h:490: error: syntax error before "uint16_t" /usr/include/libkern/OSByteOrder.h:499: error: syntax error before "uint32_t" /usr/include/libkern/OSByteOrder.h:508: error: syntax error before "uint64_t" /usr/include/libkern/OSByteOrder.h:537: error: syntax error before "uint16_t" /usr/include/libkern/OSByteOrder.h:546: error: syntax error before "uint32_t" /usr/include/libkern/OSByteOrder.h:555: error: syntax error before "uint64_t" make: * private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/objs/ftsystem.lo Error 1 Error: Target com.apple.build returned: shell command "cd "/private/var/root/darwinports/dports/ print/freetype/work/freetype-2.1.7" && make all" returned error 2 Command output: from /usr/include/machine/byte_order.h:32,

from /usr/include/i386/endian.h:112, from /usr/include/machine/endian.h:35, from /usr/include/sys/types.h:78, from /usr/include/i386/limits.h:45, from /usr/include/gcc/darwin/3.3/machine/limits.h:26, from /usr/include/limits.h:63, from /private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/include/

freetype/config/ftstdlib.h:61,

from /private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/builds/

unix/ftconfig.h:43,

from /private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/builds/

unix/ftsystem.c:21: /usr/include/libkern/OSByteOrder.h:52: error: syntax error before "int32_t" /usr/include/libkern/OSByteOrder.h:338: error: syntax error before "uint16_t" /usr/include/libkern/OSByteOrder.h:348: error: syntax error before "uint32_t" /usr/include/libkern/OSByteOrder.h:358: error: syntax error before "uint64_t" /usr/include/libkern/OSByteOrder.h:370: error: syntax error before "void" /usr/include/libkern/OSByteOrder.h:381: error: syntax error before "void" /usr/include/libkern/OSByteOrder.h:392: error: syntax error before "void" /usr/include/libkern/OSByteOrder.h:405: error: syntax error before "uint16_t" /usr/include/libkern/OSByteOrder.h:415: error: syntax error before "uint32_t" /usr/include/libkern/OSByteOrder.h:425: error: syntax error before "uint64_t" /usr/include/libkern/OSByteOrder.h:437: error: syntax error before "void" /usr/include/libkern/OSByteOrder.h:448: error: syntax error before "void" /usr/include/libkern/OSByteOrder.h:459: error: syntax error before "void" /usr/include/libkern/OSByteOrder.h:490: error: syntax error before "uint16_t" /usr/include/libkern/OSByteOrder.h:499: error: syntax error before "uint32_t" /usr/include/libkern/OSByteOrder.h:508: error: syntax error before "uint64_t" /usr/include/libkern/OSByteOrder.h:537: error: syntax error before "uint16_t" /usr/include/libkern/OSByteOrder.h:546: error: syntax error before "uint32_t" /usr/include/libkern/OSByteOrder.h:555: error: syntax error before "uint64_t" make: * private/var/root/darwinports/dports/print/freetype/work/freetype-2.1.7/objs/ftsystem.lo Error 1

Warning: the following items did not execute (for freetype): com.apple.install com.apple.build com.apple.destroot localhost:~ root#

Attachments (1)

patch-configure (274 bytes) - added by jc@… 20 years ago.
patch configure file. after that buid was done.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 20 years ago by toby@…

Owner: changed from darwinports-bugs@… to toby@…
severity: blockernormal

I don't have a Darwin/x86 box to run this on. It looks like the issue is with OS_INLINE, which should become 'static inline' - maybe for reason it isn't getting defined. Anyone with Darwin/x86 care to comment?

comment:2 Changed 20 years ago by toby@…

Owner: changed from toby@… to jkh@…

comment:3 Changed 20 years ago by brian.bechtel@…

This fails because {ppc,i386]/OSByteOrder.h defines OS_INLINE as "static inline", but "inline" is a C99 construct, not a C89 construct, and the configure script defines the C flags "-pedantic -ansi". You need to either add "-std=c99" or remove "-pedantic"

comment:4 Changed 20 years ago by brian.bechtel@…

I specifically fixed it for my 7.2.1 RC3 x86 build by appending the following to dports/print/freetype/ Portfile:

pre-configure { reinplace "spedantic -ansi
g" ${worksrcpath}/builds/unix/configure
reinplace "spedantic -ansi
g" ${worksrcpath}/builds/unix/configure.ac }

Changed 20 years ago by jc@…

Attachment: patch-configure added

patch configure file. after that buid was done.

comment:5 Changed 19 years ago by mww@…

op_sys: All
rep_platform: All
Resolution: fixed
Status: newclosed

fixed as a nice x86-patch; thanks folks!

comment:6 Changed 19 years ago by mww@…

Cc: brian.bechtel@… added

comment:7 Changed 19 years ago by mww@…

* Bug 2070 has been marked as a duplicate of this bug. *

comment:8 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: closedreopened

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

Cc: ryandesign@… added
Milestone: Port Bugs
Owner: changed from jkh@… to ryandesign@…
Status: reopenednew

comment:10 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: wontfix
Status: newclosed

A patch was applied on 2004-11-16 in r9312 implementing the x86 variant.

However, this variant was brought into question on the mailing list on 2007-05-27:

http://lists.macosforge.org/pipermail/macports-dev/2007-May/001746.html

Since the project is now called MacPorts and pure Darwin is not supported anymore, and since freetype compiles just fine on Intel Macs without the patch, it was decided to remove the x86 variant again in r25663.

comment:11 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.