Re: Compiling 2.4.4p1 with gcc on SunOs 4.1.3
2003-10-01 11:36:15
On Wed, Oct 01, 2003 at 03:54:00PM +0100, Stevens, Julian C wrote:
>
> I've been trying to compile Amanda 2.4.4p1 on SunOs 4.1.3 using gcc 2.8.1
> The configure seems fine, but when I try to make it I get:
>
> tapetype.c
> tapetype.c: In function 'main':
> tapetype.c:369: 'optind' undeclared (first use in this function)
> tapetype.c:369: (each undeclared identifier is reportes only once
> tapetype.c:369: for each function it appears in.)
> *** Error code 1
> make: Fatal error: Command failed for target 'tapetype.o'
>
> Please can anyone suggest what the problem might be?
"optind" is commonly used as a variable name in a program or
library called getopt(s).
There are several versions of this library available on my Solaris
system and I strongly suspect that they have changed since SunOS 4.x.
See if your system has other "getopt", "getopts" (maybe with a cap G).
If so, try to point your source files to pick those libraries and
header files rather than the ones it currently uses.
--
Jon H. LaBadie jon AT jgcomp DOT com
JG Computing
4455 Province Line Road (609) 252-0159
Princeton, NJ 08540-4322 (609) 683-7220 (fax)
|
|
|