[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 09:35:48AM -0500, Andrew Arensburger wrote:

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

Glad to be a guinea pig! =^)

> 	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]

I wasn't able to find gnu install, so I'm doing this.


> 	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.

Just FYI, with gmake I get a warning about _XOPEN_SOURCE_EXTENDED but
the process continues on.

Just to be safe, I'll include the entire standards.h file below my
sig. You can see from there whatever you need to know, and I'll be
glad to provide any other information I can.


> 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).

Unfortunately, I don't have IBM's xlC; it's a little pricey for a guy
who doesn't do C for a living. So for now it's just gcc for me.

Next to see if it runs and then work on configuring and so on. I'll
let you know if there's any weirdness (hahaha "if".... I crack myself
up.... this *is* AIX, after all)

Thanks,


Steve
-- 
Steven M. Scotten
<s@p90.net>

standards.h
=====8<-----

/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* bos43D src/bos/usr/include/standards.h 1.10.1.5                        */
/*                                                                        */
/* Licensed Materials - Property of IBM                                   */
/*                                                                        */
/* (C) COPYRIGHT International Business Machines Corp. 1995,1998          */
/* All Rights Reserved                                                    */
/*                                                                        */
/* US Government Users Restricted Rights - Use, duplication or            */
/* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.      */
/*                                                                        */
/* IBM_PROLOG_END_TAG                                                     */
/* @(#)44  1.10.1.5  standards.h, incstd, bos43D 2/17/98 09:22:41 */
/*
 * COMPONENT_NAME: (INCSTD) Standard Include Files
 *
 * FUNCTIONS: 
 *
 * ORIGINS: 27
 *
 * (C) COPYRIGHT International Business Machines Corp. 1995
 * All Rights Reserved
 * Licensed Materials - Property of IBM
 *
 * US Government Users Restricted Rights - Use, duplication or
 * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 */
#ifndef _H_STANDARDS
#define _H_STANDARDS

#define _AIXVERSION_430  1
#define _AIXVERSION_431  1

/* These directives must be processed in the current order when compiled with 
 * cc or they will not work correctly.
 */

/* If _XOPEN_SOURCE is defined without a value, or with a value other
 * than 500 (UNIX98), then set a value, so that #if statements will 
 * work properly.
 */
#ifdef _XOPEN_SOURCE
#if ((_XOPEN_SOURCE + 0) != 500)
#undef _XOPEN_SOURCE
#define _XOPEN_SOURCE	1
#endif
#endif

#if defined(_UNIX98) || (_XOPEN_SOURCE==500)
#undef _XOPEN_SOURCE
#define _XOPEN_SOURCE   500
#undef _XOPEN_SOURCE_EXTENDED
#define _XOPEN_SOURCE_EXTENDED     1
#endif

#ifdef _UNIX95
#undef _XOPEN_SOURCE_EXTENDED
#define _XOPEN_SOURCE_EXTENDED     1
#endif

#if (_XOPEN_SOURCE_EXTENDED==1)
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE	1
#endif /* _XOPEN_SOURCE */
#endif /* _XOPEN_SOURCE_EXTENDED */

#ifdef _XOPEN_SOURCE
#ifndef _POSIX_SOURCE
#define _POSIX_SOURCE
#endif
#endif

#ifdef _POSIX_SOURCE
#ifndef _ANSI_C_SOURCE
#define _ANSI_C_SOURCE
#endif
#endif

#ifdef _ALL_SOURCE
#undef _XOPEN_SOURCE
#define _XOPEN_SOURCE	500
#ifndef _POSIX_SOURCE
#define _POSIX_SOURCE
#endif
#ifndef _ANSI_C_SOURCE
#define _ANSI_C_SOURCE
#endif
#ifndef _XOPEN_SOURCE_EXTENDED
#define _XOPEN_SOURCE_EXTENDED 1
#endif
#ifdef _LONG_LONG
#ifndef _LARGE_FILE_API
#define _LARGE_FILE_API
#endif
#endif
#endif

#if (!defined (_XOPEN_SOURCE)) &&  (!defined (_POSIX_SOURCE)) && (!defined (_ANSI_C_SOURCE))
#define _XOPEN_SOURCE  500
#define _XOPEN_SOURCE_EXTENDED 1
#define _POSIX_SOURCE
#define _ANSI_C_SOURCE
#ifdef _LONG_LONG
#ifndef _LARGE_FILE_API
#define _LARGE_FILE_API
#endif
#endif
#ifndef _ALL_SOURCE
#define _ALL_SOURCE
#endif
#endif

#endif /* _H_STANDARDS */
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.