Re(2): Building on MacOS X????


Subject: Re(2): Building on MacOS X????
From: Greg Evans (raisplin@rcn.com)
Date: Sat May 05 2001 - 01:45:49 CDT


After getting everything via CVS as Dom suggested to me (Thanks Dom) here
is what happens when I do the following:

ABIROOT on my machine is just plain /ABI, and I am using the DevTools that
came with MacOS X..

=======What Happens when I try to build currently=======

% cd $ABIROOT/abi
% make

...
Found libiconv in peer directory
creating cache ./config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking how to run the C preprocessor... gcc -O -E -traditional-cpp
checking whether -traditional is needed for gcc -O -traditional-cpp on
this system... no
checking for ranlib... ranlib
checking for a BSD compatible install... cp
checking host system type... unknown-unknown-unknown
checking for AIX... no
checking for minix/config.h... no
checking for POSIXized ISC... no
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... /ABI/libiconv/conftest
yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... none
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... no
checking command to parse /usr/bin/nm -p output... ok
checking how to hardcode library paths into programs... unsupported
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking for iconv.h... yes
checking for iconv... yes
checking for iconv declaration...
          extern size_t iconv (iconv_t cd, const char * *inbuf, size_t
*inbytesleft, char * *outbuf, size_t* outbytesleft);
checking byte ordering... big endian
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating man/Makefile
creating tests/Makefile
creating include/libiconv.h
creating src/config.h
Building with [LicensedTrademarks:Off Debug:Off BiDi:Off Pspell:Off
Scripting:Off].
src/iconv.c:
/ABI/abi/../libiconv/include/iconv.h:1: warning: redefinition of macro
LIBICONV_PLUG
/ABI/abi/../libiconv/include/libiconv.h:64: undefined type, found `iconv_t'
/ABI/abi/../libiconv/include/libiconv.h:74: undefined type, found `iconv_t'
/ABI/abi/../libiconv/include/libiconv.h:80: undefined type, found `iconv_t'
src/iconv.c:89: undefined type, found `iconv_t'
src/iconv.c:150: illegal statement, missing `;' after `)'
src/iconv.c:156: undefined type, found `iconv_t'
src/iconv.c:376: undefined type, found `iconv_t'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic
mode
In file included from src/iconv.c:19:
/ABI/abi/../libiconv/include/libiconv.h:64: parse error before `iconv_open'
/ABI/abi/../libiconv/include/libiconv.h:64: warning: type defaults to `int'
  in declaration of `iconv_open'
/ABI/abi/../libiconv/include/libiconv.h:64: warning: data definition has
no type or storage class
/ABI/abi/../libiconv/include/libiconv.h:74: parse error before `cd'
/ABI/abi/../libiconv/include/libiconv.h:80: parse error before `cd'
src/iconv.c:89: parse error before `iconv_open'
src/iconv.c:90: warning: return-type defaults to `int'
src/iconv.c: In function `iconv_open':
src/iconv.c:100: `iconv_t' undeclared (first use in this function)
src/iconv.c:100: (Each undeclared identifier is reported only once
src/iconv.c:100: for each function it appears in.)
src/iconv.c:150: parse error before `cd'
src/iconv.c:154: warning: control reaches end of non-void function
src/iconv.c: At top level:
src/iconv.c:156: parse error before `icd'
src/iconv.c: In function `iconv':
src/iconv.c:160: `icd' undeclared (first use in this function)
src/iconv.c:161: `inbuf' undeclared (first use in this function)
src/iconv.c:162: `outbuf' undeclared (first use in this function)
src/iconv.c:169: `outbytesleft' undeclared (first use in this function)
src/iconv.c:183: `inbytesleft' undeclared (first use in this function)
src/iconv.c: At top level:
src/iconv.c:376: parse error before `icd'
src/iconv.c: In function `iconv_close':
src/iconv.c:378: `icd' undeclared (first use in this function)
make[5]: *** [/ABI/abi/src/MACOSX_1.3.2_ppc_OBJ/obj/libiconv/src/iconv.o]
Error 1
make[4]: *** [_LIBICONV_] Error 2
make[3]: *** [build] Error 2
make[2]: *** [build] Error 2
make[1]: *** [build] Error 2
make: *** [compile] Error 2

One thing I find interesting is that I have installed 'fink' from
sourceforge.net and it being a package system has info on 'libiconv' and I
can build 'libiconv' from that package system.

Maybe this will help someone that knows a lot more than me about building
Abiword :) This is from the info file from the fink system located in /sw/
fink/info (from a default install on my machine)

Package: libiconv
Version: 1.6.1
UpdateLibtool: true
PatchScript: cp -f ltconfig ltmain.sh autoconf/
  cp -f ltconfig ltmain.sh libcharset/autoconf/
SetCPPFLAGS: -traditional-cpp
InstallScript: make install prefix=%i
  mv %i/lib/charset.alias %i/lib/charset.alias.libiconv
Maintainer: Jeremy Higgs <jhiggs@iprsystems.com>



This archive was generated by hypermail 2b25 : Sat May 26 2001 - 03:51:02 CDT