[cups] undefined symbols in cups and ipptool

Akash Sharma akashs.delhi at gmail.com
Tue Apr 24 11:23:15 PDT 2018


Hi Everyone,

I created a new virtual machine ( ubuntu 17.10 Desktop image ) and tried to
build cups2.3b4 in it from source and am facing errors suddenly. Earlier
while working with cups i did not encounter such errors.

I Followed the following steps ( as per install.md ) :
sudo apt-get install autoconf build-essential libavahi-client-dev \
     libgnutls28-dev libkrb5-dev libnss-mdns libpam-dev \
     libsystemd-dev libusb-1.0-0-dev zlib1g-dev

./configure
make
make check
sudo make install


On doing this i ran service cups status which showed that cups was running.
However ipptool failed to run due to an undefined symbol error. ( Although
i found related definitions in the source )
Further on stopping cups and starting it again, cups stopped working and
the status showed a symbol undefined error. On googling i found that the
error could be because of faulty linking, etc, but was unable to correct
the same.
Can you please guide me on how can i solve these errors?

The output of the building cups2.3b4 has been attached in the file
buildOutput.txt. The ending of the file contains errors corresponding to
cups and ipptool.
( Also please let me know in case there is something i must keep in mind
while writing a mail to the mailing list  )

Thanking You,
Regards,
Akash Sharma
-------------- next part --------------
*****************************************************************************************************************************
./configure
*****************************************************************************************************************************

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gawk... no
checking for mawk... mawk
checking for clang... no
checking for cc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for clang++... no
checking for c++... c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for chmod... /bin/chmod
checking for gzip... /bin/gzip
checking for ld... /usr/bin/ld
checking for ln... /bin/ln
checking for mkdir... /bin/mkdir
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for rmdir... /bin/rmdir
checking for sed... /bin/sed
checking for xdg-open... /usr/bin/xdg-open
checking for install-sh script... using /home/akashvm2404/Documents/gsoc/cups-master/install-sh
checking for pkg-config... /usr/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... none required
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
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 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... no
checking sys/ucred.h presence... no
checking for sys/ucred.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 for library containing libiconv_open... no
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... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking for statfs... yes
checking for statvfs... yes
checking for strdup... yes
checking for strlcat... no
checking for strlcpy... no
checking for snprintf... yes
checking for vsnprintf... yes
checking for random... yes
checking for lrand48... yes
checking for arc4random... no
checking for geteuid... yes
checking for setpgid... yes
checking for vsyslog... yes
checking for sigaction... yes
checking for waitpid... yes
checking for wait3... yes
checking for posix_spawn... yes
checking for getgrouplist... yes
checking for tm_gmtoff member in tm structure... yes
checking for st_gen member in stat structure... no
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... no
checking for DBUS... yes
checking for dbus_message_iter_init_append... yes
checking for dbus_threads_init... yes
checking whether compiler supports -fstack-protector... yes
checking whether compiler supports -fPIE... yes
checking whether compiler supports -Wno-unused-result... yes
checking whether compiler supports -Wsign-conversion... yes
checking whether compiler supports -Wno-tautological-compare... yes
checking whether compiler supports -Wno-format-truncation... 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... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking for poll... yes
checking for epoll_create... yes
checking for kqueue... no
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 -lpthreads... no
checking for pthread_create using -lpthread... yes
checking for libgnutls-config... no
checking for gnutls_transport_set_pull_timeout_function... yes
checking for gnutls_priority_set_direct... yes
    Using SSLLIBS="-lgnutls"
    Using SSLFLAGS="-I/usr/include/p11-kit-1"
checking for dlopen in -ldl... yes
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_activate_socket... no
checking launch.h usability... no
checking launch.h presence... no
checking for launch.h... no
checking for libsystemd... yes
checking systemd/sd-journal.h usability... yes
checking systemd/sd-journal.h presence... yes
checking for systemd/sd-journal.h... yes
checking for default print user... lp
checking for default print group... lp
checking for default system groups... "lpadmin sys root"
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 desktop/cups.desktop
config.status: creating doc/index.html
config.status: creating man/client.conf.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 scheduler/org.cups.cups-lpdAT.service
config.status: creating scheduler/org.cups.cupsd.path
config.status: creating scheduler/org.cups.cupsd.service
config.status: creating scheduler/org.cups.cupsd.socket
config.status: creating templates/header.tmpl
config.status: creating packaging/cups.list
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 templates/fr/header.tmpl
config.status: creating doc/ja/index.html
config.status: creating templates/ja/header.tmpl
config.status: creating doc/pt_BR/index.html
config.status: creating templates/pt_BR/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

