[Nix-dev] pam not building on nixos?

Erick Tryzelaar erickt at dslextreme.com
Fri Jul 13 23:13:02 CEST 2007


I did "nixos-install" then "nixos-rebuild switch", and other than the 
problems with Theme-* not being found, I'm having trouble building pam. 
I think this is the error, and I'm not sure how to fix it:


if gcc -DHAVE_CONFIG_H -I. -I. -I.    -I./libpam/include 
-I./libpamc/include 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/include/glib-2.0 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/lib/glib-2.0/include   
-DLOCKDIR=\"/var/run/console\" -g -O2 -MT pam_console_apply-configfile.o 
-MD -MP -MF ".deps/pam_console_apply-configfile.Tpo" -c -o 
pam_console_apply-configfile.o `test -f 'configfile.c' || echo 
'./'`configfile.c; \
    then mv -f ".deps/pam_console_apply-configfile.Tpo" 
".deps/pam_console_apply-configfile.Po"; else rm -f 
".deps/pam_console_apply-configfile.Tpo"; exit 1; fi
In file included from ./chmod.h:1,
                 from configfile.y:17,
                 from configfile.c:57:
/nix/store/8n3fb89hfhyhl56f7gjba2cv90cwn9yd-glibc-2.5/include/unistd.h:325: 
error: conflicting types for 'read'
configfile.lex.c:1127: error: previous implicit declaration of 'read' 
was here


Here's the full log:

