From ante@comp.nus.edu.sg Sun May 23 18:31:06 2004 Received: with ECARTIS (v1.0.0; list info-inventor-dev); Sun, 23 May 2004 18:31:09 -0700 (PDT) Received: from x86unx3.comp.nus.edu.sg (x86unx3.comp.nus.edu.sg [137.132.80.24]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i4O1V4KO025673 for ; Sun, 23 May 2004 18:31:05 -0700 Received: from e500c.comp.nus.edu.sg (e500c.comp.nus.edu.sg [137.132.90.68]) by x86unx3.comp.nus.edu.sg (8.9.1-20030924/8.9.1) with SMTP id JAA14416 for ; Mon, 24 May 2004 09:30:55 +0800 (GMT-8) Received: from sn40.comp.nus.edu.sg(137.132.80.15) by e500c.comp.nus.edu.sg via csmap id 51f701de_ad22_11d8_80ac_003048298555_15828; Mon, 24 May 2004 09:33:12 +0800 (SGT) Received: from ante (ante.ddns.comp.nus.edu.sg [137.132.90.142]) (authenticated bits=0) by sn40.comp.nus.edu.sg (8.12.10/8.12.10) with ESMTP id i4O1Ugfg004577 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 24 May 2004 09:30:54 +0800 (SGT) Subject: undefined reference to `__ctype_b' From: Gildardo Sanchez To: info-inventor-dev@oss.sgi.com Content-Type: text/plain Organization: National University of Singapore Message-Id: <1085362268.8754.3.camel@ante.ddns.comp.nus.edu.sg> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Mon, 24 May 2004 09:31:08 +0800 Content-Transfer-Encoding: 7bit X-archive-position: 95 X-ecartis-version: Ecartis v1.0.0 Sender: info-inventor-dev-bounce@oss.sgi.com Errors-to: info-inventor-dev-bounce@oss.sgi.com X-original-sender: ante@comp.nus.edu.sg Precedence: bulk X-list: info-inventor-dev Hi there. I just upgraded my computer to Fedora Core 2. However, when I tried to compile inventor-2.1.5-10, I got the error: /usr/bin/g++ -L/usr/local///usr/lib -L/usr/X11R6/lib Main.o ClassDef.o Man.o Reader.o Writer.o BuildIssues.o -lInventor -o ivman /usr/local///usr/lib/libInventor.so: undefined reference to `__ctype_b' I saw some comments regarding this problem, but still cannot compile. Does anybody how to get OpenInventor working when this happens? Regards, Gildardo Sanchez Research Fellow School of Computing National University of Singapore From markgw@sgi.com Sun May 23 19:06:28 2004 Received: with ECARTIS (v1.0.0; list info-inventor-dev); Sun, 23 May 2004 19:06:33 -0700 (PDT) Received: from omx1.americas.sgi.com (cfcafw.sgi.com [198.149.23.1]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i4O26RKO026750 for ; Sun, 23 May 2004 19:06:27 -0700 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by omx1.americas.sgi.com (8.12.10/8.12.9/linux-outbound_gateway-1.1) with SMTP id i4O1rbiv031666 for ; Sun, 23 May 2004 20:53:38 -0500 Received: from woolami.melbourne.sgi.com (woolami.melbourne.sgi.com [134.14.55.160]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id LAA05102; Mon, 24 May 2004 11:53:31 +1000 Date: Mon, 24 May 2004 11:53:31 +1000 (EST) From: Mark Goodwin X-X-Sender: markgw@woolami.melbourne.sgi.com To: Gildardo Sanchez cc: info-inventor-dev@oss.sgi.com Subject: Re: undefined reference to `__ctype_b' In-Reply-To: <1085362268.8754.3.camel@ante.ddns.comp.nus.edu.sg> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-archive-position: 96 X-ecartis-version: Ecartis v1.0.0 Sender: info-inventor-dev-bounce@oss.sgi.com Errors-to: info-inventor-dev-bounce@oss.sgi.com X-original-sender: markgw@sgi.com Precedence: bulk X-list: info-inventor-dev On Mon, 24 May 2004, Gildardo Sanchez wrote: > > I just upgraded my computer to Fedora Core 2. However, when I tried to > compile inventor-2.1.5-10, I got the error: > /usr/bin/g++ -L/usr/local///usr/lib -L/usr/X11R6/lib Main.o > ClassDef.o Man.o Reader.o Writer.o BuildIssues.o -lInventor > -o ivman > /usr/local///usr/lib/libInventor.so: undefined reference to `__ctype_b' > > I saw some comments regarding this problem, but still cannot compile. > Does anybody how to get OpenInventor working when this happens? The problem is libFL.a was built with gcc 2.96 / glibc 2.2.x. The following patch works for ia64 RH/AS3.x, and will quite likely work on recent fedora on i386 too. After applying the patch, "make rpms" should now produce both binary and src RPMs. -- Mark diff -uNr inventor.orig/GNUmakefile inventor/GNUmakefile --- inventor.orig/GNUmakefile Sat Mar 24 13:47:41 2001 +++ inventor/GNUmakefile Wed May 19 14:42:27 2004 @@ -23,5 +23,5 @@ su -c "cp -f ../$(TARBALL) /usr/src/redhat/SOURCES" for s in $(SPECS); do \ - (su -c "cd build; rpm -bb $$s") \ + (su -c "cd build; rpmbuild -ba $$s") \ done; diff -uNr inventor.orig/build/sgi-OpenInventor-clients.rpm.spec inventor/build/sgi-OpenInventor-clients.rpm.spec --- inventor.orig/build/sgi-OpenInventor-clients.rpm.spec Fri Oct 6 05:33:20 2000 +++ inventor/build/sgi-OpenInventor-clients.rpm.spec Thu May 20 13:57:23 2004 @@ -5,6 +5,10 @@ Packager: Silicon Graphics, Inc. Source: oiv.tar.gz +BuildRoot: %{_tmppath}/sgi-OpenInventor-root +%define _unpackaged_files_terminate_build 0 +%define _missing_doc_files_terminate_build 0 + # # Change the following as appropriate. # @@ -41,8 +45,10 @@ %setup -n inventor %build -make clobber -make install +R=/var/tmp/sgi-OpenInventor-root +rm -rf $R +make IVROOT=$R clobber +make IVROOT=$R install %post type1=/usr/lib/X11/fonts/Type1 diff -uNr inventor.orig/build/sgi-OpenInventor-data.rpm.spec inventor/build/sgi-OpenInventor-data.rpm.spec --- inventor.orig/build/sgi-OpenInventor-data.rpm.spec Mon Sep 18 19:01:03 2000 +++ inventor/build/sgi-OpenInventor-data.rpm.spec Thu May 20 13:57:32 2004 @@ -5,6 +5,10 @@ Packager: Silicon Graphics, Inc. Source: oiv.tar.gz +BuildRoot: %{_tmppath}/sgi-OpenInventor-root +%define _unpackaged_files_terminate_build 0 +%define _missing_doc_files_terminate_build 0 + # # Change the following as appropriate. # @@ -41,7 +45,10 @@ %build export LSUBDIRS=data -make -e install +R=/var/tmp/sgi-OpenInventor-root +rm -rf $R +make IVROOT=$R clobber +make IVROOT=$R -e install %files %attr(-, root, root) %dir /usr/share/data diff -uNr inventor.orig/build/sgi-OpenInventor-devel.rpm.spec inventor/build/sgi-OpenInventor-devel.rpm.spec --- inventor.orig/build/sgi-OpenInventor-devel.rpm.spec Fri Oct 6 05:33:20 2000 +++ inventor/build/sgi-OpenInventor-devel.rpm.spec Thu May 20 13:57:40 2004 @@ -5,6 +5,10 @@ Packager: Silicon Graphics, Inc. Source: oiv.tar.gz +BuildRoot: %{_tmppath}/sgi-OpenInventor-root +%define _unpackaged_files_terminate_build 0 +%define _missing_doc_files_terminate_build 0 + # # Change the following as appropriate. # @@ -43,8 +47,10 @@ %build export LIBTYPE=debug -make clobber -make install +R=/var/tmp/sgi-OpenInventor-root +rm -rf $R +make IVROOT=$R clobber +make IVROOT=$R install %post type1=/usr/lib/X11/fonts/Type1 diff -uNr inventor.orig/libFL/GNUmakefile inventor/libFL/GNUmakefile --- inventor.orig/libFL/GNUmakefile Fri May 18 06:57:20 2001 +++ inventor/libFL/GNUmakefile Thu May 20 10:37:59 2004 @@ -3,7 +3,7 @@ SUBDIRS = src ifdef FREETYPE -SUBDIRS = freetype +SUBDIRS = ang endif all install: link diff -uNr inventor.orig/make/ivcommonrules inventor/make/ivcommonrules --- inventor.orig/make/ivcommonrules Sat Jul 12 08:40:54 2003 +++ inventor/make/ivcommonrules Thu May 20 14:53:59 2004 @@ -53,7 +53,7 @@ .SUFFIXES: .ivm .3iv .ivm.3iv: - (cd .. && $(IVMAN) `$(MAKEMANDIRS) $(*F)`) > $@ + (cd .. && LD_LIBRARY_PATH=$(IVLIBDIR):DEFAULT $(IVMAN) `$(MAKEMANDIRS) $(*F)`) > $@ MAN3PAGES = $(IVMFILES:.ivm=.3iv) diff -uNr inventor.orig/make/system inventor/make/system --- inventor.orig/make/system Sat Jul 12 08:40:54 2003 +++ inventor/make/system Fri May 21 12:10:15 2004 @@ -11,6 +11,7 @@ ifneq (, $(findstring linux, $(UNAME))) usingLinux = 1 +FREETYPE = 1 endif ifneq (, $(findstring freebsd, $(UNAME)))