gcc -o conftest -O3 -DHAVE_CURSES_H
-I/servers/space/neuwirth/src/mysql-3.23.37/include/
-DHAVE_RWLOCK_T conftest.c -lz -lcrypt -lgen -lsocket -lnsl -lm
-lpthread -lthread
In file included from /usr/include/stdio.h:23,
from conftest.c:4:
/usr/include/sys/va_list.h: In function `main':
/usr/include/sys/va_list.h:26: storage class specified for parameter
`__va_list'
ok,
no i managed to get the includes in the test file right.
when configure tries to compile the following
conftest.c
i get the following problems:
main()
#include "confdefs.h"
#include <stdio.h>
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(char));
exit(0);
}
In file included from /usr/include/stdio.h:24,
from conftest.c:4:
/usr/include/stdio_tag.h:21: storage class specified for parameter
`__FILE'
In file included from /usr/include/stdio.h:25,
from conftest.c:4:
/usr/include/stdio_impl.h:22: storage class specified for parameter
`ssize_t'
/usr/include/stdio_impl.h:44: parse error before `ssize_t'
/usr/include/stdio_impl.h:44: warning: no semicolon at end of struct or
union
/usr/include/stdio_impl.h:22: declaration for parameter `ssize_t' but no
such pa
rameter
/usr/include/stdio_tag.h:21: parameter `__FILE' has incomplete type
/usr/include/stdio_tag.h:21: declaration for parameter `__FILE' but no
such para
meter
/usr/include/sys/va_list.h:26: declaration for parameter `__va_list' but
no such
parameter
conftest.c:6: `FILE' undeclared (first use in this function)
conftest.c:6: (Each undeclared identifier is reported only once
conftest.c:6: for each function it appears in.)
conftest.c:6: `f' undeclared (first use in this function)
here is the relevant stdio_impl.h
/*
* Copyright (c) 1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _STDIO_IMPL_H
#define _STDIO_IMPL_H
#pragma ident "@(#)stdio_impl.h 1.7 98/04/17 SMI"
#include <sys/isa_defs.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _SSIZE_T
#define _SSIZE_T
#if defined(_LP64) || defined(_I32LPx)
typedef long ssize_t; /* size of something in bytes or
-1 */
#else
typedef int ssize_t; /* (historical version) */
#endif
#endif /* !_SSIZE_T */
#ifdef _LP64
#ifndef _FILE64_H
struct __FILE_TAG {
long __pad[16];
};
#endif /* _FILE64_H */
#else
struct __FILE_TAG /* needs to be binary-compatible with old
versions */
{
#ifdef _STDIO_REVERSE
unsigned char *_ptr; /* next character from/to here in buffer
*/
ssize_t _cnt; /* number of available characters in
buffer */
#else
ssize_t _cnt; /* number of available characters in
buffer */
unsigned char *_ptr; /* next character from/to here in buffer
*/
#endif
unsigned char *_base; /* the buffer */
unsigned char _flag; /* the state of the stream */
unsigned char _file; /* UNIX System file descriptor */
unsigned __orientation:2; /* the orientation of the
stream */
unsigned __filler:6;
};
#endif /* _LP64 */
#ifdef __cplusplus
}
#endif
#endif /* _STDIO_IMPL_H */
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php