*****************************************************************************************************************************
make
*****************************************************************************************************************************

Using ARCHFLAGS=
Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE -isystem /usr/include/mit-krb5  -isystem /usr/include/mit-krb5  -I/usr/include/libusb-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -D_REENTRANT -I/usr/include/p11-kit-1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT  
Using ALL_CXXFLAGS=-I.. -D_CUPS_SOURCE -isystem /usr/include/mit-krb5   -I/usr/include/p11-kit-1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT  
Using CC=cc
Using CXX=cc
Using DSOFLAGS=-L../cups  -Wl,-soname,all -shared -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE
Using LDFLAGS=-L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -fPIE -pie -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE
Using LIBS=-lcups -L/usr/lib/x86_64-linux-gnu/mit-krb5 -Wl,-Bsymbolic-functions -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lavahi-common -lavahi-client -lgnutls -lz -lpthread -lm -lcrypt   -lz
Making all in cups...
Making all in test...
Making all in filter...
Linking gziptoany...
Making all in backend...
Making all in berkeley...
Making all in cgi-bin...
Linking admin.cgi...
Linking classes.cgi...
Linking help.cgi...
Linking jobs.cgi...
Linking printers.cgi...
Making all in monitor...
Making all in notifier...
Compiling dbus.c...
Linking dbus...
Compiling mailto.c...
Linking mailto...
Compiling rss.c...
Linking rss...
Compiling testnotify.c...
Linking testnotify...
Making all in ppdc...
Making all in scheduler...
Making all in systemv...
Making all in conf...
Making all in data...
Making all in desktop...
Making all in locale...
Making all in man...
Compressing lpoptions.man...Compressing client.conf.man...Compressing cups-files.conf.man...Compressing cupsd.conf.man...Compressing cupsaddsmb.man...Compressing cups-lpd.man...Compressing cups-snmp.man...Compressing cupsd.man...Making all in doc...
Making all in examples...
Making all in templates...

*****************************************************************************************************************************
make check
*****************************************************************************************************************************

Using ARCHFLAGS=
Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE -isystem /usr/include/mit-krb5  -isystem /usr/include/mit-krb5  -I/usr/include/libusb-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -D_REENTRANT -I/usr/include/p11-kit-1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT  
Using ALL_CXXFLAGS=-I.. -D_CUPS_SOURCE -isystem /usr/include/mit-krb5   -I/usr/include/p11-kit-1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT  
Using CC=cc
Using CXX=cc
Using DSOFLAGS=-L../cups  -Wl,-soname,all -shared -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE
Using LDFLAGS=-L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -fPIE -pie -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE
Using LIBS=-lcups -L/usr/lib/x86_64-linux-gnu/mit-krb5 -Wl,-Bsymbolic-functions -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lavahi-common -lavahi-client -lgnutls -lz -lpthread -lm -lcrypt   -lz
Making all in cups...
Making all in test...
Making all in filter...
Making all in backend...
Making all in berkeley...
Making all in cgi-bin...
Making all in monitor...
Making all in notifier...
Making all in ppdc...
Making all in scheduler...
Making all in systemv...
Making all in conf...
Making all in data...
Making all in desktop...
Making all in locale...
Making all in man...
Making all in doc...
Making all in examples...
Making all in templates...
Using ARCHFLAGS=
Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE -isystem /usr/include/mit-krb5  -isystem /usr/include/mit-krb5  -I/usr/include/libusb-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -D_REENTRANT -I/usr/include/p11-kit-1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT  
Using ALL_CXXFLAGS=-I.. -D_CUPS_SOURCE -isystem /usr/include/mit-krb5   -I/usr/include/p11-kit-1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT  
Using CC=cc
Using CXX=cc
Using DSOFLAGS=-L../cups  -Wl,-soname,unittests -shared -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE
Using LDFLAGS=-L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -fPIE -pie -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE
Using LIBS=-lcups -L/usr/lib/x86_64-linux-gnu/mit-krb5 -Wl,-Bsymbolic-functions -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lavahi-common -lavahi-client -lgnutls -lz -lpthread -lm -lcrypt   -lz
Making all in cups...
Making all in test...
Making all in filter...
Making all in backend...
Making all in berkeley...
Making all in cgi-bin...
Linking testcgi...
Testing CGI API...
cgiInitialize: Set-Cookie: org.cups.sid=5bed2da7ece71b0cc16ec43017b77988; path=/; httponly;
FAIL (init)
Linking testhi...
Testing help index API...
nodes (5 nodes):
    1: testhi.html "Test File for Help Index Code" (0 words)
    2: testhi.html#2ND "This is the Second Anchor" (6 words)
    3: testhi.html#FIRST "This is the First Anchor" (2 words)
    4: testhi.html#INLINE "This is an in-line anchor that crosses a line." (3 words)
    5: testhi.html#THIRD "This is the Third Anchor" (0 words)
sorted (5 nodes):
    1: testhi.html "Test File for Help Index Code" (0 words)
    2: testhi.html#INLINE "This is an in-line anchor that crosses a line." (3 words)
    3: testhi.html#FIRST "This is the First Anchor" (2 words)
    4: testhi.html#2ND "This is the Second Anchor" (6 words)
    5: testhi.html#THIRD "This is the Third Anchor" (0 words)
Linking testtemplate...
Making all in monitor...
Making all in notifier...
Making all in ppdc...
Making all in scheduler...
Making all in systemv...
Making all in conf...
Making all in data...
Making all in desktop...
Making all in locale...
Making all in man...
Making all in doc...
Making all in examples...
Making all in templates...
Running CUPS test suite with defaults...
Welcome to the CUPS Automated Test Script.

Before we begin, it is important that you understand that the larger
tests require significant amounts of RAM and disk space.  If you
attempt to run one of the big tests on a system that lacks sufficient
disk and virtual memory, the UNIX kernel might decide to kill one or
more system processes that you've grown attached to, like the X
server.  The question you may want to ask yourself before running a
large test is: Do you feel lucky?

OK, now that we have the Dirty Harry quote out of the way, please
choose the type of test you wish to perform:

0 - No testing, keep the scheduler running for me (all systems)
1 - Basic conformance test, no load testing (all systems)
2 - Basic conformance test, some load testing (minimum 256MB VM, 50MB disk)
3 - Basic conformance test, extreme load testing (minimum 1GB VM, 500MB disk)
4 - Basic conformance test, torture load testing (minimum 2GB VM, 1GB disk)

Enter the number of the test you wish to perform: [1] 
Running the timid tests (1)

Now you can choose whether to create a SSL/TLS encryption key and
certificate for testing:

0 - Do not do SSL/TLS encryption tests
1 - Test but do not require encryption
2 - Test and require encryption

Enter the number of the SSL/TLS tests to perform: [0] 
Not using SSL/TLS (0)

This test script can use the Valgrind software from:

    http://developer.kde.org/~sewardj/

Enter Y to use Valgrind or N to not use Valgrind: [N] 

If CUPS was built with the --enable-debug-printfs configure option, you
can enable debug logging of the libraries.

Enter Y or a number from 0 to 9 to enable debug logging or N to not: [N] 
Creating directories for test...
Creating cupsd.conf for test...
Creating printers.conf for test...
Setting up environment variables for test...
Starting scheduler:
     ../scheduler/cupsd -c /tmp/cups-akashvm2404/cupsd.conf -f >/tmp/cups-akashvm2404/log/debug_log 2>&1 &

Scheduler is PID 7169.

Running IPP compliance tests...
Performing 4.1-requests.test: PASS
Performing 4.2-cups-printer-ops.test: PASS
Performing 4.3-job-ops.test: PASS
Performing 4.4-subscription-ops.test: PASS
Performing ipp-2.1.test: PASS

Running command tests...
Performing 5.1-lpadmin.sh: PASS
Performing 5.2-lpc.sh: PASS
Performing 5.3-lpq.sh: PASS
Performing 5.4-lpstat.sh: PASS
Performing 5.5-lp.sh: PASS
Performing 5.6-lpr.sh: PASS
Performing 5.7-lprm.sh: PASS
Performing 5.8-cancel.sh: PASS
Performing 5.9-lpinfo.sh: PASS
Performing restart test: PASS
Test Summary

PASS: cupsd exited with no errors.
PASS: All job control files purged.
PASS: Printer 'Test1' correctly produced 113 page(s).
PASS: Printer 'Test2' correctly produced 23 page(s).
PASS: Printer 'Test3' correctly produced 2 page(s).
PASS: 165 requests logged.
PASS: CUPS-Get-Default not logged.
PASS: 0 emergency messages.
PASS: 0 alert messages.
PASS: 0 critical messages.
PASS: 33 error messages.
PASS: 8 warning messages.
PASS: 0 notice messages.
PASS: 807 info messages.
PASS: 28084 debug messages.
PASS: 84633 debug2 messages.

Copied log file "access_log-2018-04-24-akashvm2404" to test directory.
Copied log file "debug_log-2018-04-24-akashvm2404" to test directory.
Copied log file "error_log-2018-04-24-akashvm2404" to test directory.
Copied log file "page_log-2018-04-24-akashvm2404" to test directory.
Copied report file "cups-str-2018-04-24-akashvm2404.html" to test directory.

All tests were successful.

*****************************************************************************************************************************
sudo make install
*****************************************************************************************************************************

Making all in cups...
Installing data files in cups...
Installing data files in test...
Installing sample ipptool files in /usr/share/cups/ipptool...
Installing data files in filter...
Installing data files in backend...
Installing USB quirks in /usr/share/cups/usb
Installing data files in berkeley...
Installing data files in cgi-bin...
Installing data files in monitor...
Installing data files in notifier...
Installing data files in ppdc...
Installing data files in scheduler...
Creating /usr/lib/cups/driver...
Creating /etc/cups...
Creating /etc/cups/ppd...
Creating /etc/cups/ssl...
Creating /var/run/cups...
Creating /var/run/cups/certs...
Creating /var/log/cups...
Creating /var/spool/cups...
Creating /var/spool/cups/tmp...
Creating /var/cache/cups...
Installing systemd configuration files...
Installing data files in systemv...
Installing data files in conf...
Installing data files in data...
Installing data files in desktop...
Installing cups.conf in /etc/dbus-1...
Installing desktop menu...
Installing desktop icons...
Installing data files in locale...
Installing data files in man...
Installing cancel.1.gz in /usr/share/man/man1...
Installing cups.1.gz in /usr/share/man/man1...
Installing cups-config.1.gz in /usr/share/man/man1...
Installing cupstestdsc.1.gz in /usr/share/man/man1...
Installing cupstestppd.1.gz in /usr/share/man/man1...
Installing ippfind.1.gz in /usr/share/man/man1...
Installing ipptool.1.gz in /usr/share/man/man1...
Installing lp.1.gz in /usr/share/man/man1...
Installing lpoptions.1.gz in /usr/share/man/man1...
Installing lpq.1.gz in /usr/share/man/man1...
Installing lprm.1.gz in /usr/share/man/man1...
Installing lpr.1.gz in /usr/share/man/man1...
Installing lpstat.1.gz in /usr/share/man/man1...
Installing ppdc.1.gz in /usr/share/man/man1...
Installing ppdhtml.1.gz in /usr/share/man/man1...
Installing ppdi.1.gz in /usr/share/man/man1...
Installing ppdmerge.1.gz in /usr/share/man/man1...
Installing ppdpo.1.gz in /usr/share/man/man1...
Installing classes.conf.5.gz in /usr/share/man/man5...
Installing client.conf.5.gz in /usr/share/man/man5...
Installing cups-files.conf.5.gz in /usr/share/man/man5...
Installing cups-snmp.conf.5.gz in /usr/share/man/man5...
Installing cupsd.conf.5.gz in /usr/share/man/man5...
Installing cupsd-logs.5.gz in /usr/share/man/man5...
Installing ipptoolfile.5.gz in /usr/share/man/man5...
Installing mailto.conf.5.gz in /usr/share/man/man5...
Installing mime.convs.5.gz in /usr/share/man/man5...
Installing mime.types.5.gz in /usr/share/man/man5...
Installing ppdcfile.5.gz in /usr/share/man/man5...
Installing printers.conf.5.gz in /usr/share/man/man5...
Installing subscriptions.conf.5.gz in /usr/share/man/man5...
Installing backend.7.gz in /usr/share/man/man7...
Installing filter.7.gz in /usr/share/man/man7...
Installing notifier.7.gz in /usr/share/man/man7...
Installing cupsaccept.8.gz in /usr/share/man/man8...
Installing cupsaddsmb.8.gz in /usr/share/man/man8...
Installing cupsctl.8.gz in /usr/share/man/man8...
Installing cupsfilter.8.gz in /usr/share/man/man8...
Installing cups-lpd.8.gz in /usr/share/man/man8...
Installing cups-snmp.8.gz in /usr/share/man/man8...
Installing cupsd.8.gz in /usr/share/man/man8...
Installing cupsd-helper.8.gz in /usr/share/man/man8...
Installing cupsenable.8.gz in /usr/share/man/man8...
Installing lpadmin.8.gz in /usr/share/man/man8...
Installing lpinfo.8.gz in /usr/share/man/man8...
Installing lpmove.8.gz in /usr/share/man/man8...
Installing lpc.8.gz in /usr/share/man/man8...
Installing data files in doc...
Installing data files in examples...
Installing data files in templates...
Installing cups-config script...
Installing header files in cups...
Installing header files into /usr/include/cups...
Installing header files in test...
Installing header files in filter...
Installing header files in backend...
Installing header files in berkeley...
Installing header files in cgi-bin...
Installing header files in monitor...
Installing header files in notifier...
Installing header files in ppdc...
Installing header files in scheduler...
Installing header files in systemv...
Installing header files in conf...
Installing header files in data...
Installing header files in desktop...
Installing header files in locale...
Installing header files in man...
Installing header files in doc...
Installing header files in examples...
Installing header files in templates...
Using ARCHFLAGS=
Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE -isystem /usr/include/mit-krb5  -isystem /usr/include/mit-krb5  -I/usr/include/libusb-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -D_REENTRANT -I/usr/include/p11-kit-1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT  
Using ALL_CXXFLAGS=-I.. -D_CUPS_SOURCE -isystem /usr/include/mit-krb5   -I/usr/include/p11-kit-1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT  
Using CC=cc
Using CXX=cc
Using DSOFLAGS=-L../cups  -Wl,-soname,libs -shared -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE
Using LDFLAGS=-L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -fPIE -pie -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE
Using LIBS=-lcups -L/usr/lib/x86_64-linux-gnu/mit-krb5 -Wl,-Bsymbolic-functions -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lavahi-common -lavahi-client -lgnutls -lz -lpthread -lm -lcrypt   -lz
Making libraries in cups...
Making libraries in test...
Making libraries in filter...
Making libraries in backend...
Making libraries in berkeley...
Making libraries in cgi-bin...
Making libraries in monitor...
Making libraries in notifier...
Making libraries in ppdc...
Making libraries in scheduler...
Making libraries in systemv...
Making libraries in conf...
Making libraries in data...
Making libraries in desktop...
Making libraries in locale...
Making libraries in man...
Making libraries in doc...
Making libraries in examples...
Making libraries in templates...
Installing libraries in cups...
Installing libraries in /usr/lib...
Installing libraries in test...
Installing libraries in filter...
Installing libraries in backend...
Installing backends in /usr/lib/cups/backend
Installing libraries in berkeley...
Installing libraries in cgi-bin...
Installing libraries in /usr/lib...
Installing libraries in monitor...
Installing libraries in notifier...
Installing libraries in ppdc...
Installing libraries in /usr/lib...
Installing libraries in scheduler...
Installing libraries in /usr/lib...
Installing libraries in systemv...
Installing libraries in conf...
Installing libraries in data...
Installing libraries in desktop...
Installing libraries in locale...
Installing libraries in man...
Installing libraries in doc...
Installing libraries in examples...
Installing libraries in templates...
Using ARCHFLAGS=
Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE -isystem /usr/include/mit-krb5  -isystem /usr/include/mit-krb5  -I/usr/include/libusb-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -D_REENTRANT -I/usr/include/p11-kit-1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT  
Using ALL_CXXFLAGS=-I.. -D_CUPS_SOURCE -isystem /usr/include/mit-krb5   -I/usr/include/p11-kit-1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT  
Using CC=cc
Using CXX=cc
Using DSOFLAGS=-L../cups  -Wl,-soname,all -shared -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE
Using LDFLAGS=-L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -fPIE -pie -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE
Using LIBS=-lcups -L/usr/lib/x86_64-linux-gnu/mit-krb5 -Wl,-Bsymbolic-functions -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lavahi-common -lavahi-client -lgnutls -lz -lpthread -lm -lcrypt   -lz
Making all in cups...
Making all in test...
Making all in filter...
Making all in backend...
Making all in berkeley...
Making all in cgi-bin...
Making all in monitor...
Making all in notifier...
Making all in ppdc...
Making all in scheduler...
Making all in systemv...
Making all in conf...
Making all in data...
Making all in desktop...
Making all in locale...
Making all in man...
Making all in doc...
Making all in examples...
Making all in templates...
Installing programs in cups...
Installing programs in test...
Installing ipptool in /usr/bin...
Installing programs in filter...
Installing programs in backend...
Installing backends in /usr/lib/cups/backend
Installing programs in berkeley...
Installing Berkeley user printing commands in /usr/bin...
Installing Berkeley admin printing commands in /usr/bin...
Installing programs in cgi-bin...
Installing programs in monitor...
Installing programs in notifier...
Installing notifiers in /usr/lib/cups/notifier...
Installing programs in ppdc...
Installing PPD compiler programs...
Installing programs in scheduler...
Installing programs in /usr/sbin...
Installing programs in /usr/lib/cups/daemon...
Installing programs in systemv...
Installing System V admin printing commands in /usr/sbin
Installing System V user printing commands in /usr/bin
Installing programs in conf...
Installing programs in data...
Installing programs in desktop...
Installing programs in locale...
Installing programs in man...
Installing programs in doc...
Installing programs in examples...
Installing programs in templates...


