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

Build failure: xsane #370011

Open
neilmayhew opened this issue Jan 1, 2025 · 0 comments · May be fixed by #370637
Open

Build failure: xsane #370011

neilmayhew opened this issue Jan 1, 2025 · 0 comments · May be fixed by #370637
Labels
0.kind: build failure A package fails to build

Comments

@neilmayhew
Copy link
Member

neilmayhew commented Jan 1, 2025

Steps To Reproduce

Steps to reproduce the behavior:

nix build nixpkgs#xsane

OR

nix build .#xsane in an up-to-date git checkout of nixpkgs (currently at 534a509).

OR

https://hydra.nixos.org/job/nixpkgs/trunk/xsane.x86_64-linux

Build log

Build Log
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/pzygldk8wkwdr4c2bvaz30gmi9p0lmg9-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/p1x7jrcraw8515gpfm4l21754661l0h7-xsane-0.998-libpng.patch
patching file src/xsane-save.c
Hunk #1 succeeded at 4910 (offset -2 lines).
Hunk #2 succeeded at 5100 (offset -2 lines).
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
patching script interpreter paths in ./configure
./configure: interpreter directive changed from "#! /bin/sh" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/sh"
configure flags: --prefix=/nix/store/x84rn8w2fzm8v412gr4y3h105cnq4cvx-xsane-0.999

**************************************************************************

checking whether GTK+-2.0 is requested... yes
checking whether GIMP plugin is requested... yes
checking whether GIMP-2.0 is requested... yes
checking whether JPEG support is requested... yes
checking whether PNG support is requested... yes
checking whether TIFF support is requested... yes
checking whether LCMS (color management) support is requested... yes

**************************************************************************

checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /nix/store/aap6cq56amx4mzbyxp2wpgsf1kqjcr1f-gnugrep-3.11/bin/grep
checking for egrep... /nix/store/aap6cq56amx4mzbyxp2wpgsf1kqjcr1f-gnugrep-3.11/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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /nix/store/4s9rah4cwaxflicsk5cndnknqlk9n4p3-coreutils-9.5/bin/install -c
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for ANSI C header files... (cached) yes
checking for windows.h... (cached) no
checking os2.h usability... no
checking os2.h presence... no
checking for os2.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking libc.h usability... no
checking libc.h presence... no
checking for libc.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking return type of signal handlers... void
checking for size_t... yes
checking for pid_t... yes
checking for ssize_t... yes
checking for u_char... yes
checking for u_int... yes
checking for u_long... yes
checking for sqrt in -lm... yes
checking for deflateInit_ in -lz... yes
checking for jpeg_start_decompress in -ljpeg... yes
checking for TIFFOpen in -ltiff... yes
checking for cmsOpenProfileFromFile in -llcms... no
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for atexit... yes
checking for mkdir... yes
checking for sigprocmask... yes
checking for strdup... yes
checking for strndup... yes
checking for strftime... yes
checking for strstr... yes
checking for strsep... yes
checking for strtod... yes
checking for snprintf... yes
checking for usleep... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for lstat... yes
checking for ranlib... ranlib
checking for off_t... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking for sys/param.h... (cached) yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... yes
checking for strcasecmp... (cached) yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for stpcpy... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for gettext in libc... yes
checking for msgfmt... /nix/store/9a46kza0vbb4vdsdmpzbdc7f31y7hs0i-gettext-0.22.5/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /nix/store/9a46kza0vbb4vdsdmpzbdc7f31y7hs0i-gettext-0.22.5/bin/msgfmt
checking for xgettext... /nix/store/9a46kza0vbb4vdsdmpzbdc7f31y7hs0i-gettext-0.22.5/bin/xgettext
checking for catalogs to be installed...  ca cs da de es fi fr hu it ja nl pa pl pt pt_BR ro ru sk sl sr sv vi tr zh zh_CN
checking for sane-config... /nix/store/1q67cnppn7dnksadpkg93c4kqhq7v9b3-sane-backends-1.3.1/bin/sane-config
checking for SANE - version >= 1.0.0... no
*** Could not run SANE test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding SANE or finding the wrong
*** version of SANE. If it is not finding SANE, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location  Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
***
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means SANE was incorrectly installed
*** or that you have moved SANE since it was installed. In the latter case, you
*** may want to edit the sane-config script: /nix/store/1q67cnppn7dnksadpkg93c4kqhq7v9b3-sane-backends-1.3.1/bin/sane-config
checking for pkg-config... /nix/store/0d4m43yp69lrm8imxbqgl9zxjwwz52jw-pkg-config-wrapper-0.29.2/bin/pkg-config
checking for GIMP - version >= 1.3.23... Package gimp-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gimp-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gimp-2.0' found
Package gimpui-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gimpui-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gimpui-2.0' found

*** Could not run GIMP test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GIMP is incorrectly installed.
*** When gimp-2.0 is not installed but gimp-1.x is installed then you can
*** ignore this error message.
checking for pkg-config... (cached) /nix/store/0d4m43yp69lrm8imxbqgl9zxjwwz52jw-pkg-config-wrapper-0.29.2/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes (version 2.24.33)
checking for gimp-config... no
checking for gimptool... no
checking libgimp/gimp.h usability... no
checking libgimp/gimp.h presence... no
checking for libgimp/gimp.h... no
checking libgimp/gimpfeatures.h usability... no
checking libgimp/gimpfeatures.h presence... no
checking for libgimp/gimpfeatures.h... no
no

*** Could not run GIMP test program, checking why...
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_create_info_struct in -lpng... yes
****************************************************************
ERROR: SANE-1.0.0 or newer is needed for compiling xsane
     - if you installed SANE as rpm make sure you also included
       sane-devel
****************************************************************

Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
no Makefile or custom buildPhase, doing nothing
Running phase: glibPreInstallPhase
@nix { "action": "setPhase", "phase": "glibPreInstallPhase" }
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
no Makefile or custom installPhase, doing nothing
Running phase: dropIconThemeCache
@nix { "action": "setPhase", "phase": "dropIconThemeCache" }
Running phase: glibPreFixupPhase
@nix { "action": "setPhase", "phase": "glibPreFixupPhase" }
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }

Additional context

This seems to be similar to the problem recently fixed in sane-frontends in #369228

Metadata

Notify maintainers

@mattmelling @timhae


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@neilmayhew neilmayhew added the 0.kind: build failure A package fails to build label Jan 1, 2025
@timhae timhae linked a pull request Jan 3, 2025 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant