Subject: pkg/20514: teTex bin fails to build on Darwin
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yves@gnu-darwin.org>
List: netbsd-bugs
Date: 02/27/2003 12:27:24
>Number: 20514
>Category: pkg
>Synopsis: teTex bin fails to build on Darwin
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 27 12:28:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Yves de Champlain
>Release:
>Organization:
>Environment:
Darwin Bilbo.local. 6.4 Darwin Kernel Version 6.4: Wed Jan 29 18:50:42 PST 2003; root:xnu/xnu-344.26.obj~1/RELEASE_PPC Power Macintosh powerpc
>Description:
ranlib libpdf.a
rm -f pdftexdir/xpdf-0.80/xpdf/pdftoepdf.cc pdftexdir/xpdf-0.80/xpdf/epdf.h
cp ./pdftexdir/epdf.h pdftexdir/xpdf-0.80/xpdf
cp ./pdftexdir/pdftoepdf.cc pdftexdir/xpdf-0.80/xpdf
cd pdftexdir/xpdf-0.80/xpdf && /usr/bin/gnumake CC='gcc' CFLAGS='-O2 -Dunix -I/usr/local/include -I/usr/X11R6/include ' pdftoepdf.a
g++ -O2 -Dunix -I/usr/local/include -I/usr/X11R6/include -I./../goo -I. -I. -DPDF_PARSER_ONLY -c Array.cc
g++ -O2 -Dunix -I/usr/local/include -I/usr/X11R6/include -I./../goo -I. -I. -DPDF_PARSER_ONLY -c Catalog.cc
g++ -O2 -Dunix -I/usr/local/include -I/usr/X11R6/include -I./../goo -I. -I. -DPDF_PARSER_ONLY -c Dict.cc
g++ -O2 -Dunix -I/usr/local/include -I/usr/X11R6/include -I./../goo -I. -I. -DPDF_PARSER_ONLY -c Error.cc
g++ -O2 -Dunix -I/usr/local/include -I/usr/X11R6/include -I./../goo -I. -I. -DPDF_PARSER_ONLY -c Lexer.cc
g++ -O2 -Dunix -I/usr/local/include -I/usr/X11R6/include -I./../goo -I. -I. -DPDF_PARSER_ONLY -c Link.cc
Link.h:34: storage size of `_ZTI10LinkAction' isn't known
Link.h:112: storage size of `_ZTI8LinkGoTo' isn't known
Link.h:141: storage size of `_ZTI9LinkGoToR' isn't known
Link.h:173: storage size of `_ZTI10LinkLaunch' isn't known
Link.h:200: storage size of `_ZTI7LinkURI' isn't known
Link.h:225: storage size of `_ZTI11LinkUnknown' isn't known
gnumake[3]: *** [Link.o] Error 1
gnumake[2]: *** [pdftexdir/xpdf-0.80/xpdf/pdftoepdf.a] Error 2
>How-To-Repeat:
Note that to get this far, I had to change a few things,
in patch-aa, replace
#ifdef __NetBSD__
with
#ifdef __NetBSD__ || __APPLE__
in work/teTeX-1.0/config/, replace
ltconfig and ltmain.sh by libtool13 files
that know about darwin
(I took ltconfig13 and ltmain13 from
http://distfiles.opendarwin.org/)
apply this patch :
diff -wubr teTeX-1.0/config/config.guess teTeX-1.0-mac/config/config.guess
--- config/config.guess Tue Jan 5 05:28:47 1999
+++ config/config.guess Wed Sep 25 02:17:52 2002
@@ -51,6 +51,9 @@
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+ *:Darwin:*:*)
+ echo `uname -p`-apple-darwin${UNAME_RELEASE}
+ exit 0 ;;
alpha:OSF1:*:*)
if test $UNAME_RELEASE = "V4.0"; then
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
diff -wubr teTeX-1.0/config/config.sub teTeX-1.0-mac/config/config.sub
--- config/config.sub Tue Jan 5 05:28:51 1999
+++ config/config.sub Wed Sep 25 02:16:10 2002
@@ -709,7 +709,7 @@
| -aos* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
+ | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -darwin* | -riscix* \
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
diff -wubr teTeX-1.0/libs/ncurses/config.guess teTeX-1.0-mac/libs/ncurses/config.guess
--- libs/ncurses/config.guess Tue Jan 5 05:28:47 1999
+++ libs/ncurses/config.guess Wed Sep 25 02:18:15 2002
@@ -51,6 +51,9 @@
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+ *:Darwin:*:*)
+ echo `uname -p`-apple-darwin${UNAME_RELEASE}
+ exit 0 ;;
alpha:OSF1:*:*)
if test $UNAME_RELEASE = "V4.0"; then
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
diff -wubr teTeX-1.0/libs/ncurses/config.sub teTeX-1.0-mac/libs/ncurses/config.sub
--- libs/ncurses/config.sub Tue Jan 5 05:28:51 1999
+++ libs/ncurses/config.sub Wed Sep 25 02:16:28 2002
@@ -709,7 +709,7 @@
| -aos* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
+ | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -darwin* | -riscix* \
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
diff -wubr teTeX-1.0/texinfo/config.guess teTeX-1.0-mac/texinfo/config.guess
--- texinfo/config.guess Tue Jan 5 05:28:47 1999
+++ texinfo/config.guess Wed Sep 25 02:18:34 2002
@@ -51,6 +51,9 @@
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+ *:Darwin:*:*)
+ echo `uname -p`-apple-darwin${UNAME_RELEASE}
+ exit 0 ;;
alpha:OSF1:*:*)
if test $UNAME_RELEASE = "V4.0"; then
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
diff -wubr teTeX-1.0/texinfo/config.sub teTeX-1.0-mac/texinfo/config.sub
--- texinfo/config.sub Tue Jan 5 05:28:51 1999
+++ texinfo/config.sub Wed Sep 25 02:16:42 2002
@@ -709,7 +709,7 @@
| -aos* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
+ | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -darwin* | -riscix* \
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
diff -wubr teTeX-1.0/texk/config.guess teTeX-1.0-mac/texk/config.guess
--- texk/config.guess Tue Jan 5 05:28:47 1999
+++ texk/config.guess Wed Sep 25 02:18:49 2002
@@ -51,6 +51,9 @@
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+ *:Darwin:*:*)
+ echo `uname -p`-apple-darwin${UNAME_RELEASE}
+ exit 0 ;;
alpha:OSF1:*:*)
if test $UNAME_RELEASE = "V4.0"; then
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
diff -wubr teTeX-1.0/texk/config.sub teTeX-1.0-mac/texk/config.sub
--- texk/config.sub Tue Jan 5 05:28:51 1999
+++ texk/config.sub Wed Sep 25 02:16:54 2002
@@ -709,7 +709,7 @@
| -aos* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
+ | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -darwin* | -riscix* \
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
>Fix:
many prayers ?
>Release-Note:
>Audit-Trail:
>Unformatted: