Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile source on Debian 11.6 #6101

Closed
cyborgnrw opened this issue Jan 23, 2023 · 1 comment
Closed

Can't compile source on Debian 11.6 #6101

cyborgnrw opened this issue Jan 23, 2023 · 1 comment

Comments

@cyborgnrw
Copy link

cyborgnrw commented Jan 23, 2023

Hi guys,

I've just installed Debian 11 a hour ago via netinst and tried to install CUPS 2.3.6 by following the install.md but it fails on the make command.

>lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

>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

>git clone https://github.com/apple/cups
>cd cups
>./configure

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for codesign... no
checking for true... /usr/bin/true
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... /usr/bin/chmod
checking for gzip... /usr/bin/gzip
checking for install-sh script... using /root/temp/cups/install-sh
checking for ld... /usr/bin/ld
checking for ln... /usr/bin/ln
checking for mkdir... /usr/bin/mkdir
checking for mv... /usr/bin/mv
checking for rm... /usr/bin/rm
checking for rmdir... /usr/bin/rmdir
checking for sed... /usr/bin/sed
checking for xdg-open... no
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... /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... 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 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 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... "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 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_FORTIFY_SOURCE=2 -D_REENTRANT -I/usr/include/p11-kit-1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT  -Werror -Wno-error=deprecated-declarations -Wno-unknown-warning-option -Wall -Wno-format-y2k -Wunused -Wno-unused-result -Wsign-conversion  -Wno-unused-but-set-variable  -Wno-unused-variable
Using ALL_CXXFLAGS=-I.. -D_CUPS_SOURCE -isystem /usr/include/mit-krb5   -D_FORTIFY_SOURCE=2 -I/usr/include/p11-kit-1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT  -Werror -Wno-error=deprecated-declarations -Wno-unknown-warning-option -Wall -Wno-format-y2k -Wunused -Wno-unused-result -Wsign-conversion  -Wno-unused-but-set-variable  -Wno-unused-variable
Using CC=cc
Using CXX=cc
Using DSOFLAGS=-Wl,-soname,all -shared
Using LDFLAGS=
Using LIBS=-L/usr/lib/x86_64-linux-gnu/mit-krb5 -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lavahi-common -lavahi-client -lgnutls -lz -lpthread -lm -lcrypt   -lz
Making all in cups...
make[1]: Verzeichnis „/root/temp/cups/cups“ wird betreten
Compiling dest.c...
dest.c: In function ‘cupsGetDestWithURI’:
dest.c:1291:42: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 9 and 1021 [-Werror=format-truncation=]
 1291 |       snprintf(temp, sizeof(temp), "%s @ %s", resource + 11, hostname);
      |                                          ^~                  ~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from string-private.h:19,
                 from cups-private.h:18,
                 from dest.c:15:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 4 and 1271 bytes into a destination of size 1024
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dest.c:1285:42: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 8 and 1021 [-Werror=format-truncation=]
 1285 |       snprintf(temp, sizeof(temp), "%s @ %s", resource + 10, hostname);
      |                                          ^~                  ~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from string-private.h:19,
                 from cups-private.h:18,
                 from dest.c:15:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 4 and 1272 bytes into a destination of size 1024
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dest.c:1279:42: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 7 and 1021 [-Werror=format-truncation=]
 1279 |       snprintf(temp, sizeof(temp), "%s @ %s", resource + 9, hostname);
      |                                          ^~                 ~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from string-private.h:19,
                 from cups-private.h:18,
                 from dest.c:15:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 4 and 1273 bytes into a destination of size 1024
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dest.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors
make[1]: *** [../Makedefs:271: dest.o] Fehler 1
make[1]: Verzeichnis „/root/temp/cups/cups“ wird verlassen
make: *** [Makefile:42: all] Fehler 1

Any idea how to solve this?

@cyborgnrw
Copy link
Author

My failure... wrong repository... I'll need: https://github.com/openprinting/cups/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant