Re: samba printing stopped after upgrade to 2.2.6

2002-10-30 Thread Vivek Khera
> "JR" == Jens Rehsack <[EMAIL PROTECTED]> writes:

JR> It's most a good thing sending your patch directly to David
JR> Chapman (maintainer).  He's very fast commiting bug fixes :-)

Did that, too. ;-)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: samba printing stopped after upgrade to 2.2.6

2002-10-30 Thread Jens Rehsack


Vivek Khera wrote:
> 
> > "JR" == Jens Rehsack <[EMAIL PROTECTED]> writes:
> 
> >> Ah. The port Makefile probably needs to be tweaked a bit then.  It
> >> looks like samba will use cups if it can find it.  Try this:
> >>
> 
> JR> Your patch isn't required. But instead adding a line
> JR> 'WITHOUT_CUPS=yes' into /etc/make.conf adding a line
> JR> 'SAMBA_OPTIONS=\"WITHOUT_CUPS\"' is recommented. Have a look into
> JR> ports/samba/scripts/configure.samba for other possible options.
> 
> Yes, it is necessary, if you have the CUPS libraries sitting on your
> machine.  The default for the configure program is auto-detect CUPS.
> In this case, we explicity want to disable it, so we need to pass
> the --disable-cups flag to configure to tell it not to use the libs
> even if they exist.
> 
> JR> Thanks for the hint with the CUPS behaviour. It should be checked ...
> 
> Yes.  I filed a bug report in Jitterbug.

It's most a good thing sending your patch directly to David Chapman (maintainer).
He's very fast commiting bug fixes :-)

> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message

-- 
L i  W W W  i Jens Rehsack
LW W W
L i   W   W W   W   i  nnnLiWing IT-Services
L iW W   W Wi  n  n  g   g
  i W W i  n  n  g   gFriesenstraße 2
  06112 Halle
 g
 g   g
Tel.:  +49 - 3 45 - 5 17 05 91ggg e-Mail: <[EMAIL PROTECTED]>
Fax:   +49 - 3 45 - 5 17 05 92http://www.liwing.de/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: samba printing stopped after upgrade to 2.2.6

2002-10-29 Thread Vivek Khera
> "JR" == Jens Rehsack <[EMAIL PROTECTED]> writes:

>> Ah. The port Makefile probably needs to be tweaked a bit then.  It
>> looks like samba will use cups if it can find it.  Try this:
>> 

JR> Your patch isn't required. But instead adding a line
JR> 'WITHOUT_CUPS=yes' into /etc/make.conf adding a line
JR> 'SAMBA_OPTIONS=\"WITHOUT_CUPS\"' is recommented. Have a look into
JR> ports/samba/scripts/configure.samba for other possible options.

Yes, it is necessary, if you have the CUPS libraries sitting on your
machine.  The default for the configure program is auto-detect CUPS.
In this case, we explicity want to disable it, so we need to pass
the --disable-cups flag to configure to tell it not to use the libs
even if they exist.

JR> Thanks for the hint with the CUPS behaviour. It should be checked ...

Yes.  I filed a bug report in Jitterbug.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: samba printing stopped after upgrade to 2.2.6

2002-10-29 Thread Jens Rehsack


Dan Nelson wrote:
> 
> In the last episode (Oct 28), Vivek Khera said:
> > > "DN" == Dan Nelson <[EMAIL PROTECTED]> writes:
> > DN> When you did the install, you probably just skipped that options dialog
> > DN> that came up, right?  All the options on that page are "select to
> > DN> enable", except CUPS which is "select to _disable".  Rebuild samba, and
> > DN> select the "Without CUPS" line.  Quite annoying.  I work around it by
> > DN> adding WITHOUT_CUPS=yes in /etc/make.conf, and setting BATCH=yes in
> > DN> net/samba/Makefile.
> >
> > CUPS is linked in both 2.2.5 and 2.2.6, but in 2.2.6 it seems to want
> > to actually *use* it even though I don't configure it.
> >
> > Also, if I select the "Disable CUPS" flag, all it accomplishes is to
> > not register the dependency.  CUPS is still linked for some reason.
> 
> Ah. The port Makefile probably needs to be tweaked a bit then.  It
> looks like samba will use cups if it can find it.  Try this:
> 
> diff -u -r1.104 Makefile
> --- Makefile17 Oct 2002 13:49:31 -  1.104
> +++ Makefile28 Oct 2002 17:26:04 -
> @@ -123,6 +125,8 @@
>  LIB_DEPENDS+=  cups.2:${PORTSDIR}/print/cups-base
>  CONFIGURE_ENV+=CPPFLAGS=-I${LOCALBASE}/include \
> LDFLAGS=-L${LOCALBASE}/lib
> +.else
> +CONFIGURE_ARGS+=   --without-cups
>  .endif
> 
>  .if defined(KRB5_HOME) && exists(${KRB5_HOME})
> 
> 
> > Does your smbd have cups linked (as reported by ldd)?

Your patch isn't required. But instead adding a line 'WITHOUT_CUPS=yes' into 
/etc/make.conf
adding a line 'SAMBA_OPTIONS=\"WITHOUT_CUPS\"' is recommented. Have a look into
ports/samba/scripts/configure.samba for other possible options.

