CSCG / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

Compilation fails b/c of -Werror #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download
2. ./configure
3. make

What is the expected output? What do you see instead?

/bin/bash ./libtool --tag=CC   --mode=compile gcc
-DPACKAGE_NAME=\"shellinabox\" -DPACKAGE_TARNAME=\"shellinabox\"
-DPACKAGE_VERSION=\"2.3\" -DPACKAGE_STRING=\"shellinabox\ 2.3\"
-DPACKAGE_BUGREPORT=\"markus@shellinabox.com\" -DPACKAGE=\"shellinabox\"
-DVERSION=\"2.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_PTHREAD_H=1 -I.    -g -std=gnu99 -Wall -Werror -Os -g -O2 -MT ssl.lo
-MD -MP -MF .deps/ssl.Tpo -c -o ssl.lo `test -f 'libhttp/ssl.c' || echo
'./'`libhttp/ssl.c
 gcc -DPACKAGE_NAME=\"shellinabox\" -DPACKAGE_TARNAME=\"shellinabox\"
-DPACKAGE_VERSION=\"2.3\" "-DPACKAGE_STRING=\"shellinabox 2.3\""
-DPACKAGE_BUGREPORT=\"markus@shellinabox.com\" -DPACKAGE=\"shellinabox\"
-DVERSION=\"2.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_PTHREAD_H=1 -I. -g -std=gnu99 -Wall -Werror -Os -g -O2 -MT ssl.lo
-MD -MP -MF .deps/ssl.Tpo -c libhttp/ssl.c  -fPIC -DPIC -o .libs/ssl.o
cc1: warnings being treated as errors
libhttp/ssl.c:274: error: ‘sslGenerateCertificate’ defined but not used
make: *** [ssl.lo] Error 1

What version of the product are you using? On what operating system?

shellinabox-2.3.tar.gz

Please provide any additional information below.

Can be worked around by removing -Werror and running automake && ./configure

Original issue reported on code.google.com by anders.n...@gmail.com on 11 Feb 2009 at 3:57

GoogleCodeExporter commented 9 years ago
This should be fixed with version 2.4. Please submit a new issue, if you 
encounter
any other build problems.

Original comment by zod...@gmail.com on 13 Feb 2009 at 2:02

GoogleCodeExporter commented 9 years ago
Is this related?

gcc -DHAVE_CONFIG_H -I.    -g -std=gnu99 -Wall -Werror -Os -g -O2 -MT 
launcher.o -MD
-MP -MF .deps/launcher.Tpo -c -o launcher.o `test -f 'shellinabox/launcher.c' 
|| echo
'./'`shellinabox/launcher.c
cc1: warnings being treated as errors
shellinabox/launcher.c: In function ‘launcherDaemon’:
shellinabox/launcher.c:1246: error: ignoring return value of ‘write’, 
declared with
attribute warn_unused_result
make[1]: *** [launcher.o] Error 1
make[1]: Leaving directory `/usr/local/src/shellinabox/shellinabox-read-only'
make: *** [all] Error 2
root@6m:/usr/local/src/shellinabox/shellinabox-read-only# 

Original comment by TomOeh...@gmail.com on 16 Mar 2009 at 2:39

GoogleCodeExporter commented 9 years ago
These two warnings are not really related. The only thing they have in common 
are the
fact that both of them got triggered, because GCC is getting more aggressive 
about
issuing warning messages.

Original comment by zod...@gmail.com on 16 Mar 2009 at 3:14