store derivation is /nix/store/2r3cpxy402lmw51l82z9wsf2q7iz9qv0-system.drv
building path(s) 
`/nix/store/pnkmxlb93q0xaqjfq9v34cyyjcz3gd5k-pam_console-0.99.5'
building /nix/store/pnkmxlb93q0xaqjfq9v34cyyjcz3gd5k-pam_console-0.99.5
unpacking sources
unpacking source archive 
/nix/store/pm2ignh2x6yz3695w4kjggzb177g8lbl-pam-redhat-0.99.5-1.tar.bz2
modules/pam_chroot/
modules/pam_chroot/pam_chroot.c
modules/pam_chroot/Makefile.am
modules/pam_chroot/README
modules/pam_chroot/chroot.conf
modules/pam_console/
modules/pam_console/pam_console.h
modules/pam_console/COPYING
modules/pam_console/chmod.h
modules/pam_console/regerr.c
modules/pam_console/console.handlers
modules/pam_console/pam_console.8
modules/pam_console/.cvsignore
modules/pam_console/pam_console_apply.8
modules/pam_console/chmod.c
modules/pam_console/50-default.perms
modules/pam_console/modechange.h
modules/pam_console/modechange.c
modules/pam_console/pam_console.c
modules/pam_console/configfile.c
modules/pam_console/handlers.c
modules/pam_console/console.apps.5
modules/pam_console/Makefile.am
modules/pam_console/handlers.h
modules/pam_console/console.perms
modules/pam_console/configfile.y
modules/pam_console/sed-static
modules/pam_console/hashtable_private.h
modules/pam_console/hashtable.h
modules/pam_console/pam_console_apply.c
modules/pam_console/README
modules/pam_console/configfile.h
modules/pam_console/hashtable.c
modules/pam_console/configfile.l
modules/pam_console/console.handlers.5
modules/pam_console/console.perms.5
modules/pam_postgresok/
modules/pam_postgresok/pam_postgresok.c
modules/pam_postgresok/Makefile.am
modules/pam_postgresok/pam_postgresok.8
modules/pam_postgresok/README
modules/pam_rps/
modules/pam_rps/pam_rps.8
modules/pam_rps/Makefile.am
modules/pam_rps/pam_rps.c
modules/pam_rps/README
modules/pam_stack/
modules/pam_stack/COPYING
modules/pam_stack/pam_stack.c
modules/pam_stack/Makefile.am
modules/pam_stack/README
modules/pam_stack/pam_stack.8
modules/pam_timestamp/
modules/pam_timestamp/pam_timestamp.8
modules/pam_timestamp/pam_timestamp_check.8
modules/pam_timestamp/hmacsha1.c
modules/pam_timestamp/hmacsha1.h
modules/pam_timestamp/sha1sum.c
modules/pam_timestamp/pam_timestamp_check.c
modules/pam_timestamp/Makefile.am
modules/pam_timestamp/hmacfile.c
modules/pam_timestamp/hmactest.c
modules/pam_timestamp/pam_timestamp.c
modules/pam_timestamp/README
modules/pam_timestamp/sha1.c
modules/pam_timestamp/sha1.h
modules/pam_loginuid/
modules/pam_loginuid/pam_loginuid.c
modules/pam_loginuid/pam_loginuid.8
modules/pam_loginuid/Makefile.am
modules/pam_tally2/
modules/pam_tally2/Makefile.am
modules/pam_tally2/README
modules/pam_tally2/pam_tally.c
modules/pam_tally2/tallylog.h
modules/pam_tally2/pam_tally_app.c
source root is modules
configuring
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
Makefile.am: installing `./INSTALL'
Makefile.am: installing `./compile'
Makefile.am: installing `./depcomp'
fixing libtool script ./ltmain.sh
configure flags: 
--prefix=/nix/store/pnkmxlb93q0xaqjfq9v34cyyjcz3gd5k-pam_console-0.99.5 
--disable-static
checking for a BSD-compatible install... 
/nix/store/gfd9rnzxbnpy9cp5rg7xsxpib5kdd300-coreutils-6.9/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for pkg-config... 
/nix/store/9nhvwiqph06m90a23jywbkd43nv565pz-pkgconfig-0.21/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 dependency style of gcc... gcc3
checking for a sed that does not truncate output... 
/nix/store/rlky5ppaq4ksnmkl0f3j4sbnkp8fcsf4-gnused-4.1.5/bin/sed
checking for grep that handles long lines and -e... 
/nix/store/2ndaam58wl748gx9qzrmmqmb30np84cm-gnugrep-2.5.1a/bin/grep
checking for egrep... 
/nix/store/2ndaam58wl748gx9qzrmmqmb30np84cm-gnugrep-2.5.1a/bin/grep -E
checking for ld used by gcc... 
/nix/store/1jxricifzba57maclkj4bgz7fw2m13cd-gcc-4.1.2/bin/ld
checking if the linker 
(/nix/store/1jxricifzba57maclkj4bgz7fw2m13cd-gcc-4.1.2/bin/ld) is GNU 
ld... yes
checking for 
/nix/store/1jxricifzba57maclkj4bgz7fw2m13cd-gcc-4.1.2/bin/ld option to 
reload object files... -r
checking for BSD-compatible nm... 
/nix/store/p69bpbijgac39zch56q4qr5qv9pqlvh3-binutils-2.17/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
./configure: line 4584: /usr/bin/file: No such file or directory
checking how to run the C preprocessor... gcc -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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 32768
checking command to parse 
/nix/store/p69bpbijgac39zch56q4qr5qv9pqlvh3-binutils-2.17/bin/nm -B 
output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker 
(/nix/store/1jxricifzba57maclkj4bgz7fw2m13cd-gcc-4.1.2/bin/ld) supports 
shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking for bison... bison -y
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
building
make flags: LEX=flex  
building all
make  all-am
building pam_console_la-pam_console.lo
make[1]: Entering directory `/tmp/nix-20862-0/modules/pam_console'
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H 
-I. -I. -I.    -I./libpam/include -I./libpamc/include 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/include/glib-2.0 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/lib/glib-2.0/include   
-DLOCKDIR=\"/var/run/console\" -g -O2 -MT pam_console_la-pam_console.lo 
-MD -MP -MF ".deps/pam_console_la-pam_console.Tpo" -c -o 
pam_console_la-pam_console.lo `test -f 'pam_console.c' || echo 
'./'`pam_console.c; \
    then mv -f ".deps/pam_console_la-pam_console.Tpo" 
".deps/pam_console_la-pam_console.Plo"; else rm -f 
".deps/pam_console_la-pam_console.Tpo"; exit 1; fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I./libpam/include -I./libpamc/include 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/include/glib-2.0 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/lib/glib-2.0/include 
-DLOCKDIR=\"/var/run/console\" -g -O2 -MT pam_console_la-pam_console.lo 
-MD -MP -MF .deps/pam_console_la-pam_console.Tpo -c pam_console.c  -fPIC 
-DPIC -o .libs/pam_console_la-pam_console.o
building pam_console_la-regerr.lo
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H 
-I. -I. -I.    -I./libpam/include -I./libpamc/include 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/include/glib-2.0 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/lib/glib-2.0/include   
-DLOCKDIR=\"/var/run/console\" -g -O2 -MT pam_console_la-regerr.lo -MD 
-MP -MF ".deps/pam_console_la-regerr.Tpo" -c -o pam_console_la-regerr.lo 
`test -f 'regerr.c' || echo './'`regerr.c; \
    then mv -f ".deps/pam_console_la-regerr.Tpo" 
".deps/pam_console_la-regerr.Plo"; else rm -f 
".deps/pam_console_la-regerr.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I./libpam/include -I./libpamc/include 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/include/glib-2.0 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/lib/glib-2.0/include 
-DLOCKDIR=\"/var/run/console\" -g -O2 -MT pam_console_la-regerr.lo -MD 
-MP -MF .deps/pam_console_la-regerr.Tpo -c regerr.c  -fPIC -DPIC -o 
.libs/pam_console_la-regerr.o
building pam_console_la-handlers.lo
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H 
-I. -I. -I.    -I./libpam/include -I./libpamc/include 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/include/glib-2.0 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/lib/glib-2.0/include   
-DLOCKDIR=\"/var/run/console\" -g -O2 -MT pam_console_la-handlers.lo -MD 
-MP -MF ".deps/pam_console_la-handlers.Tpo" -c -o 
pam_console_la-handlers.lo `test -f 'handlers.c' || echo './'`handlers.c; \
    then mv -f ".deps/pam_console_la-handlers.Tpo" 
".deps/pam_console_la-handlers.Plo"; else rm -f 
".deps/pam_console_la-handlers.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I./libpam/include -I./libpamc/include 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/include/glib-2.0 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/lib/glib-2.0/include 
-DLOCKDIR=\"/var/run/console\" -g -O2 -MT pam_console_la-handlers.lo -MD 
-MP -MF .deps/pam_console_la-handlers.Tpo -c handlers.c  -fPIC -DPIC -o 
.libs/pam_console_la-handlers.o
building pam_console.la
/bin/sh ./libtool --tag=CC --mode=link gcc -I./libpam/include 
-I./libpamc/include 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/include/glib-2.0 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/lib/glib-2.0/include   
-DLOCKDIR=\"/var/run/console\" -g -O2   -o pam_console.la -rpath 
/nix/store/pnkmxlb93q0xaqjfq9v34cyyjcz3gd5k-pam_console-0.99.5/lib/security 
-no-undefined -avoid-version -module  pam_console_la-pam_console.lo 
pam_console_la-regerr.lo pam_console_la-handlers.lo -L./libpam -lpam 
./libtool: line 1872: cd: ./libpam: No such file or directory
libtool: link: cannot determine absolute directory name of `./libpam'
gcc -shared  .libs/pam_console_la-pam_console.o 
.libs/pam_console_la-regerr.o .libs/pam_console_la-handlers.o  -lpam  
-Wl,-soname -Wl,pam_console.so -o .libs/pam_console.so
creating pam_console.la
(cd .libs && rm -f pam_console.la && ln -s ../pam_console.la pam_console.la)
building pam_console_apply-pam_console_apply.o
if gcc -DHAVE_CONFIG_H -I. -I. -I.    -I./libpam/include 
-I./libpamc/include 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/include/glib-2.0 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/lib/glib-2.0/include   
-DLOCKDIR=\"/var/run/console\" -g -O2 -MT 
pam_console_apply-pam_console_apply.o -MD -MP -MF 
".deps/pam_console_apply-pam_console_apply.Tpo" -c -o 
pam_console_apply-pam_console_apply.o `test -f 'pam_console_apply.c' || 
echo './'`pam_console_apply.c; \
    then mv -f ".deps/pam_console_apply-pam_console_apply.Tpo" 
