[FreeNX-kNX] This is how to compile nxspool with GCC 4.x :D (bug fix for nomachine)

Jon Scruggs j.scruggs at gmail.com
Sun Jul 30 12:48:34 UTC 2006


Hi,

I spent some time reading over the code for nxspool, and I finally
figured out why it would not compile with gcc4. You need to apply this
patch ... I hope the formating stays nice in this email, but you can
manually apply it if the formating does not stay nice:

diff -purN nxspool.orig/source/include/popt_common.h
nxspool/source/include/popt_common.h
--- nxspool.orig/source/include/popt_common.h	2006-06-16
11:52:49.000000000 -0500
+++ nxspool/source/include/popt_common.h	2006-07-30 07:30:21.000000000 -0500
@@ -21,6 +21,8 @@
 #ifndef _POPT_COMMON_H
 #define _POPT_COMMON_H

+#include <popt.h>
+
 /* Common popt structures */
 extern struct poptOption popt_common_samba[];
 extern struct poptOption popt_common_connection[];

However, this patch does not elimintate the vast amount of warnings
you get, ut it seems to work fine. :) NoMachine, can you please apply
this patch to your code? This is just adding a include file that gcc4
really needs, because it handles externs differently.

I hope others can find this useful as well. Now back to the Gentoo
ebuild making.

Cheers.



More information about the FreeNX-kNX mailing list