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

Re: [coldsync-hackers] error during make on AIX 4.3.3



On Thu, Dec 12, 2002 at 01:02:34AM -0800, Steve Scotten wrote:
> I'm attempting to install ColdSync on an IBM RS/6000 running AIX
> 4.3.3.

	Cool. I don't think anyone's actually tried running ColdSync
under AIX before.

> I downloaded the tarball for 2.2.5 from coldsync.org, and as
> suggested, ran ./configure then make (actually gmake) and gmake
> install. During gmake install, I got a long string of errors that look 
> like this:
> 
> ./install-sh -c -m 644 libpconn.3 /usr/local/man/man3/libpconn.3
> /bin/sh: ./install-sh:  not found.

	Bleah. This means that a) AIX doesn't have a BSD-compatible
'install' program, and b) the Makefiles are broken in such a way that
they don't work with the fallback script provided with the
distribution. This is a bug in ColdSync.
	Until this can be fixed, you'll need to specify the install
program on the 'configure' command line. If you have GNU install in
/usr/local/bin/ginstall, you'll need to run

	env INSTALL=/usr/local/bin/ginstall ./configure [options]

If you don't, then use the 'install-sh' script provided in the
ColdSync distribution, but specify the full path to it. Thus, if
you're building in /usr/src/coldsync-2.2.5, then use

	env INSTALL=/usr/src/coldsync-2.2.5/install-sh ./configure [options]

> When I use IBM's make I get this (at make... I don't get to make
> install)
> 
> bash-2.03# make
[...]
> all: Entering directory `./libpconn'
> Target "all" is up to date.
>         gcc -Wall -ansi -pedantic -g -O2 -DHAVE_CONFIG_H
> -I. -I./.. -I./../include -I/usr/local/include -c cfmakeraw.c
> In file included from /usr/include/termios.h:39,
>                  from cfmakeraw.c:41:
> /usr/include/standards.h:63: parse error
> /usr/include/standards.h:102: warning: `_XOPEN_SOURCE_EXTENDED'
> redefined
> ../config.h:340: warning: this is the location of the previous
> definition
> make: 1254-004 The error code from the last command is 1.

	The problem here is that one of ColdSync's header files
("config.h") has:

	#define _XOPEN_SOURCE_EXTENDED

whereas /usr/include/standards.h evidently has

	#define _XOPEN_SOURCE_EXTENDED <something>

If you could take a look there and let us know what the <something>
is, that would help.
	Alternately, you can try

	./configure --disable-pedantic

which will hopefully tell gcc to shut up about this. You can also try
compiling with a different C compiler with

	env CC=/usr/bin/cc ./configure [options...]

but knowing IBM, their compiler is probably just as picky as gcc, if
not more (but I mean this in a good way).

-- 
Andrew Arensburger                      This message *does* represent the
arensb@ooblick.com                      views of ooblick.com
   All things are possible, except skiing through a revolving door.
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.