Attached is a patch to include some extra headers, to ensure that all
used standard library functions are prototyped before reference. This is
required to get libconcord to compile on Fedora 9, which uses gcc-4.3.0,
which is evidently quite picky about such things.
diff -urN libconcord-20080318/binaryfile.cpp libconcord-20080318-fixed/binaryfile.cpp
--- libconcord-20080318/binaryfile.cpp	2008-03-07 13:30:43.000000000 -0700
+++ libconcord-20080318-fixed/binaryfile.cpp	2008-03-22 17:43:04.000000000 -0600
@@ -23,6 +23,7 @@
 #include "concordance.h"
 
 #include <stdio.h>
+#include <string.h>
 
 #ifdef WIN32
 #include <io.h>
Binary files libconcord-20080318/.binaryfile.cpp.swp and libconcord-20080318-fixed/.binaryfile.cpp.swp differ
Binary files libconcord-20080318/.concordance.h.swp and libconcord-20080318-fixed/.concordance.h.swp differ
diff -urN libconcord-20080318/libconcord.cpp libconcord-20080318-fixed/libconcord.cpp
--- libconcord-20080318/libconcord.cpp	2008-03-14 17:09:36.000000000 -0600
+++ libconcord-20080318-fixed/libconcord.cpp	2008-03-22 17:42:19.000000000 -0600
@@ -23,6 +23,8 @@
  */
 
 #include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
 #include "libconcord.h"
 #include "concordance.h"
 #include "remote.h"
Binary files libconcord-20080318/.libconcord.cpp.swp and libconcord-20080318-fixed/.libconcord.cpp.swp differ
Binary files libconcord-20080318/.libconcord.h.swp and libconcord-20080318-fixed/.libconcord.h.swp differ
diff -urN libconcord-20080318/remote.cpp libconcord-20080318-fixed/remote.cpp
--- libconcord-20080318/remote.cpp	2008-03-14 17:09:36.000000000 -0600
+++ libconcord-20080318-fixed/remote.cpp	2008-03-22 17:44:32.000000000 -0600
@@ -17,6 +17,7 @@
  *  (C) Copyright Phil Dibowitz 2007
  */
 
+#include <string.h>
 #include "libconcord.h"
 #include "concordance.h"
 #include "hid.h"
Binary files libconcord-20080318/.remote.cpp.swp and libconcord-20080318-fixed/.remote.cpp.swp differ
diff -urN libconcord-20080318/remote_z.cpp libconcord-20080318-fixed/remote_z.cpp
--- libconcord-20080318/remote_z.cpp	2008-03-14 17:09:36.000000000 -0600
+++ libconcord-20080318-fixed/remote_z.cpp	2008-03-22 17:45:08.000000000 -0600
@@ -16,6 +16,7 @@
  *  (C) Copyright Kevin Timmerman 2007
  */
 
+#include <string.h>
 #include "libconcord.h"
 #include "concordance.h"
 #include "hid.h"
Binary files libconcord-20080318/.remote_z.cpp.swp and libconcord-20080318-fixed/.remote_z.cpp.swp differ
diff -urN libconcord-20080318/usblan.cpp libconcord-20080318-fixed/usblan.cpp
--- libconcord-20080318/usblan.cpp	2008-03-07 18:49:19.000000000 -0700
+++ libconcord-20080318-fixed/usblan.cpp	2008-03-22 20:25:13.000000000 -0600
@@ -18,6 +18,7 @@
 
 #include "libconcord.h"
 #include "concordance.h"
+#include <string.h>
 #include <errno.h>
 
 #ifdef WIN32
Binary files libconcord-20080318/.usblan.cpp.swp and libconcord-20080318-fixed/.usblan.cpp.swp differ
diff -urN libconcord-20080318/web.cpp libconcord-20080318-fixed/web.cpp
--- libconcord-20080318/web.cpp	2008-03-13 23:01:26.000000000 -0600
+++ libconcord-20080318-fixed/web.cpp	2008-03-22 17:44:06.000000000 -0600
@@ -16,6 +16,8 @@
  *  (C) Copyright Kevin Timmerman 2007
  */
 
+#include <string.h>
+#include <strings.h>
 #include "libconcord.h"
 #include "concordance.h"
 #include "hid.h"
Binary files libconcord-20080318/.web.cpp.swp and libconcord-20080318-fixed/.web.cpp.swp differ
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
concordance-devel mailing list
concordance-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/concordance-devel

Reply via email to