Hi.

>>>>> In <[EMAIL PROTECTED]> 
>>>>> `pp' = [EMAIL PROTECTED]' wrote:
> > preparse.c:24:55: stdint.h: No such file or directory
> > preparse.c:1946: warning: `yyunput' defined but not used
> > preparse.c:2439: warning: `yy_top_state' defined but not used
> > make[1]: *** [preparse.lo] Error 1
> > make[1]: Leaving directory `/data/home/kubo/pkg/BUILD/midgard-lib-1.5.0/src'
> > make: *** [all-recursive] Error 1
> > 
> > The cause of this error seems that Solaris 8 doesn't have stdint.h.
> > What do I do?

> stdint.h is a part of libc6 development package.
> Maybe You should look for something similiar for Solaris?

I just wrote the patch of this problem based on "Portability of Headers"
section of the Autoconf info pages.
http://olympus.het.brown.edu/cgi-bin/info2www?(autoconf)Header+Portability
http://www.cs.utexas.edu/users/UTCS/online-docs/info2html/info2html.cgi?(autoconf)Header+Portability

midgard-lib 1.5.0 could compile on Solaris 8 after the patch applied.

$ cd midgard-lib-1.5.0
... apply some patches ...
$ rm -f missing
$ ./bootstrap
$ ./configure
$ make

Is this right?

Regards,

--
KUBO Atsuhiro e-mail: [EMAIL PROTECTED]

diff -uNr midgard-lib-1.5.0.orig/configure.in midgard-lib-1.5.0/configure.in
--- midgard-lib-1.5.0.orig/configure.in 2003-06-24 00:04:24.000000000 +0900
+++ midgard-lib-1.5.0/configure.in      2003-08-18 16:51:54.000000000 +0900
@@ -96,6 +96,7 @@
 AC_SEARCH_LIBS(crypt, crypt,,AC_MSG_ERROR(You need libcrypt))
 AC_CHECK_HEADERS(zlib.h,,AC_MSG_ERROR(You need zlib.h))
 AC_CHECK_HEADERS(crypt.h)
+AC_CHECK_HEADERS(inttypes.h stdint.h)
 AC_SEARCH_LIBS(compress, z,,AC_MSG_ERROR(You need libz))
 AC_SEARCH_LIBS(gzopen, z,,AC_MSG_ERROR(You need libz))
 AC_SEARCH_LIBS(g_string_new, glib, , AC_MSG_ERROR(You need glib))
diff -uNr midgard-lib-1.5.0.orig/src/preparse.c midgard-lib-1.5.0/src/preparse.c
--- midgard-lib-1.5.0.orig/src/preparse.c       2003-06-24 00:04:29.000000000 +0900
+++ midgard-lib-1.5.0/src/preparse.c    2003-08-18 17:26:41.000000000 +0900
@@ -21,7 +21,14 @@
 #include <string.h>
 #include <errno.h>
 #include <stdlib.h>
+
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#else
+#if HAVE_STDINT_H
 #include <stdint.h> /* May break IA64 test-noansi-r */
+#endif
+#endif
 
 /* end standard C headers. */
 
@@ -32,8 +39,7 @@
 
 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
 
-#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
-#include <inttypes.h>
+#if defined HAVE_INTTYPES_H || defined HAVE_STDINT_H
 typedef int8_t flex_int8_t;
 typedef uint8_t flex_uint8_t;
 typedef int16_t flex_int16_t;


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to