".deps/pam_console_apply-pam_console_apply.Po"; else rm -f 
".deps/pam_console_apply-pam_console_apply.Tpo"; exit 1; fi
building pam_console_apply-chmod.o
if gcc -DHAVE_CONFIG_H -I. -I. -I.    -I./libpam/include 
-I./libpamc/include 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/include/glib-2.0 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/lib/glib-2.0/include   
-DLOCKDIR=\"/var/run/console\" -g -O2 -MT pam_console_apply-chmod.o -MD 
-MP -MF ".deps/pam_console_apply-chmod.Tpo" -c -o 
pam_console_apply-chmod.o `test -f 'chmod.c' || echo './'`chmod.c; \
    then mv -f ".deps/pam_console_apply-chmod.Tpo" 
".deps/pam_console_apply-chmod.Po"; else rm -f 
".deps/pam_console_apply-chmod.Tpo"; exit 1; fi
modechange.h:63: warning: 'mode_compile' used but never defined
modechange.h:64: warning: 'mode_adjust' used but never defined
building pam_console_apply-modechange.o
if gcc -DHAVE_CONFIG_H -I. -I. -I.    -I./libpam/include 
-I./libpamc/include 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/include/glib-2.0 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/lib/glib-2.0/include   
-DLOCKDIR=\"/var/run/console\" -g -O2 -MT pam_console_apply-modechange.o 
-MD -MP -MF ".deps/pam_console_apply-modechange.Tpo" -c -o 
pam_console_apply-modechange.o `test -f 'modechange.c' || echo 
'./'`modechange.c; \
    then mv -f ".deps/pam_console_apply-modechange.Tpo" 
