[cvsnt] Re: cvsnt on AIX
hannes at 2horns.com
Fri Apr 2 18:52:01 BST 2004
Now that I've installed VisualAge C++ vi , I get much further, precisely up
to the following :
xlC_r -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../lib -g -c -o cvslockd.o
`test -f 'cvslockd.cpp' || echo './'`cvslockd.cpp
"cvslockd.cpp", line 42.21: 1540-0215 (S) The wrong number of arguments have
been specified for "getopt_long()".
make: *** [cvslockd.o] Error 1
make: Leaving directory `/archive/home/hans/cvsnt-2.0.36/lockservice'
After wasting two days, I've finally come to the conclusion that I MUST use
GNU compilers and libraries,
as getopt is a GNU thing.
Could that fact be a little bit more explicit on the linux installation page
So I went ahead and installed gcc (v3.3.2) and started over with configure,
This is as far as I got :
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../lib -I../src -g -O2 -c -o
cvsgui_process.o `test -f 'cvsgui_process.cpp' || echo
In file included from
/usr/local/include/c++/3.3.2/cstdio:108: error: `fgetpos' not declared
/usr/local/include/c++/3.3.2/cstdio:110: error: `fopen' not declared
/usr/local/include/c++/3.3.2/cstdio:115: error: `freopen' not declared
/usr/local/include/c++/3.3.2/cstdio:118: error: `fsetpos' not declared
Oops! Is there a particular version of gcc required?
"Tony Hoyle" <tmh at nodomain.org> wrote in message
news:kjtn60tk0rhr31e3a1uase8fgsuc36dhbc at 4ax.com...
> On Wed, 31 Mar 2004 14:04:21 -0800, "Hans Horn" <hannes at 2horns.com>
> >Dear group,
> >I'm trying to build cvsnt on AIX, and I'm having e few hickups!
> >Configure chooses 'cc' as the c compiler, which barfs on the c++ style
> >comments here and there.
> >Adding the appropriate compiler flag (-qcpluscmt) to configure.status and
> >re-running the latter fixes that.
> There is c++ code in cvsnt, so you'll need at least a compiler that
> can handle that. Better to install gcc.
> >not found.
> >"cvsgui_process.cpp", line 54.10: 1540-0836 (S) The #include file
> >is not found.
> >"cvsgui_process.cpp", line 55.10: 1540-0836 (S) The #include file
> ><algorithm> is not found.
> >Where do those offending includes live (if they exist at all) under AIX?
> If you don't have these you probably don't have a working c++
> compiler, as they should be in /usr/include.
More information about the cvsnt