problem installing 5.0.5
When installing 5.0.5 on a Centos 4u5 system with kernel.org 2.6.29.4, i receive a daemon error.
Here are the last couple of lines...
# DEBUG=1 make
gcc -g -Wall -DDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -rdynamic -fPIE -D_GNU_SOURCE -I../include -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -DAUTOFS_FIFO_DIR=\"/var/run\" -DAUTOFS_FLAG_DIR=\"/var/run\" -DVERSION_STRING=\"5.0.5\" -I/usr/include/libxml2 -c state.c gcc -g -Wall -DDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -rdynamic -fPIE -D_GNU_SOURCE -I../include -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -DAUTOFS_FIFO_DIR=\"/var/run\" -DAUTOFS_FLAG_DIR=\"/var/run\" -DVERSION_STRING=\"5.0.5\" -I/usr/include/libxml2 -c flag.c gcc -g -lpthread -rdynamic -pie -o automount automount.o indirect.o direct.o spawn.o module.o mount.o lookup.o state.o flag.o ../lib/autofs.a -ldl -lxml2 -lz -lpthread -lm
../lib/autofs.a(master_tok.o)(.text+0x1b45): In function `master_set_scan_buffer':/usr/src/autofs-5.0.5/lib/master_tok.l:417: undefined reference to `master_lex_destroy'
collect2: ld returned 1 exit status
make[1]: *** [automount] Error 1
make[1]: Leaving directory `/usr/src/autofs-5.0.5/daemon'
make: *** [daemon] Error 2
Ian Kent
maintainerQuoted 19 lines · Philip Ong Jr.
When installing 5.0.5 on a Centos 4u5 system with kernel.org 2.6.29.4, i receive a daemon error.
Here are the last couple of lines...
# DEBUG=1 make
gcc -g -Wall -DDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -rdynamic -fPIE(quoted diff) +0
-4-D_GNU_SOURCE -I../include -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -DAUTOFS_FIFO_DIR=\"/var/run\" -DAUTOFS_FLAG_DIR=\"/var/run\" -DVERSION_STRING=\"5.0.5\" -I/usr/include/libxml2 -c state.cgcc -g -Wall -DDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -rdynamic -fPIE
(quoted diff) +0
-4-D_GNU_SOURCE -I../include -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -DAUTOFS_FIFO_DIR=\"/var/run\" -DAUTOFS_FLAG_DIR=\"/var/run\" -DVERSION_STRING=\"5.0.5\" -I/usr/include/libxml2 -c flag.cgcc -g -lpthread -rdynamic -pie -o automount automount.o indirect.o direct.o spawn.o module.o mount.o lookup.o state.o flag.o ../lib/autofs.a -ldl -lxml2 -lz -lpthread -lm
Quoted 8 lines
../lib/autofs.a(master_tok.o)(.text+0x1b45): In function `master_set_scan_buffer':
/usr/src/autofs-5.0.5/lib/master_tok.l:417: undefined reference to `master_lex_destroy'
collect2: ld returned 1 exit status
make[1]: *** [automount] Error 1
make[1]: Leaving directory `/usr/src/autofs-5.0.5/daemon'
make: *** [daemon] Error 2
You need to check on kernel.org for patch updates.
This was resolved with patch autofs-5.0.5-dont-use-master_lex_destroy-to-clear-parse-buffer.patch
Since the patch changes the CHANGELOG file and there are several other patches before it in patch_order-5.0.5 you will get a rejection unless you also apply the previous patches. I recommend applying all the current 5.0.5 patches (as you would expect).
Ian
Philip Ong Jr.
AppliedI applied the patches starting from top to down...and now receiving error messages pertaining to conditional statements.
patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-included-map-read-fail-handling.patch patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-refactor-ldap-sasl-bind.patch
patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.4-add-mount-wait-parameter.patch
patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-special-case-cifs-escapes.patch
patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-libxml2-workaround-configure.patch patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-more-code-analysis-corrections.patch patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-backwards-ifndef-INET6.patch patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-stale-init-for-file-map-instance.patch patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-ext4-fsck-at-mount.patch
patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-dont-use-master_lex_destroy-to-clear-parse-buffer.patch patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-make-documentation-for-set-log-priority-clearer.patch patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-timeout-in-connect_nb.patch
patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-pidof-init-script-usage.patch patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-check-for-path-mount-location-in-generic-module.patch patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-dont-fail-mount-on-access-fail.patch patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-rpc-large-export-list.patch
patch -p1 < /usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-memory-leak-on-reload.patch
# ./configure --disable-mount-locking --enable-ignore-busy
# DEBUG=1 make
gcc -g -lpthread -rdynamic -pie -o automount automount.o indirect.o direct.o spawn.o module.o mount.o lookup.o state.o flag.o ../lib/autofs.a -ldl -lxml2 -lz -lpthread -lm : automount
make[1]: Leaving directory `/usr/src/autofs-5.0.5/daemon'
make[1]: Entering directory `/usr/src/autofs-5.0.5/modules'
Makefile:75: Extraneous text after `else' directive
Makefile:80: Extraneous text after `else' directive
Makefile:80: *** only one `else' per conditional. Stop.
make[1]: Leaving directory `/usr/src/autofs-5.0.5/modules'
make: *** [daemon] Error 2
Thoughts?
Quoted 43 lines · Ian Kent
Quoted 19 lines · Philip Ong Jr.
When installing 5.0.5 on a Centos 4u5 system with kernel.org 2.6.29.4, i receive a daemon error.
Here are the last couple of lines...
# DEBUG=1 make
gcc -g -Wall -DDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -rdynamic -fPIE(quoted diff) +0
-4-D_GNU_SOURCE -I../include -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -DAUTOFS_FIFO_DIR=\"/var/run\" -DAUTOFS_FLAG_DIR=\"/var/run\" -DVERSION_STRING=\"5.0.5\" -I/usr/include/libxml2 -c state.cgcc -g -Wall -DDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -rdynamic -fPIE
(quoted diff) +0
-4-D_GNU_SOURCE -I../include -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -DAUTOFS_FIFO_DIR=\"/var/run\" -DAUTOFS_FLAG_DIR=\"/var/run\" -DVERSION_STRING=\"5.0.5\" -I/usr/include/libxml2 -c flag.cgcc -g -lpthread -rdynamic -pie -o automount automount.o indirect.o direct.o spawn.o module.o mount.o lookup.o state.o flag.o ../lib/autofs.a -ldl -lxml2 -lz -lpthread -lm
Quoted 9 lines
../lib/autofs.a(master_tok.o)(.text+0x1b45): In function `master_set_scan_buffer':
/usr/src/autofs-5.0.5/lib/master_tok.l:417: undefined reference to `master_lex_destroy'
collect2: ld returned 1 exit status
make[1]: *** [automount] Error 1
make[1]: Leaving directory `/usr/src/autofs-5.0.5/daemon'
make: *** [daemon] Error 2You need to check on kernel.org for patch updates.
This was resolved with patch autofs-5.0.5-dont-use-master_lex_destroy-to-clear-parse-buffer.patchSince the patch changes the CHANGELOG file and there are several other patches before it in patch_order-5.0.5 you will get a rejection unless you also apply the previous patches. I recommend applying all the current 5.0.5 patches (as you would expect).
Ian
Ian Kent
maintainerQuoted 63 lines · Philip Ong Jr.
I applied the patches starting from top to down...and now receiving error messages pertaining to conditional statements.
patch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-included-map-read-fail-handling.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-refactor-ldap-sasl-bind.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.4-add-mount-wait-parameter.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-special-case-cifs-escapes.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-libxml2-workaround-configure.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-more-code-analysis-corrections.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-backwards-ifndef-INET6.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-stale-init-for-file-map-instance.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-ext4-fsck-at-mount.patch
patch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-dont-use-master_lex_destroy-to-clear-parse-buffer.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-make-documentation-for-set-log-priority-clearer.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-timeout-in-connect_nb.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-pidof-init-script-usage.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-check-for-path-mount-location-in-generic-module.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-dont-fail-mount-on-access-fail.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-rpc-large-export-list.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-memory-leak-on-reload.patch# ./configure --disable-mount-locking --enable-ignore-busy# DEBUG=1 make
gcc -g -lpthread -rdynamic -pie -o automount automount.o indirect.o direct.o spawn.o module.o mount.o lookup.o state.o flag.o ../lib/autofs.a -ldl -lxml2 -lz -lpthread -lm
: automount
make[1]: Leaving directory/usr/src/autofs-5.0.5/daemon' make[1]: Entering directory/usr/src/autofs-5.0.5/modules' Makefile:75: Extraneous text afterelse' directive Makefile:80: Extraneous text afterelse' directive Makefile:80: *** only oneelse' per conditional. Stop. make[1]: Leaving directory/usr/src/autofs-5.0.5/modules'
make: *** [daemon] Error 2
Quoted 1 line
Thoughts?
Oh ... bummer, wonder how I've broken the patch series?
I'll check it out and get back to you.
In the meantime, have you tried checking out the git repo and building that?
Ian
I have not, how do I go about doing that?
Phil
Quoted 76 lines · Ian Kent
Quoted 63 lines · Philip Ong Jr.
I applied the patches starting from top to down...and now receiving error messages pertaining to conditional statements.
patch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-included-map-read-fail-handling.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-refactor-ldap-sasl-bind.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.4-add-mount-wait-parameter.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-special-case-cifs-escapes.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-libxml2-workaround-configure.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-more-code-analysis-corrections.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-backwards-ifndef-INET6.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-stale-init-for-file-map-instance.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-ext4-fsck-at-mount.patch
patch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-dont-use-master_lex_destroy-to-clear-parse-buffer.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-make-documentation-for-set-log-priority-clearer.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-timeout-in-connect_nb.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-pidof-init-script-usage.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-check-for-path-mount-location-in-generic-module.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-dont-fail-mount-on-access-fail.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-rpc-large-export-list.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-memory-leak-on-reload.patch# ./configure --disable-mount-locking --enable-ignore-busy# DEBUG=1 make
gcc -g -lpthread -rdynamic -pie -o automount automount.o indirect.o direct.o spawn.o module.o mount.o lookup.o state.o flag.o ../lib/autofs.a -ldl -lxml2 -lz -lpthread -lm
: automount
make[1]: Leaving directory/usr/src/autofs-5.0.5/daemon' make[1]: Entering directory/usr/src/autofs-5.0.5/modules' Makefile:75: Extraneous text afterelse' directive Makefile:80: Extraneous text afterelse' directive Makefile:80: *** only oneelse' per conditional. Stop. make[1]: Leaving directory/usr/src/autofs-5.0.5/modules'
make: *** [daemon] Error 2Quoted 2 lines
Thoughts?
Oh ... bummer, wonder how I've broken the patch series?
I'll check it out and get back to you.
In the meantime, have you tried checking out the git repo and building that?Ian
Ian Kent
maintainerQuoted 1 line · Philip Ong Jr.
I have not, how do I go about doing that?
Clone the git repository:
git clone git://git.kernel.org/pub/scm/linux/storage/autofs/autofs.git
cd autofs
./configure --disable-mount-locking --enable-ignore-busy DEBUG=1 make
should work.
If this still doesn't work and you are not able to update your make then consider grabbing the autofs5 package from CentOS 4u8 (if u8 is available) and use that. That package is reasonably up to date wrt. 5.0.5. You will need to check when autofs5 was added to CentOS 4 because it will require the kernel of at least that CentOS 4 update. Indeed, if you do manage to build 5.0.5 from source (+ patches) and you do not have a kernel with the version 5 patches it will refuse to start. So you need to do this check anyway.
Quoted 96 lines
Phil
Quoted 92 lines · Ian Kent
Quoted 78 lines · Philip Ong Jr.
I applied the patches starting from top to down...and now receiving error messages pertaining to conditional statements.
patch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-included-map-read-fail-handling.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-refactor-ldap-sasl-bind.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.4-add-mount-wait-parameter.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-special-case-cifs-escapes.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-libxml2-workaround-configure.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-more-code-analysis-corrections.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-backwards-ifndef-INET6.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-stale-init-for-file-map-instance.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-ext4-fsck-at-mount.patch
patch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-dont-use-master_lex_destroy-to-clear-parse-buffer.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-make-documentation-for-set-log-priority-clearer.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-timeout-in-connect_nb.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-pidof-init-script-usage.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-check-for-path-mount-location-in-generic-module.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-dont-fail-mount-on-access-fail.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-rpc-large-export-list.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-memory-leak-on-reload.patch# ./configure --disable-mount-locking --enable-ignore-busy# DEBUG=1 make
gcc -g -lpthread -rdynamic -pie -o automount automount.o indirect.o direct.o spawn.o module.o mount.o lookup.o state.o flag.o ../lib/autofs.a -ldl -lxml2 -lz -lpthread -lm
: automount
make[1]: Leaving directory/usr/src/autofs-5.0.5/daemon' make[1]: Entering directory/usr/src/autofs-5.0.5/modules' Makefile:75: Extraneous text afterelse' directive Makefile:80: Extraneous text afterelse' directive Makefile:80: *** only oneelse' per conditional. Stop. make[1]: Leaving directory/usr/src/autofs-5.0.5/modules'
make: *** [daemon] Error 2Quoted 2 lines
Thoughts?
Oh ... bummer, wonder how I've broken the patch series?
I'll check it out and get back to you.
In the meantime, have you tried checking out the git repo and building that?Ian
I cloned from the git repository and still am receiving the error. I'll see if I can get it from Centos, but it may not be an option if I have to update the kernel.
_DIR=\"/etc/sysconfig\" -DAUTOFS_FIFO_DIR=\"/var/run\" -DAUTOFS_FLAG_DIR=\"/var/run\" -DVERSION_STRING=\"5.0.5\" -I/usr/include/libxml2 -c lookup.c
gcc -g -Wall -DDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -rdynamic -fPIE -D_GNU_SOURCE -I../include -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -DAUTOFS_FIFO_DIR=\"/var/run\" -DAUTOFS_FLAG_DIR=\"/var/run\" -DVERSION_STRING=\"5.0.5\" -I/usr/include/libxml2 -c state.c gcc -g -Wall -DDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -rdynamic -fPIE -D_GNU_SOURCE -I../include -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -DAUTOFS_FIFO_DIR=\"/var/run\" -DAUTOFS_FLAG_DIR=\"/var/run\" -DVERSION_STRING=\"5.0.5\" -I/usr/include/libxml2 -c flag.c gcc -g -lpthread -rdynamic -pie -o automount automount.o indirect.o direct.o spawn.o module.o mount.o lookup.o state.o flag.o ../lib/autofs.a -ldl -lxml2 -lz -lpthread -lm
: automount
make[1]: Leaving directory `/tmp/automounter/autofs/daemon'
make[1]: Entering directory `/tmp/automounter/autofs/modules'
Makefile:75: Extraneous text after `else' directive
Makefile:80: Extraneous text after `else' directive
Makefile:80: *** only one `else' per conditional. Stop.
make[1]: Leaving directory `/tmp/automounter/autofs/modules'
make: *** [daemon] Error 2
Quoted 125 lines · Ian Kent
Quoted 2 lines · Philip Ong Jr.
I have not, how do I go about doing that?
Clone the git repository:
git clone
git://git.kernel.org/pub/scm/linux/storage/autofs/autofs.git
cd autofs
./configure --disable-mount-locking --enable-ignore-busy DEBUG=1 makeshould work.
If this still doesn't work and you are not able to update your make then consider grabbing the autofs5 package from CentOS 4u8 (if u8 is available) and use that. That package is reasonably up to date wrt. 5.0.5. You will need to check when autofs5 was added to CentOS 4 because it will require the kernel of at least that CentOS 4 update. Indeed, if you do manage to build 5.0.5 from source (+ patches) and you do not have a kernel with the version 5 patches it will refuse to start. So you need to do this check anyway.
Quoted 98 lines
Phil
Quoted 94 lines · Ian Kent
Quoted 78 lines · Philip Ong Jr.
I applied the patches starting from top to down...and now receiving error messages pertaining to conditional statements.
patch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-included-map-read-fail-handling.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-refactor-ldap-sasl-bind.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.4-add-mount-wait-parameter.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-special-case-cifs-escapes.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-libxml2-workaround-configure.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-more-code-analysis-corrections.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-backwards-ifndef-INET6.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-stale-init-for-file-map-instance.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-ext4-fsck-at-mount.patch
patch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-dont-use-master_lex_destroy-to-clear-parse-buffer.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-make-documentation-for-set-log-priority-clearer.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-timeout-in-connect_nb.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-pidof-init-script-usage.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-check-for-path-mount-location-in-generic-module.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-dont-fail-mount-on-access-fail.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-rpc-large-export-list.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-memory-leak-on-reload.patch# ./configure --disable-mount-locking --enable-ignore-busy# DEBUG=1 make
gcc -g -lpthread -rdynamic -pie -o automount automount.o indirect.o direct.o spawn.o module.o mount.o lookup.o state.o flag.o ../lib/autofs.a -ldl -lxml2 -lz -lpthread -lm
: automount
make[1]: Leaving directory/usr/src/autofs-5.0.5/daemon' make[1]: Entering directory/usr/src/autofs-5.0.5/modules' Makefile:75: Extraneous text afterelse' directive Makefile:80: Extraneous text afterelse' directive Makefile:80: *** only oneelse' per conditional. Stop. make[1]: Leaving directory/usr/src/autofs-5.0.5/modules'
make: *** [daemon] Error 2Quoted 3 lines
Thoughts?
Oh ... bummer, wonder how I've broken the patch series?
I'll check it out and get back to you.
In the meantime, have you tried checking out the git repo and building that?Ian
Ian Kent
maintainerQuoted 2 lines · Philip Ong Jr.
I applied the patches starting from top to down...and now receiving error messages pertaining to conditional statements.
I don't get this problem here, except that I'm obviously not using CentOS 4u5.
I tried three times using the 5.0.5 tar, the first by initializing the source tree as an StGIT repo and importing my local copy of the patches, second by manually applying my local patches and lastly by wget'ing the patches from kernel.org and manually applying them.
All makes worked fine.
So your make might be a bit brain dead!
Quoted 108 lines
patch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-included-map-read-fail-handling.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-refactor-ldap-sasl-bind.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.4-add-mount-wait-parameter.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-special-case-cifs-escapes.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-libxml2-workaround-configure.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-more-code-analysis-corrections.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-backwards-ifndef-INET6.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-stale-init-for-file-map-instance.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-ext4-fsck-at-mount.patch
patch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-dont-use-master_lex_destroy-to-clear-parse-buffer.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-make-documentation-for-set-log-priority-clearer.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-timeout-in-connect_nb.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-pidof-init-script-usage.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-check-for-path-mount-location-in-generic-module.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-dont-fail-mount-on-access-fail.patchpatch -p1 <
/usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-rpc-large-export-list.patchpatch -p1 </usr/src/autofs-5.0.5/patches/autofs-5.0.5-fix-memory-leak-on-reload.patch# ./configure --disable-mount-locking --enable-ignore-busy# DEBUG=1 make
gcc -g -lpthread -rdynamic -pie -o automount automount.o indirect.o direct.o spawn.o module.o mount.o lookup.o state.o flag.o ../lib/autofs.a -ldl -lxml2 -lz -lpthread -lm
: automount
make[1]: Leaving directory/usr/src/autofs-5.0.5/daemon' make[1]: Entering directory/usr/src/autofs-5.0.5/modules' Makefile:75: Extraneous text afterelse' directive Makefile:80: Extraneous text afterelse' directive Makefile:80: *** only oneelse' per conditional. Stop. make[1]: Leaving directory/usr/src/autofs-5.0.5/modules'
make: *** [daemon] Error 2Thoughts?
Quoted 43 lines · Ian Kent
Quoted 19 lines · Philip Ong Jr.
When installing 5.0.5 on a Centos 4u5 system with kernel.org 2.6.29.4, i receive a daemon error.
Here are the last couple of lines...
# DEBUG=1 make
gcc -g -Wall -DDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -rdynamic -fPIE(quoted diff) +0
-4-D_GNU_SOURCE -I../include -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -DAUTOFS_FIFO_DIR=\"/var/run\" -DAUTOFS_FLAG_DIR=\"/var/run\" -DVERSION_STRING=\"5.0.5\" -I/usr/include/libxml2 -c state.cgcc -g -Wall -DDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -rdynamic -fPIE
(quoted diff) +0
-4-D_GNU_SOURCE -I../include -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -DAUTOFS_FIFO_DIR=\"/var/run\" -DAUTOFS_FLAG_DIR=\"/var/run\" -DVERSION_STRING=\"5.0.5\" -I/usr/include/libxml2 -c flag.cgcc -g -lpthread -rdynamic -pie -o automount automount.o indirect.o direct.o spawn.o module.o mount.o lookup.o state.o flag.o ../lib/autofs.a -ldl -lxml2 -lz -lpthread -lm
Quoted 9 lines
../lib/autofs.a(master_tok.o)(.text+0x1b45): In function `master_set_scan_buffer':
/usr/src/autofs-5.0.5/lib/master_tok.l:417: undefined reference to `master_lex_destroy'
collect2: ld returned 1 exit status
make[1]: *** [automount] Error 1
make[1]: Leaving directory `/usr/src/autofs-5.0.5/daemon'
make: *** [daemon] Error 2You need to check on kernel.org for patch updates.
This was resolved with patch autofs-5.0.5-dont-use-master_lex_destroy-to-clear-parse-buffer.patchSince the patch changes the CHANGELOG file and there are several other patches before it in patch_order-5.0.5 you will get a rejection unless you also apply the previous patches. I recommend applying all the current 5.0.5 patches (as you would expect).
Ian