bug-ocrad
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-ocrad] ocrad-0.6 build feedback


From: Nelson H. F. Beebe
Subject: [Bug-ocrad] ocrad-0.6 build feedback
Date: Wed, 24 Dec 2003 20:01:58 -0000

The ocrad-0.6 build failed on several systems:

============================================================
Machinetype:            Apple PowerMac G4 (2 1400 MHz PowerPC 7450 CPUs, 2GB 
RAM);   Darwin 6.5 (MacOS 10.2.5)
Remote gcc version:     gcc (GCC) 3.3.2
Remote g++ version:     g++ (GCC) 3.3.2
Configure environment:  CC=gcc CXX=g++ LDFLAGS="-R/usr/local/lib" 
g++ -Wall -W -O2 -c -o main.o main.cc
main.cc:30:20: getopt.h: No such file or directory
main.cc: In function `int main(int, char**)':
main.cc:220: error: `no_argument' undeclared (first use this function)
main.cc:220: error: (Each undeclared identifier is reported only once for each 
   function it appears in.)
main.cc:221: error: `required_argument' undeclared (first use this function)
main.cc:232: error: elements of array `option long_options[]' have incomplete 
   type
main.cc:232: error: storage size of `long_options' isn't known
main.cc:235: error: `getopt_long' undeclared (first use this function)
main.cc:245: error: `optarg' undeclared (first use this function)
main.cc:287: error: `optind' undeclared (first use this function)
main.cc:232: confused by earlier errors, bailing out
make: *** [main.o] Error 1

============================================================
Machinetype:            Intel Pentium II (2 CPUs, 450 MHz);       FreeBSD 4.4.0
Remote gcc version:     2.95.3
Remote g++ version:     2.95.3
Configure environment:  CC=gcc CXX=g++ 
LDFLAGS="-L/home/staff/computing/beebe/i386/local/lib 
-R/home/staff/computing/beebe/i386/local/lib -L/usr/X11R6/lib" 
CPPFLAGS=-I/usr/local/include 