Thanks for the hint with the CUPS behaviour. It should be checked ...

Jens

> No, since I don't have the cups port installed, so samba couldn't use
> it.
> 
> --
> Dan Nelson
> [EMAIL PROTECTED]
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message

-- 
L i  W W W  i Jens Rehsack
LW W W
L i   W   W W   W   i  nnnLiWing IT-Services
L iW W   W Wi  n  n  g   g
  i W W i  n  n  g   gFriesenstraße 2
  06112 Halle
 g
 g   g
Tel.:  +49 - 3 45 - 5 17 05 91ggg e-Mail: <[EMAIL PROTECTED]>
Fax:   +49 - 3 45 - 5 17 05 92http://www.liwing.de/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: samba printing stopped after upgrade to 2.2.6

2002-10-28 Thread Vivek Khera
> "DN" == Dan Nelson <[EMAIL PROTECTED]> writes:

DN> Ah. The port Makefile probably needs to be tweaked a bit then.  It
DN> looks like samba will use cups if it can find it.  Try this:

Thanks for the patch.  I ended up just deleting cups_base since it was
not needed for any other port on my system.  Looks like a Samba bug if
it ignores bsd style printing if CUPS is linked...

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: samba printing stopped after upgrade to 2.2.6

2002-10-28 Thread Vivek Khera
> "GAD" == Garance A Drosihn  writes:

GAD> Some of that is just guessing on my part, but it sounds pretty
GAD> plausible.  I would suggest that you see if CUPS is installed.
GAD> Also check to see if it is a recent install.  If so, then
GAD> /usr/local/sbin/pkg_deinstall cups
GAD> and then try the samba-without-cups install once again.

Yeah... it seems that the "Without CUPS" option to Samba doesn't do
the right thing if cups-base is installed (ie, for KDE).

Also, it seems that if Samba is built with CUPS, it doesn't honor the
"printing=bsd" setting and tries to use CUPS anyway.

I just built with cups_base removed and printing seems to work again.

Thanks for the tip.  Luckily the machine running samba doesn't have/need
KDE on it.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: samba printing stopped after upgrade to 2.2.6

2002-10-28 Thread Garance A Drosihn
At 12:03 PM -0500 10/28/02, Vivek Khera wrote:

 > "DN" == Dan Nelson <[EMAIL PROTECTED]> writes:


 but I have not enabled CUPS in samba at all.  Does anyone know what I
 need to do to migrate successfully from samba 2.2.5 to 2.2.6?  Here's
 my config:


DN> When you did the install, you probably just skipped that options dialog
DN> that came up, right?  All the options on that page are "select to
DN> enable", except CUPS which is "select to _disable".  Rebuild samba, and
DN> select the "Without CUPS" line.  Quite annoying.  I work around it by
DN> adding WITHOUT_CUPS=yes in /etc/make.conf, and setting BATCH=yes in
DN> net/samba/Makefile.

CUPS is linked in both 2.2.5 and 2.2.6, but in 2.2.6 it seems to want
to actually *use* it even though I don't configure it.

Also, if I select the "Disable CUPS" flag, all it accomplishes is to
not register the dependency.  CUPS is still linked for some reason.

Does your smbd have cups linked (as reported by ldd)?


Be a little careful here.  It sounds like you:

  1) installed samba-with-cups
 a) which by definition would install CUPS, if you did
not already have it installed.

  2) backed off to previous version of samba
 a) which backs out the version of *samba* that was installed,
but probably does not back out versions of any other
ports which were installed while installing a new samba.

  3) installed samba-without-cups
 a) ...but CUPS is probably still installed.
 b) if so, the configure scripts for samba will notice that
CUPS is on the machine, and will probably use it.  This
would be the correct behavior, IMO, because if you *do*
have CUPS installed then samba *should* use it.

Some of that is just guessing on my part, but it sounds pretty
plausible.  I would suggest that you see if CUPS is installed.
Also check to see if it is a recent install.  If so, then
/usr/local/sbin/pkg_deinstall cups
and then try the samba-without-cups install once again.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: samba printing stopped after upgrade to 2.2.6

2002-10-28 Thread Dan Nelson
In the last episode (Oct 28), Vivek Khera said:
> > "DN" == Dan Nelson <[EMAIL PROTECTED]> writes:
> DN> When you did the install, you probably just skipped that options dialog
> DN> that came up, right?  All the options on that page are "select to
> DN> enable", except CUPS which is "select to _disable".  Rebuild samba, and
> DN> select the "Without CUPS" line.  Quite annoying.  I work around it by
> DN> adding WITHOUT_CUPS=yes in /etc/make.conf, and setting BATCH=yes in
> DN> net/samba/Makefile.
> 
> CUPS is linked in both 2.2.5 and 2.2.6, but in 2.2.6 it seems to want
> to actually *use* it even though I don't configure it.
> 
> Also, if I select the "Disable CUPS" flag, all it accomplishes is to
> not register the dependency.  CUPS is still linked for some reason.

