This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Please test and upload: ORBit/libIDL, libIDL2, ORBit2


Yaakov S wrote:

What is pidof in your postinstall sceipts, I'm getting an error.

/bin/kill -SIGKILL \$(pidof /usr/sbin/gconfd-2)

Am I missing prerequisites?

I'm missing some additions for resolv.h:

diff -urNd ORBit2-2.12.3/acinclude.m4 ORBit2-2.12.2/acinclude.m4
--- ORBit2-2.12.3/acinclude.m4	2004-02-10 17:55:22.000000000 +0100
+++ ORBit2-2.12.2/acinclude.m4	2005-08-16 19:42:08.000000000 +0200
@@ -41,3 +41,21 @@
 	undefine([AC_TYPE_NAME])dnl
 	undefine([AC_CV_NAME])dnl
 ])
+
+# Useable resolv.h test
+AC_DEFUN([AC_HEADER_RESOLV],
+[AC_CHECK_HEADERS(sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h,
+                 [], [],
+[[#if HAVE_SYS_TYPES_H
+#  include <sys/types.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#  include <netinet/in.h>   /* inet_ functions / structs */
+#endif
+#ifdef HAVE_ARPA_NAMESER_H
+#  include <arpa/nameser.h> /* DNS HEADER struct */
+#endif
+#ifdef HAVE_NETDB_H
+#  include <netdb.h>
+#endif]])
+])# AC_HEADER_RESOLV


and thine this in configure.in of course:
@@ -270,7 +266,7 @@
AC_CHECK_HEADERS(fcntl.h unistd.h sys/endian.h endian.h machine/endian.h sys/machine.h sys/isa_defs.h sys/poll.h)
AC_CHECK_HEADERS(stddef.h wchar.h wcstr.h wctype.h machine/types.h)
AC_CHECK_HEADERS(netinet/in.h netinet/tcp.h sys/un.h)
-AC_CHECK_HEADERS(arpa/nameser.h resolv.h)
+AC_HEADER_RESOLV
dnl AC_CHECK_HEADERS(linux/irda.h)


dnl Checks for library functions.



Then there is this const struct patch I applied, though I don't know if
it is needed:

diff -urNd ORBit2-2.12.3/src/idl-compiler/orbit-idl-c-typecode.c ORBit2-2.12.2/src/idl-compiler/orbit-idl-c-typecode.c
--- ORBit2-2.12.3/src/idl-compiler/orbit-idl-c-typecode.c 2005-08-15 16:49:50.000000000 +0200
+++ ORBit2-2.12.2/src/idl-compiler/orbit-idl-c-typecode.c 2005-08-16 18:50:14.000000000 +0200
@@ -99,7 +99,7 @@
if (!IDL_TYPE_ENUM (node).enumerator_list)
break;


- fprintf (fh, "static const char *anon_subnames_array%d[] = {", subnames_id);
+ fprintf (fh, "static char *anon_subnames_array%d[] = {", subnames_id);


for (l = IDL_TYPE_ENUM (node).enumerator_list; l; l = IDL_LIST (l).next) {
g_assert (IDL_NODE_TYPE (IDL_LIST (l).data) == IDLN_IDENT);
@@ -116,7 +116,7 @@
if (!IDL_TYPE_STRUCT (node).member_list)
break;


- fprintf (fh, "static const char *anon_subnames_array%d[] = {", subnames_id);
+ fprintf (fh, "static char *anon_subnames_array%d[] = {", subnames_id);


 		for (l = IDL_TYPE_STRUCT (node).member_list; l; l = IDL_LIST (l).next) {
 			IDL_tree dcl;
@@ -148,7 +148,7 @@
 		if (!IDL_TYPE_UNION (node).switch_body)
 			break;

- fprintf (fh, "static const char * anon_subnames_array%d[] = {", subnames_id);
+ fprintf (fh, "static char * anon_subnames_array%d[] = {", subnames_id);


 		for (l = IDL_TYPE_UNION (node).switch_body; l; l = IDL_LIST (l).next) {
 			IDL_tree dcl, label;



Gerrit


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]