bugdavfs2 - Bugs: bug #51004, gcc 4.8.4: unrecognized command...

 
 

bug #51004: gcc 4.8.4: unrecognized command line option '-fstack-protector-strong'

Submitter:  Pavel <spv82>
Submitted:  Thu 11 May 2017 03:48:07 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  _71007
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 12 May 2017 02:02:33 PM UTC, comment #1: 

This option is only available since gcc 4.9. If you can't update your compiler you can change this in file src/Makefile.in.

  • Please search for variable AM_CFLAGS. It should be around line 318 and looks like this

AM_CFLAGS = -Wall -Werror=format-security \
        -fstack-protector-strong --param=ssp-buffer-size=4

  • Change this into

AM_CFLAGS = -Wall -Werror=format-security \
        -fstack-protector

  • Now you should run ./configure and make.


Werner

- <_71007>
Thu 11 May 2017 03:48:07 PM UTC, original submission:  

/tmp/davfs2-1.5.4 $ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... 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 whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether ln -s works... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for neon-config... /usr/bin/neon-config
checking linking against neon... yes
configure: using neon library 0.29.6
configure: SSL is supported by neon
configure: zlib is supported by neon
configure: IPv6 is supported by neon
configure: LFS is supported by neon
configure: SOCKSv5 is not supported by neon
configure: thread-safe SSL is supported by neon
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
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 fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.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 mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int8_t... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for struct stat.st_blksize... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint32_t... yes
checking for uint64_t... yes
checking for working volatile... yes
checking size of void *... 4
checking for unistd.h... (cached) yes
checking for working chown... yes
checking whether closedir returns void... no
checking for error_at_line... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking type of array argument to getgroups... gid_t
checking for getgroups... yes
checking for working getgroups... yes
checking for library containing getmntent... none required
checking whether gcc needs -traditional... no
checking whether sys/types.h defines makedev... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set ,struct timeval
checking for strftime... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for utime.h... (cached) yes
checking whether utime accepts a null argument... yes
checking for endpwent... yes
checking for ftruncate... yes
checking for getmntent... (cached) yes
checking for memset... yes
checking for mkdir... yes
checking for nl_langinfo... yes
checking for rpmatch... yes
checking for select... yes
checking for setlocale... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strpbrk... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoull... yes
checking for utime... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating etc/Makefile
config.status: creating man/Makefile
config.status: creating man/de/Makefile
config.status: creating man/es/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile

Configuration for building davfs2 1.5.4:

  Install Prefix:            /usr/local
  Compiler:                  gcc
  Large File Support:        yes
  Neon Library:              library in /usr (0.29.6)
                             SSL is supported by neon
  National Language Support: libc

/tmp/davfs2-1.5.4 $ LC_ALL=C make -j2
make  all-recursive
make[1]: Entering directory `/tmp/davfs2-1.5.4'
Making all in po
make[2]: Entering directory `/tmp/davfs2-1.5.4/po'
make[2]: Leaving directory `/tmp/davfs2-1.5.4/po'
Making all in etc
make[2]: Entering directory `/tmp/davfs2-1.5.4/etc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/davfs2-1.5.4/etc'
Making all in man
make[2]: Entering directory `/tmp/davfs2-1.5.4/man'
Making all in de
make[3]: Entering directory `/tmp/davfs2-1.5.4/man/de'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/davfs2-1.5.4/man/de'
Making all in es
make[3]: Entering directory `/tmp/davfs2-1.5.4/man/es'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/davfs2-1.5.4/man/es'
make[3]: Entering directory `/tmp/davfs2-1.5.4/man'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/tmp/davfs2-1.5.4/man'
make[2]: Leaving directory `/tmp/davfs2-1.5.4/man'
Making all in src
make[2]: Entering directory `/tmp/davfs2-1.5.4/src'
gcc -DPROGRAM_NAME=\"mount.davfs\" -DDAV_SYS_CONF_DIR=\"/usr/local/etc/davfs2\" -DDAV_LOCALSTATE_DIR=\"/var/run\" -DDAV_SYS_RUN=\"/var/run/mount.davfs\" -DDAV_SYS_CACHE=\"/var/cache/davfs2\" -DDAV_SECRETS=\"secrets\" -DDAV_CONFIG=\"davfs2.conf\" -DDAV_CERTS_DIR=\"certs\" -DDAV_CLICERTS_DIR=\"private\" -DDAV_DATA_DIR=\"/usr/local/share/davfs2\" -DLOCALEDIR=\"/usr/local/share/locale\" -DDAV_USER=\"davfs2\" -DDAV_GROUP=\"davfs2\" -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -I. -I..    -Wall -Werror=format-security -fstack-protector-strong --param=ssp-buffer-size=4 -g -O2 -I/usr/include/neon -D_LARGEFILE64_SOURCE -DNE_LFS -MT cache.o -MD -MP -MF .deps/cache.Tpo -c -o cache.o cache.c
gcc -DPROGRAM_NAME=\"mount.davfs\" -DDAV_SYS_CONF_DIR=\"/usr/local/etc/davfs2\" -DDAV_LOCALSTATE_DIR=\"/var/run\" -DDAV_SYS_RUN=\"/var/run/mount.davfs\" -DDAV_SYS_CACHE=\"/var/cache/davfs2\" -DDAV_SECRETS=\"secrets\" -DDAV_CONFIG=\"davfs2.conf\" -DDAV_CERTS_DIR=\"certs\" -DDAV_CLICERTS_DIR=\"private\" -DDAV_DATA_DIR=\"/usr/local/share/davfs2\" -DLOCALEDIR=\"/usr/local/share/locale\" -DDAV_USER=\"davfs2\" -DDAV_GROUP=\"davfs2\" -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -I. -I..    -Wall -Werror=format-security -fstack-protector-strong --param=ssp-buffer-size=4 -g -O2 -I/usr/include/neon -D_LARGEFILE64_SOURCE -DNE_LFS -MT dav_coda.o -MD -MP -MF .deps/dav_coda.Tpo -c -o dav_coda.o dav_coda.c
gcc: error: unrecognized command line option '-fstack-protector-strong'
make[2]: * [cache.o] Error 1
make[2]: * Waiting for unfinished jobs....
gcc: error: unrecognized command line option '-fstack-protector-strong'
make[2]: * [dav_coda.o] Error 1
make[2]: Leaving directory `/tmp/davfs2-1.5.4/src'
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory `/tmp/davfs2-1.5.4'
make: * [all] Error 2
/tmp/davfs2-1.5.4 $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.8/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~12.04.2' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-targets=all --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~12.04.2)

Pavel <spv82>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by _71007 (Posted a comment)
  • -email is unavailable- added by spv82 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-26 _71007 Open/ClosedOpen Closed
    2017-05-12 _71007 StatusNone Wont Fix
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code