g++ -Wall -W -O2 -c -o iso_8859_1.o iso_8859_1.cc
In file included from iso_8859_1.cc:20:
iso_8859_1.h:103: parse error before `!'
iso_8859_1.h:104: parse error before `!'
iso_8859_1.h:105: parse error before `!'
iso_8859_1.h:108: parse error before `!'
iso_8859_1.cc:129: parse error before `('
iso_8859_1.cc:135: parse error before `('
iso_8859_1.cc:141: parse error before `('
iso_8859_1.cc:144: ANSI C++ forbids declaration `ch' with no type
iso_8859_1.cc:144: implicit declaration of function `int base_letter(...)'
iso_8859_1.cc:145: parse error before `return'
iso_8859_1.cc: In function `static bool ISO_8859_1::islower_small(unsigned 
char)':
iso_8859_1.cc:151: parse error before `('
iso_8859_1.cc:159: confused by earlier errors, bailing out

============================================================
Machinetype:            Intel Pentium III (600 MHz);    FreeBSD 5.0
Remote gcc version:     gcc (GCC) 3.3.2
Remote g++ version:     g++ (GCC) 3.3.2
Configure environment:  CC=gcc CXX=g++ LDFLAGS=-Wl,-rpath,/usr/local/lib 

g++ -Wall -W -O2 -c -o main.o main.cc
In file included from main.cc:30:
/usr/local/include/getopt.h:115: error: declaration of C function `int getopt()
   ' conflicts with
/usr/local/lib/gcc-lib/i386-unknown-freebsd5.0/3.3.2/include/unistd.h:379: 
error: previous
   declaration `int getopt(int, char* const*, const char*)' here
============================================================
Machinetype:            DEC Alpha 4100-5/466 (4 CPUs, 466 MHz, 2GB RAM);        
  OSF/1 4.0F
Remote cc version:      DEC C V5.9-005 on Digital UNIX V4.0 (Rev. 1229)
Remote cxx version:     Compaq C++ V6.2-024 for Digital UNIX V4.0F (Rev. 1229)
Configure environment:  CC=cc CXX=cxx LDFLAGS=-Wl,-rpath,/usr/local/lib 

g++ -Wall -W -O2 -c -o main.o main.cc
main.cc: In function `int main(int, char**)':
main.cc:220: error: `no_argument' undeclared (first use this function)
main.cc:220: error: (Each undeclared identifier is reported only once for each 
   function it appears in.)
main.cc:221: error: `required_argument' undeclared (first use this function)
main.cc:232: error: elements of array `option long_options[]' have incomplete 
   type
main.cc:232: error: storage size of `long_options' isn't known
main.cc:235: error: `getopt_long' undeclared (first use this function)
main.cc:232: confused by earlier errors, bailing out
make: *** [main.o] Error 1
============================================================
Machinetype:            DEC Alpha 4100-5/466 (4 CPUs, 466 MHz, 2GB RAM);        
  OSF/1 4.0F
Remote gcc version:     gcc (GCC) 3.3.2
Remote g++ version:     g++ (GCC) 3.3.2
Configure environment:  CC=cxx CFLAGS="-x cxx" CXX=cxx 
LDFLAGS=-Wl,-rpath,/usr/local/lib 

g++ -Wall -W -O2 -c -o main.o main.cc
main.cc:220: error: `no_argument' undeclared (first use this function)
main.cc:220: error: (Each undeclared identifier is reported only once for each 
   function it appears in.)
main.cc:221: error: `required_argument' undeclared (first use this function)
main.cc:232: error: elements of array `option long_options[]' have incomplete 
   type
main.cc:232: error: storage size of `long_options' isn't known
main.cc:235: error: `getopt_long' undeclared (first use this function)
main.cc:232: confused by earlier errors, bailing out
make: *** [main.o] Error 1

============================================================
/usr/local/bin/.: Permission denied.
Machinetype:            Sun Ultra Enterprise 450/400 (4 CPUs, 400 MHz);  
Solaris 2.7
Remote c89 version:     cc: WorkShop Compilers 5.0 98/12/15 C 5.0
Remote cc version:      cc: WorkShop Compilers 5.0 98/12/15 C 5.0
Remote CC version:      CC: WorkShop Compilers 5.0 98/12/15 C++ 5.0
Remote gcc version:     2.95.3
Remote g++ version:     2.95.3
Configure environment:  CC=cc CXX=CC LDFLAGS=-R/usr/local/lib 

g++ -Wall -W -O2 -c -o iso_8859_1.o iso_8859_1.cc
In file included from iso_8859_1.cc:20:
iso_8859_1.h:103: parse error before `+'
iso_8859_1.h:104: parse error before `+'
iso_8859_1.h:105: parse error before `+'
iso_8859_1.h:108: parse error before `+'
iso_8859_1.cc:129: parse error before `('
iso_8859_1.cc:135: parse error before `('
iso_8859_1.cc:141: parse error before `('
iso_8859_1.cc:144: ANSI C++ forbids declaration `ch' with no type
iso_8859_1.cc:144: implicit declaration of function `int base_letter(...)'
iso_8859_1.cc:145: parse error before `return'
iso_8859_1.cc: In function `static bool ISO_8859_1::islower_small(unsigned 
char)':
iso_8859_1.cc:151: parse error before `('
iso_8859_1.cc:159: confused by earlier errors, bailing out
make: *** [iso_8859_1.o] Error 1

This one exhibits a problem: the autoconfiguration and/or Makefile is
forcing the use of g++, instead of allowing CXX to be set at configure
time to a suitable C++ compiler.
============================================================
Machinetype:            Intel Pentium III (600 MHz);    OpenBSD 3.2 GENERIC#25 
i386
Remote gcc version:     gcc (GCC) 3.3.2
Remote g++ version:     g++ (GCC) 3.3.2
Configure environment:  CC=gcc CXX=g++ LDFLAGS=-Wl,-rpath,/usr/local/lib 

g++ -Wall -W -O2 -c -o main.o main.cc
main.cc:30:20: getopt.h: No such file or directory
main.cc: In function `int main(int, char**)':
main.cc:220: error: `no_argument' undeclared (first use this function)
main.cc:220: error: (Each undeclared identifier is reported only once for each 
   function it appears in.)
main.cc:221: error: `required_argument' undeclared (first use this function)
main.cc:232: error: elements of array `option long_options[]' have incomplete 
   type
main.cc:232: error: storage size of `long_options' isn't known
main.cc:235: error: `getopt_long' undeclared (first use this function)
main.cc:232: confused by earlier errors, bailing out
make: *** [main.o] Error 1

Several other builds failed as well, but the causes were one of the
above.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- Center for Scientific Computing       FAX: +1 801 581 4148                  -
- University of Utah                    Internet e-mail: address@hidden  -
- Department of Mathematics, 110 LCB        address@hidden  address@hidden -
- 155 S 1400 E RM 233                                                         -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]