Ah. The port Makefile probably needs to be tweaked a bit then.  It
looks like samba will use cups if it can find it.  Try this:

diff -u -r1.104 Makefile
--- Makefile17 Oct 2002 13:49:31 -  1.104
+++ Makefile28 Oct 2002 17:26:04 -
@@ -123,6 +125,8 @@
 LIB_DEPENDS+=  cups.2:${PORTSDIR}/print/cups-base
 CONFIGURE_ENV+=CPPFLAGS=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib
+.else
+CONFIGURE_ARGS+=   --without-cups
 .endif
 
 .if defined(KRB5_HOME) && exists(${KRB5_HOME})

 
> Does your smbd have cups linked (as reported by ldd)?

No, since I don't have the cups port installed, so samba couldn't use
it.
 
-- 
Dan Nelson
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: samba printing stopped after upgrade to 2.2.6

2002-10-28 Thread Vivek Khera
> "DN" == Dan Nelson <[EMAIL PROTECTED]> writes:

>> but I have not enabled CUPS in samba at all.  Does anyone know what I
>> need to do to migrate successfully from samba 2.2.5 to 2.2.6?  Here's
>> my config:

DN> When you did the install, you probably just skipped that options dialog
DN> that came up, right?  All the options on that page are "select to
DN> enable", except CUPS which is "select to _disable".  Rebuild samba, and
DN> select the "Without CUPS" line.  Quite annoying.  I work around it by
DN> adding WITHOUT_CUPS=yes in /etc/make.conf, and setting BATCH=yes in
DN> net/samba/Makefile.

CUPS is linked in both 2.2.5 and 2.2.6, but in 2.2.6 it seems to want
to actually *use* it even though I don't configure it.

Also, if I select the "Disable CUPS" flag, all it accomplishes is to
not register the dependency.  CUPS is still linked for some reason.

Does your smbd have cups linked (as reported by ldd)?

Thanks for the help, though.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: samba printing stopped after upgrade to 2.2.6

2002-10-28 Thread Dan Nelson
In the last episode (Oct 28), Vivek Khera said:
> I upgraded Samba from 2.2.5_3 to 2.2.6 and now printing from Win2k
> has stopped working.  Downgrading back to 2.2.5_3 lets printing work
> again.  Accessing the disk shares works just fine, still.  Server is
> running FreeBSD 4.7-STABLE.
> 
> When I start Samba 2.2.6, it reports this:
> 
> [2002/10/24 14:22:57, 0] smbd/server.c:main(707)
>   smbd version 2.2.6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2002
> [2002/10/24 14:22:57, 0] printing/print_cups.c:cups_printer_fn(110)
>   Unable to connect to CUPS server localhost - Connection refused
> 
> but I have not enabled CUPS in samba at all.  Does anyone know what I
> need to do to migrate successfully from samba 2.2.5 to 2.2.6?  Here's
> my config:

When you did the install, you probably just skipped that options dialog
that came up, right?  All the options on that page are "select to
enable", except CUPS which is "select to _disable".  Rebuild samba, and
select the "Without CUPS" line.  Quite annoying.  I work around it by
adding WITHOUT_CUPS=yes in /etc/make.conf, and setting BATCH=yes in
net/samba/Makefile.

-- 
Dan Nelson
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



samba printing stopped after upgrade to 2.2.6

2002-10-28 Thread Vivek Khera
I upgraded Samba from 2.2.5_3 to 2.2.6 and now printing from Win2k has
stopped working.  Downgrading back to 2.2.5_3 lets printing work
again.  Accessing the disk shares works just fine, still.  Server is
running FreeBSD 4.7-STABLE.

When I start Samba 2.2.6, it reports this:

[2002/10/24 14:22:57, 0] smbd/server.c:main(707)
  smbd version 2.2.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2002
[2002/10/24 14:22:57, 0] printing/print_cups.c:cups_printer_fn(110)
  Unable to connect to CUPS server localhost - Connection refused

but I have not enabled CUPS in samba at all.  Does anyone know what I
need to do to migrate successfully from samba 2.2.5 to 2.2.6?  Here's
my config:

[global]
   security = user
   hosts deny = ALL
   hosts allow = localhost, onceler.kcilink.com, raj.kcilink.com

   preserve case = yes
   short preserve case = yes
   map archive = no
 
   socket options = SO_KEEPALIVE

   locking = yes
   deadtime = 15

   workgroup = KCI
   server string = Yertle Samba Server
   guest account = nobody
   default service = reference

   domain master = yes
   local master = yes 
   preferred master = yes
   os level = 65

   wins support = yes

   time server = True

   printing = bsd
   load printers = yes
   print command = lpr -v -r -P%p %s

[homes]
   comment = Home Directory
   writable = yes
   browseable = no
   public = no
;   create mode = 0644
   create mask = 0755

[printers]
   comment = HP LJ4 PostScript Printer
   browseable = no
   printable = yes
   public = no
   writable = no
   path = /var/tmp
   create mode = 0600

; the default, if invalid accesses
[reference]
   comment = KCI: Samba LAN manager
   path = /tmp
   public = yes

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message