".deps/pam_console_apply-modechange.Po"; else rm -f 
".deps/pam_console_apply-modechange.Tpo"; exit 1; fi
building pam_console_apply-regerr.o
if gcc -DHAVE_CONFIG_H -I. -I. -I.    -I./libpam/include 
-I./libpamc/include 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/include/glib-2.0 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/lib/glib-2.0/include   
-DLOCKDIR=\"/var/run/console\" -g -O2 -MT pam_console_apply-regerr.o -MD 
-MP -MF ".deps/pam_console_apply-regerr.Tpo" -c -o 
pam_console_apply-regerr.o `test -f 'regerr.c' || echo './'`regerr.c; \
    then mv -f ".deps/pam_console_apply-regerr.Tpo" 
".deps/pam_console_apply-regerr.Po"; else rm -f 
".deps/pam_console_apply-regerr.Tpo"; exit 1; fi
building configfile.tab.c
bison -y -d -o configfile.tab.c -p _pc_yy configfile.y
conflicts: 1 shift/reduce
sh ./sed-static configfile.tab.c
building configfile.lex.c
flex -Cr -oconfigfile.lex.c -P_pc_yy configfile.l
sh ./sed-static configfile.lex.c
building pam_console_apply-configfile.o
if gcc -DHAVE_CONFIG_H -I. -I. -I.    -I./libpam/include 
-I./libpamc/include 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/include/glib-2.0 
-I/nix/store/mqb7ywa9cm9af7h1bbywik9zzgyvnd7q-glib-2.12.11/lib/glib-2.0/include   
-DLOCKDIR=\"/var/run/console\" -g -O2 -MT pam_console_apply-configfile.o 
-MD -MP -MF ".deps/pam_console_apply-configfile.Tpo" -c -o 
pam_console_apply-configfile.o `test -f 'configfile.c' || echo 
'./'`configfile.c; \
    then mv -f ".deps/pam_console_apply-configfile.Tpo" 
".deps/pam_console_apply-configfile.Po"; else rm -f 
".deps/pam_console_apply-configfile.Tpo"; exit 1; fi
In file included from ./chmod.h:1,
                 from configfile.y:17,
                 from configfile.c:57:
/nix/store/8n3fb89hfhyhl56f7gjba2cv90cwn9yd-glibc-2.5/include/unistd.h:325: 
error: conflicting types for 'read'
configfile.lex.c:1127: error: previous implicit declaration of 'read' 
was here
make[1]: *** [pam_console_apply-configfile.o] Error 1
make[1]: Leaving directory `/tmp/nix-20862-0/modules/pam_console'
make: *** [all] Error 2
builder for 
`/nix/store/vmjv3p7f8v99gmm9kf5878n5jyyinax4-pam_console-0.99.5.drv' 
failed; keeping build directory `/tmp/nix-20862-0'
builder for 
`/nix/store/vmjv3p7f8v99gmm9kf5878n5jyyinax4-pam_console-0.99.5.drv' 
failed with exit code 1
cannot build derivation 
`/nix/store/qj93jglkrir26plxhnp2dsl0jxdck6hn-console.handlers.drv': 1 
inputs could not be realised
cannot build derivation 
`/nix/store/7zmcizjhnbsirmk2bf29hs7rb9pz9klh-sudo.drv': 2 inputs could 
not be realised
cannot build derivation 
`/nix/store/8m7008j3hzdcsrasxm1mp8dcgrs5q7vl-other.drv': 2 inputs could 
not be realised
cannot build derivation 
`/nix/store/1dnrmclrk36jy7w3wzcv4qccv978pq5q-common-console.drv': 2 
inputs could not be realised
cannot build derivation 
`/nix/store/2x73fppksw8c51msic14xignd43g615l-sshd.drv': 2 inputs could 
not be realised
cannot build derivation 
`/nix/store/9kba20l9gjhqwv3vffyx8ijkag367ing-shadow.drv': 2 inputs could 
not be realised
cannot build derivation 
`/nix/store/bd0qy4xvbm4p3skimhc39la98hd3djiy-login.drv': 2 inputs could 
not be realised
cannot build derivation 
`/nix/store/cyk9xkgsilicvxnx8hd2icyq7xz8wnsd-common.drv': 2 inputs could 
not be realised
cannot build derivation 
`/nix/store/hq1nkzxryqm11maxzv04s6mjd5zl518g-useradd.drv': 2 inputs 
could not be realised
cannot build derivation 
`/nix/store/h5wni08rab7d4xmll2kiijnbcsia7vb5-passwd.drv': 2 inputs could 
not be realised
cannot build derivation 
`/nix/store/hva8pk9njj9s3ssq6q4ndmdxgmpyj887-su.drv': 2 inputs could not 
be realised
cannot build derivation 
`/nix/store/q07d7bq7kkh2dgb72y819qwf705mp9jd-slim.drv': 2 inputs could 
not be realised
cannot build derivation 
`/nix/store/q3i9fjnzw1hg4n4zfi6ql69yc63sx96h-chsh.drv': 2 inputs could 
not be realised
cannot build derivation 
`/nix/store/9z1bzzpn5fwscsnmcajvcd8ix9p51vwr-etc.drv': 12 inputs could 
not be realised
cannot build derivation 
`/nix/store/a4fkwkjgdbnpjm2l4fxy4xc5w2h0lr6r-activate-configuration.sh.drv': 
1 inputs could not be realised
cannot build derivation 
`/nix/store/5m5wdimfbnvlinjy6sqkj4zl2dabbqkv-boot-stage-2-init.sh.drv': 
1 inputs could not be realised
cannot build derivation 
`/nix/store/2r3cpxy402lmw51l82z9wsf2q7iz9qv0-system.drv': 3 inputs could 
not be realised
error: build of `/nix/store/2r3cpxy402lmw51l82z9wsf2q7iz9qv0-system.drv' 
failed




More information about the nix-dev mailing list