[MacPorts] #47813: texlive-bin @2014_9 won't build on PPC Tiger (Mac OS X 10.4.11) because of re-write of C definition
MacPorts
noreply at macports.org
Fri May 22 15:49:16 PDT 2015
#47813: texlive-bin @2014_9 won't build on PPC Tiger (Mac OS X 10.4.11) because of
re-write of C definition
-----------------------------+--------------------------------
Reporter: Peter_Dyballa@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Keywords: | Port: texlive-bin
-----------------------------+--------------------------------
{{{
depbase=`echo psgs.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
/opt/local/bin/gcc-apple-4.2 -DHAVE_CONFIG_H -I. -I./gui -DPS_GS
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports
.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-
source-20140614-stripped/texk
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports
.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-
source-20140614-stripped/texk -I/opt/local/include/freetype2
-I/opt/local/include -isystem/opt/local/include -Wimplicit -Wreturn-type
-Wdeclaration-after-statement -Wno-unknown-pragmas -pipe -Os -arch ppc -MT
psgs.o -MD -MP -MF $depbase.Tpo -c -o psgs.o psgs.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from psgs.c:40:
/usr/include/strings.h:75: error: expected declaration specifiers or '...'
before '(' token
/usr/include/strings.h:75: error: expected declaration specifiers or '...'
before '(' token
/usr/include/strings.h:76: error: expected declaration specifiers or '...'
before '(' token
/usr/include/strings.h:76: error: expected declaration specifiers or '...'
before '(' token
make[5]: *** [psgs.o] Error 1
make[5]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports
.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-
source-20140614-stripped/texk/xdvik'
}}}
/usr/include/strings.h has:
{{{
58 #if !defined(_XOPEN_SOURCE) && !defined(_POSIX_C_SOURCE)
59
60 #include <string.h>
61
62 #else
63
64 #include <_types.h>
65
66 #ifndef _SIZE_T
67 #define _SIZE_T
68 typedef __darwin_size_t size_t;
69 #endif
70
71 int bcmp(const void *, const void *, size_t);
72 void bcopy(const void *, void *, size_t);
73 void bzero(void *, size_t);
74 int ffs(int);
75 char *index(const char *, int);
76 char *rindex(const char *, int);
77 int strcasecmp(const char *, const char *);
78 int strncasecmp(const char *, const char *, size_t);
79
80 #endif /* _POSIX_C_SOURCE */
}}}
which then gets pre-compiled as:
{{{
# 40 "psgs.c" 2
# 1 "/usr/include/strings.h" 1 3 4
# 71 "/usr/include/strings.h" 3 4
int bcmp(const void *, const void *, size_t);
void bcopy(const void *, void *, size_t);
void bzero(void *, size_t);
int ffs(int);
char *(strchr((const char *),(int)));
char *(strrchr((const char *),(int)));
int strcasecmp(const char *, const char *);
int strncasecmp(const char *, const char *, size_t);
# 41 "psgs.c" 2
}}}
The missing WHITE SPACE after the KOMMA causes the error? This is
introduced here:
{{{
# 163 "xdvi.h" 2
# 1 "/opt/local/include/X11/Xos.h" 1 3 4
# 34 "/opt/local/include/X11/Xos.h" 3 4
#define _XOS_H_
# 67 "/opt/local/include/X11/Xos.h" 3 4
#define index(s,c) (strchr((s),(c)))
#define rindex(s,c) (strrchr((s),(c)))
# 88 "/opt/local/include/X11/Xos.h" 3 4
}}}
--
Ticket URL: <https://trac.macports.org/ticket/47813>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list