[cups] Setup cups and Brother HL-4150CDN on FreeBSD 10

Michael Sweet msweet at apple.com
Tue Jun 10 07:00:17 PDT 2014


Helge,

FYI, "cupsctl LogLevel=debug2" will set the log level to debug2.


On Jun 10, 2014, at 9:46 AM, Helge Blischke <HelgeBlischke at web.de> wrote:

> 
> Am 10.06.2014 um 13:06 schrieb Willy Offermans:
> 
>> Hello Helge, cups and freebsd friends,
>> 
>> I do not use top-posting. I hope you do not mind. See below for output of
>> configure script.
>> 
>> On Tue, Jun 10, 2014 at 12:56:57PM +0200, Helge Blischke wrote:
>>> After a quick search for freebsd through the cups lists, I found
>>> some entries
>>> omplaining on issues with sys/ucred.h in combination with sys/param.h.
>>> Could you rerun your configure script with saving the output
>>> messages and post them?
>>> 
>>> Helge
>>> 
>>> Am 10.06.2014 um 11:12 schrieb Willy Offermans:
>>> 
>>>> Hello Helga, cups and freebsd friends,
>>>> 
>>>> On Mon, Jun 09, 2014 at 10:56:23PM +0200, Helge Blischke wrote:
>>>>> The error message
>>>>> E [08/Jun/2014:17:37:53 +0200] [Client 15] Invalid peer credentials
>>>>> for "root" - got 8, expected 0!
>>>>> states that the efective user id cupsd is runnin under is 8, which
>>>>> certainly is not root.
>>>>> Make sure your cupsd is running as root.
>>>>> (see scheduler/auth.c in your sources directory tree).
>>>>> 
>>>> 
>>>> I also checked this before.
>>>> 
>>>> I ran ``ps waux | grep cups'':
>>>> 
>>>> root        1645   0.0  0.0   64032       0  -  SWs  -
>>>> 0:00.00 /usr/local/sbin/cupsd -C /usr/local/etc/cups/cupsd.conf
>>>> root        1962   0.0  0.0   14448       0  -  IWs  -
>>>> 0:00.00 daemon: /usr/local/sbin/cups-browsed[1969] (daemon)
>>>> root        1969   0.0  0.0   62884    2892  -  S    12:20PM
>>>> 0:09.49 /usr/local/sbin/cups-browsed
>>>> 
>>>> To my belief and according the system, cupsd is run by root.
>>>> Though the error message claims something else.
>>>> 
>>>> A look in scheduler/auth.c does not bring me any further to the
>>>> solution.
>>>> I can detect the error message in the file, but I have no clue why
>>>> cups
>>>> takes up id 8 (=news) in stead of 0. To debug the code is
>>>> impossible for
>>>> me.
>>>> 
>>>> Does anyone has an idea?
>>>> 
>>>> 
>>>> -- 
>> 
>> 
>> checking for gawk... no
>> checking for mawk... no
>> checking for nawk... nawk
>> checking for clang... clang
>> checking whether the C compiler works... yes
>> checking for C compiler default output file name... a.out
>> checking for suffix of executables...
>> checking whether we are cross compiling... no
>> checking for suffix of object files... o
>> checking whether we are using the GNU C compiler... yes
>> checking whether clang accepts -g... yes
>> checking for clang option to accept ISO C89... none needed
>> checking how to run the C preprocessor... clang -E
>> checking for clang++... clang++
>> checking whether we are using the GNU C++ compiler... yes
>> checking whether clang++ accepts -g... yes
>> checking for ranlib... ranlib
>> checking for ar... /usr/bin/ar
>> checking for chmod... /bin/chmod
>> checking for gzip... /usr/bin/gzip
>> checking for ld... /usr/bin/ld
>> checking for ln... /bin/ln
>> checking for mv... /bin/mv
>> checking for rm... /bin/rm
>> checking for rmdir... /bin/rmdir
>> checking for sed... /usr/bin/sed
>> checking for xdg-open... /usr/local/bin/xdg-open
>> checking for install-sh script... using /usr/ports/print/cups-base/work/cups-1.7.2/install-sh
>> checking for pkg-config... /usr/local/bin/pkg-config
>> checking for library containing abs... none required
>> checking for library containing crypt... -lcrypt
>> checking for library containing fmod... -lm
>> checking for library containing getspent... no
>> checking for grep that handles long lines and -e... /usr/bin/grep
>> checking for egrep... /usr/bin/grep -E
>> checking for ANSI C header files... yes
>> checking for sys/types.h... yes
>> checking for sys/stat.h... yes
>> checking for stdlib.h... yes
>> checking for string.h... yes
>> checking for memory.h... yes
>> checking for strings.h... yes
>> checking for inttypes.h... yes
>> checking for stdint.h... yes
>> checking for unistd.h... yes
>> checking for stdlib.h... (cached) yes
>> checking crypt.h usability... no
>> checking crypt.h presence... no
>> checking for crypt.h... no
>> checking langinfo.h usability... yes
>> checking langinfo.h presence... yes
>> checking for langinfo.h... yes
>> checking malloc.h usability... no
>> checking malloc.h presence... no
>> checking for malloc.h... no
>> checking shadow.h usability... no
>> checking shadow.h presence... no
>> checking for shadow.h... no
>> checking for stdint.h... (cached) yes
>> checking for string.h... (cached) yes
>> checking for strings.h... (cached) yes
>> checking bstring.h usability... no
>> checking bstring.h presence... no
>> checking for bstring.h... no
>> checking usersec.h usability... no
>> checking usersec.h presence... no
>> checking for usersec.h... no
>> checking sys/ioctl.h usability... yes
>> checking sys/ioctl.h presence... yes
>> checking for sys/ioctl.h... yes
>> checking sys/param.h usability... yes
>> checking sys/param.h presence... yes
>> checking for sys/param.h... yes
>> checking sys/ucred.h usability... yes
>> checking sys/ucred.h presence... yes
>> checking for sys/ucred.h... yes
>> checking scsi/sg.h usability... no
>> checking scsi/sg.h presence... no
>> checking for scsi/sg.h... no
>> checking iconv.h usability... yes
>> checking iconv.h presence... yes
>> checking for iconv.h... yes
>> checking for library containing iconv_open... none required
>> checking mxml.h usability... no
>> checking mxml.h presence... no
>> checking for mxml.h... no
>> checking sys/mount.h usability... yes
>> checking sys/mount.h presence... yes
>> checking for sys/mount.h... yes
>> checking sys/statfs.h usability... no
>> checking sys/statfs.h presence... no
>> checking for sys/statfs.h... no
>> checking sys/statvfs.h usability... yes
>> checking sys/statvfs.h presence... yes
>> checking for sys/statvfs.h... yes
>> checking sys/vfs.h usability... no
>> checking sys/vfs.h presence... no
>> checking for sys/vfs.h... no
>> checking for statfs... yes
>> checking for statvfs... yes
>> checking for strdup... yes
>> checking for strlcat... yes
>> checking for strlcpy... yes
>> checking for snprintf... yes
>> checking for vsnprintf... yes
>> checking for random... yes
>> checking for lrand48... yes
>> checking for arc4random... yes
>> checking for geteuid... yes
>> checking for setpgid... yes
>> checking for vsyslog... yes
>> checking for sigset... yes
>> checking for sigaction... yes
>> checking for waitpid... yes
>> checking for wait3... yes
>> checking for tm_gmtoff member in tm structure... yes
>> checking for st_gen member in stat structure... yes
>> checking for removefile... no
>> checking for libusb-1.0... yes
>> checking zlib.h usability... yes
>> checking zlib.h presence... yes
>> checking for zlib.h... yes
>> checking for gzgets in -lz... yes
>> checking for inflateCopy in -lz... yes
>> checking for library containing acl_init... none required
>> checking for DBUS... yes
>> checking for dbus_message_iter_init_append... yes
>> checking for dbus_threads_init... yes
>> checking if GCC supports -fstack-protector... yes
>> checking if GCC supports -fPIE... yes
>> checking if GCC supports -Wno-tautological-compare... yes
>> checking resolv.h usability... yes
>> checking resolv.h presence... yes
>> checking for resolv.h... yes
>> checking for library containing socket... none required
>> checking for library containing gethostbyaddr... none required
>> checking for library containing getifaddrs... none required
>> checking for library containing hstrerror... none required
>> checking for library containing rresvport_af... none required
>> checking for library containing __res_init... none required
>> checking for library containing getaddrinfo... none required
>> checking for library containing getnameinfo... none required
>> checking for struct sockaddr.sa_len... yes
>> checking sys/sockio.h usability... yes
>> checking sys/sockio.h presence... yes
>> checking for sys/sockio.h... yes
>> checking for AppleTalk/at_proto.h... no
>> checking for poll... yes
>> checking for epoll_create... no
>> checking for kqueue... yes
>> checking for krb5-config... /usr/bin/krb5-config
>> checking krb5.h usability... yes
>> checking krb5.h presence... yes
>> checking for krb5.h... yes
>> checking gssapi.h usability... yes
>> checking gssapi.h presence... yes
>> checking for gssapi.h... yes
>> checking gssapi/gssapi.h usability... yes
>> checking gssapi/gssapi.h presence... yes
>> checking for gssapi/gssapi.h... yes
>> checking for __ApplePrivate_gss_acquire_cred_ex_f... no
>> checking for GSS_C_NT_HOSTBASED_SERVICE... yes
>> checking pthread.h usability... yes
>> checking pthread.h presence... yes
>> checking for pthread.h... yes
>> checking for pthread_create using -pthread... yes
>> checking for libgnutls-config... no
>> checking for libgcrypt-config... /usr/local/bin/libgcrypt-config
>>   Using SSLLIBS="-L/usr/local/lib -lgnutls   -L/usr/local/lib -lgcrypt -lgpg-error"
>>   Using SSLFLAGS="-I/usr/local/include -I/usr/local/include/p11-kit-1   -I/usr/local/include"
>> checking for dlopen in -ldl... no
>> checking for pam_start in -lpam... yes
>> checking for pam_set_item in -lpam... yes
>> checking for pam_setcred in -lpam... yes
>> checking security/pam_appl.h usability... yes
>> checking security/pam_appl.h presence... yes
>> checking for security/pam_appl.h... yes
>> checking for special C compiler options needed for large files... no
>> checking for _FILE_OFFSET_BITS value needed for large files... no
>> checking for long long int... yes
>> checking for strtoll... yes
>> checking for Avahi... yes
>> checking for launch_msg... no
>> checking launch.h usability... no
>> checking launch.h presence... no
>> checking for launch.h... no
>> checking for default print user... daemon
>> checking for default print group... nobody
>> checking for default system groups... "sys"
>> checking for java... /usr/local/bin/java
>> checking for perl... /usr/bin/perl
>> checking for php-cgi... /usr/local/bin/php-cgi
>> checking for python... /usr/local/bin/python
>> configure: creating ./config.status
>> config.status: creating Makedefs
>> config.status: creating conf/cups-files.conf
>> config.status: creating conf/cupsd.conf
>> config.status: creating conf/mime.convs
>> config.status: creating conf/pam.std
>> config.status: creating conf/snmp.conf
>> config.status: creating cups-config
>> config.status: creating data/testprint
>> config.status: creating desktop/cups.desktop
>> config.status: creating doc/help/ref-cups-files-conf.html
>> config.status: creating doc/help/ref-cupsd-conf.html
>> config.status: creating doc/index.html
>> config.status: creating man/client.conf.man
>> config.status: creating man/cups-deviced.man
>> config.status: creating man/cups-driverd.man
>> config.status: creating man/cups-files.conf.man
>> config.status: creating man/cups-lpd.man
>> config.status: creating man/cups-snmp.man
>> config.status: creating man/cupsaddsmb.man
>> config.status: creating man/cupsd.conf.man
>> config.status: creating man/cupsd.man
>> config.status: creating man/lpoptions.man
>> config.status: creating scheduler/cups-lpd.xinetd
>> config.status: creating scheduler/cups.sh
>> config.status: creating scheduler/cups.xml
>> config.status: creating scheduler/org.cups.cups-lpd.plist
>> config.status: creating templates/header.tmpl
>> config.status: creating packaging/cups.list
>> config.status: creating doc/ca/index.html
>> config.status: creating templates/ca/header.tmpl
>> config.status: creating doc/cs/index.html
>> config.status: creating templates/cs/header.tmpl
>> config.status: creating doc/de/index.html
>> config.status: creating templates/de/header.tmpl
>> config.status: creating doc/es/index.html
>> config.status: creating templates/es/header.tmpl
>> config.status: creating doc/fr/index.html
>> config.status: creating templates/fr/header.tmpl
>> config.status: creating doc/it/index.html
>> config.status: creating templates/it/header.tmpl
>> config.status: creating doc/ja/index.html
>> config.status: creating templates/ja/header.tmpl
>> config.status: creating doc/ru/index.html
>> config.status: creating templates/ru/header.tmpl
>> config.status: creating config.h
>> config.status: config.h is unchanged
>> 
>> I hope this is what you need.
>> 
>> -- 
>> Met vriendelijke groeten,
>> With kind regards,
>> Mit freundlichen Gruessen,
>> De jrus wah,
>> 
>> Wiel
>> 
>> *************************************
>> W.K. Offermans
>> 
>>                                      Powered by ....
>> 
>>                                           (__)
>>                                        \\\'',)
>>                                          \/  \ ^
>>                                          .\._/_)
>> 
>>                                      www.FreeBSD.org
>> _______________________________________________
>> cups mailing list
>> cups at cups.org
>> https://www.cups.org/mailman/listinfo/cups
> 
> Well, the configure output seems reasonable.
> And, I should have looked into your log file portion a littie bit more carefully:
> the invalid credential error mesage refers to client14, not to cupsd itself.
> To get more info, could you change the log level to debug2 (must be set by editing cupsd.conf, I think)
> and repeat the failing operation?
> 
> Thanks,
> 
> Helge
> 
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair




More information about the cups mailing list