Dear Folks, I have been pounding my head against a wall trying to solve mulitiple problems trying to get SAMBA to work (Fedora core 2). Authentication was taking several minutes, and CUPS printing was problematic. I finally removed the Fedora distribution SAMBA binary, and installed the source (from the distribution). Recompiling solved the authentication problem (by excluding the PAM handles). I discovered an annoying problem with CUPS support. If you configure with the --enable-cups option, but do not have the cups-devel package installed (in addition to simply cups), the binaries eventually produced simply will not work with CUPS, but the configure and make process does not complain. After scratching my head after seeing that SAMBA was not even acknowledging the printers' existence, I finally went through the config.log file and saw that it tested for cups-devel, but there was no comment or failure when it did not find it; it just hummed along. I decided to install the cups-devel package, re-configured and re-made SAMBA, and "voila!" there they were. The test pages even printed out! (The cups files had already been modified to pass raw data.) Rich -- ************************************************ Richard Bonomo UW Space Astronomy Laboratory ph: (608) 263-4683 telefacsimile: (608) 263-0361 SAL-related email: bonomo@sal.wisc.edu all other email: bonomo@ece.wisc.edu web page URL: http://www.cae.wisc.edu/~bonomo ************************************************
Gerald (Jerry) Carter
2004-Jul-04 20:56 UTC
[Samba] BEWARE when compiling with CUPS support
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 22 Jun 2004, Richard Bonomo wrote:> If you configure with the --enable-cups option, but do not have the > cups-devel package installed (in addition to simply cups), the binaries > eventually produced simply will not work with CUPS, but the configure > and make process does not complain.Yup. It's a bug. I'll work on fixing it next week. cheers, jerry - ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc "...a hundred billion castaways looking for a home." ----------- Sting -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (Darwin) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQFA6G7PIR7qMdg1EfYRAquBAKDmSH7gYlgA0+MPTYdrT+gqHOC0mQCeLqGJ xVck3bNoynXPMizvL//FR48=0/CU -----END PGP SIGNATURE-----
Gerald (Jerry) Carter
2004-Jul-06 19:23 UTC
[Samba] BEWARE when compiling with CUPS support
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Richard Bonomo wrote: | If you configure with the --enable-cups option, | but do not have the cups-devel package installed | (in addition to simply cups), the binaries | eventually produced simply will not work with | CUPS, but the configure and make process does | not complain. Here's the patch. You'll need to rerun autogen.sh after applying. cheers, jerry - ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc "...a hundred billion castaways looking for a home." ----------- Sting -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFA6vwXIR7qMdg1EfYRApYhAKDnXq58g3zQU5CIPoZjn3EtN0WgVgCfYq6k 1XftATwE2KAChy3OXtQS1Qg=eZSS -----END PGP SIGNATURE----- -------------- next part -------------- Index: configure.in ==================================================================--- configure.in (revision 1367) +++ configure.in (working copy) @@ -712,10 +712,12 @@ AC_PATH_PROG(CUPS_CONFIG, cups-config) if test "x$CUPS_CONFIG" != x; then - AC_DEFINE(HAVE_CUPS,1,[Whether we have CUPS]) + AC_DEFINE(HAVE_CUPS,1,[Whether we have CUPS]) CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`" LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`" PRINT_LIBS="$PRINT_LIBS `$CUPS_CONFIG --libs`" + elif test x$enable_cups == xyes; then + AC_MSG_ERROR(Cups support required but cups-config not located. Make sure cups-devel related files are installed.) fi fi