*****************************************************************************************************************************
service cups status
*****************************************************************************************************************************

‚óŹ cups.service - CUPS Scheduler
   Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2018-04-24 23:19:41 IST; 15min ago
     Docs: man:cupsd(8)
  Process: 582 ExecStart=/usr/sbin/cupsd -l (code=exited, status=127)
 Main PID: 582 (code=exited, status=127)

Apr 24 23:19:41 akashvm2404-VirtualBox systemd[1]: Started CUPS Scheduler.
Apr 24 23:19:41 akashvm2404-VirtualBox cupsd[582]: /usr/sbin/cupsd: symbol lookup error: /usr/sbin/cupsd: undefined symbol: _cupsMessageSave
Apr 24 23:19:41 akashvm2404-VirtualBox systemd[1]: cups.service: Main process exited, code=exited, status=127/n/a
Apr 24 23:19:41 akashvm2404-VirtualBox systemd[1]: cups.service: Unit entered failed state.
Apr 24 23:19:41 akashvm2404-VirtualBox systemd[1]: cups.service: Failed with result 'exit-code'.
Apr 24 23:19:41 akashvm2404-VirtualBox systemd[1]: cups.service: Start request repeated too quickly.
Apr 24 23:19:41 akashvm2404-VirtualBox systemd[1]: Failed to start CUPS Scheduler.
Apr 24 23:19:41 akashvm2404-VirtualBox systemd[1]: cups.service: Failed with result 'exit-code'.


*****************************************************************************************************************************
ipptool error ( i just wrote ipptool thinking it will show thw help but the error occured )
*****************************************************************************************************************************

ipptool: symbol lookup error: ipptool: undefined symbol: _ippVarsPasswordCB


*****************************************************************************************************************************
output of ld.lld ipptool
*****************************************************************************************************************************

ld.lld: error: ipptool.c:2874: undefined symbol 'signal'
ld.lld: error: ipptool.c:780: undefined symbol 'httpSeparateURI'
ld.lld: error: ipptool.c:783: undefined symbol 'httpSeparateURI'
ld.lld: error: ipptool.c:800: undefined symbol '_cups_strcasecmp'
ld.lld: error: ipptool.c:803: undefined symbol 'strcmp'
ld.lld: error: ipptool.c:806: undefined symbol '_cups_strcasecmp'
ld.lld: error: ipptool.c:812: undefined symbol '_cups_strcasecmp'
ld.lld: error: ipptool.c:813: undefined symbol '_cups_strcasecmp'
ld.lld: error: ipptool.c:812: undefined symbol '_cups_strcasecmp'
ld.lld: error: ipptool.c:815: undefined symbol 'strcmp'
ld.lld: error: ipptool.c:816: undefined symbol '__stack_chk_fail'
ld.lld: error: /usr/include/x86_64-linux-gnu/bits/stdio2.h:77: undefined symbol '__vsnprintf_chk'
ld.lld: error: ipptool.c:750: undefined symbol 'cupsArrayAdd'
ld.lld: error: ipptool.c:751: undefined symbol '__stack_chk_fail'
ld.lld: error: ipptool.c:2750: undefined symbol 'cupsFilePrintf'
ld.lld: error: ipptool.c:2759: undefined symbol 'cupsFilePuts'
ld.lld: error: ipptool.c:2773: undefined symbol 'cupsFilePutChar'
ld.lld: error: ipptool.c:2785: undefined symbol 'cupsFilePutChar'
ld.lld: error: ipptool.c:2790: undefined symbol 'cupsFilePutChar'
ld.lld: error: ipptool.c:2791: undefined symbol 'cupsFilePutChar'
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)



More information about the cups mailing list