Package: gnuserv
Version: 3.12.7-2.1
Severity: grave
Tags: patch
Gnuserv's configure script has some logic (at line 1493) to edit out X
header and library directories that are the same as the default
/usr/include and /usr/lib & /lib.
This is a problem now that Xorg packages actually place their files in
these locations. Specifically, the check above causes gnuserv's
configure to add a plain "-I" to CPPFLAGS after checking for X being
present, thereby making subsequent tests by invoking cpp like so:
gcc -E -I conftest.c
This causes all subsequent tests to fail (including the socket ones)
and eventually compiles a gnuclient that simply exits with an error
message (see gnuclient.c:63).
I'm not sure how to best fix this, but there are at least two ways:
1) Disable the code that prunes default paths in configure (though I
can't test the veracity of the comment there regarding gcc breaking
etc.)
E.g.
--- configure.orig 2006-05-19 00:42:47.000000000 +0100
+++ configure 2006-05-19 00:42:58.000000000 +0100
@@ -1494,11 +1494,9 @@
# bogus both because they are the default anyway, and because
# using them would break gcc on systems where it needs fixed includes.
case "$ac_im_incroot" in
- /usr/include) ;;
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot"
;;
esac
case "$ac_im_usrlibdir" in
- /usr/lib | /lib) ;;
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
esac
fi
2) Invoke configure with
"--x-includes=/usr/include --x-libraries=/usr/lib"
in debian rules to bypass the "checking for X" test completely.
Cheers,
/-sb.
Stelios Bounanos (sb () enotty () net)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]