[stunnel-users] stunnel 5.25 released

Michal Trojnara Michal.Trojnara at mirt.net
Thu Nov 5 10:13:28 CET 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 05.11.2015 05:17, Josealf.rm wrote:
> I tested stunnel 5.26b1 with gcc 4.85 under Windows. All fine
> except that I had to change the #include <openssl/applink.c> to
> <../ms/applink.c> as it was on previous releases.

I'm not sure what you mean by "gcc 4.85 under Windows".
I guess mingw, but it still doesn't give me enough information to
reproduce and fix the issue.  Please consider reading:
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

Trying to reproduce the issue you reported I managed to build stunnel
with Cygwin.  See the attached file for details.

The stunnel/OpenSSL build procedure for Windows has recently changed.
 stunnel no longer uses the OpenSSL source tree, but rather the
installed files.  The problem is that OpenSSL does not install the
applink.c file required for Windows targets.  I guess this is an
OpenSSL bug.  My current script for cross-compiling OpenSSL on
Debian/Ubuntu is:

#!/bin/bash
set -e

case $1 in
    32)
        TARGET=i686
        MINGW=mingw
        ;;
    64)
        TARGET=x86_64
        MINGW=mingw64
        ;;
    *)
        echo "Usage: $0 {32|64}"
        exit 1
esac

./Configure \
    --cross-compile-prefix=${TARGET}-w64-mingw32- \
    --openssldir=/opt/openssl-${MINGW} \
    ${MINGW} shared
make
sudo make install
sudo cp ms/applink.c /opt/openssl-${MINGW}/include/openssl/

Best regards,
	Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWOx24AAoJEC78f/DUFuAUyGoP/R2vYPNpx6e0xhZPIGe18LAG
505b8IjfGbLH/5vm+oBGwZkMCIghaY2yj6qjLd6SaQFotyXJ1YoLh9AyDSf+sDIc
qNNvSLTbTI/0vHHR2dZFxjGUWoTlrm6hwecbHfT7nk5eI3mJF6zdBYLYRS0QTzdf
ropQJ6WSLG5SBALUxdM33/9Edgei+/AMjwBBCda4ctRzsgDrRZstgn/l5QgeI7OS
K/Iz2ihhELArpQ9ZD1VGCueGo78DGAvw/xQOld3OIF+jtzJ5YCm8qEm0i2oJ7jkh
0Ir2Hnm6/MQqMx8ftufo/c+BZHnarxRFwEfKd3j8JMvV1u7TMFOUq7T1h6j3iSQX
ou7esUNTQNPP4vBs//IYR3NSKxp60QnwlMWoCLIJNeI0iucVrsGZonn3WUdDaGFO
UXU0KywiH87dJWA5Sih51Nq78/crwQ4woXop9fWmZI25Wvr8oRw1poB34qWpsAch
SyC3FuR30g1qd1ksUDuNtaWkyiP4AChVxzMzW/4WKvEjKQEBRbwMS1QEPP2U0TDb
xcNRMS5SbnF26mPCWuY/dQNwdoPaxBcNlcZWGEUpSHFK2pC9zTri2YBFrK7pnoDQ
vhOrAyQfvhA2qbknyfGI+NGZVNoTO7NSrGhMlIZ15uuVvjt8nK+JYyiRQM0s0HJ8
EklGipaIsXCleyqGYCmr
=697K
-----END PGP SIGNATURE-----
-------------- next part --------------
mtrojnar at WIN-RNVS6A2J2L6 /cygdrive/z/devel/cygwin/stunnel-5.25
$ chmod a+x configure

mtrojnar at WIN-RNVS6A2J2L6 /cygdrive/z/devel/cygwin/stunnel-5.25
$ ./configure
configure: **************************************** initialization
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
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 make sets $(MAKE)... (cached) yes
configure: **************************************** thread model
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... no
configure: PTHREAD thread model detected
configure: **************************************** compiler/linker flags
checking whether C compiler accepts -Wall... yes
checking whether C compiler accepts -Wextra... yes
checking whether C compiler accepts -Wpedantic... yes
checking whether C compiler accepts -Wformat=2... yes
checking whether C compiler accepts -Wconversion... yes
checking whether C compiler accepts -Wno-long-long... yes
checking whether C compiler accepts -Wno-deprecated-declarations... yes
checking whether C compiler accepts -fstack-protector... yes
checking whether C compiler accepts -fPIE... yes
checking whether C compiler accepts -D_FORTIFY_SOURCE=2... yes
checking whether the linker accepts -fPIE... yes
checking whether the linker accepts -pie... yes
checking whether the linker accepts -Wl,-z,relro... no
checking whether the linker accepts -Wl,-z,now... no
checking whether the linker accepts -Wl,-z,noexecstack... no
configure: **************************************** libtool
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-pc-cygwin/bin/ld.exe
checking if the linker (/usr/x86_64-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-cygwin file names to x86_64-unknown-cygwin format... func_convert_file_noop
checking how to convert x86_64-unknown-cygwin file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-pc-cygwin/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
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: **************************************** types
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uid_t in sys/types.h... yes
checking for socklen_t... yes
checking for struct sockaddr_un... yes
checking for struct addrinfo... yes
configure: **************************************** PTY device files
checking for "/dev/ptmx"... yes
checking for "/dev/ptc"... no
configure: **************************************** entropy sources
checking for "/dev/urandom"... yes
configure: **************************************** default group
grep: /etc/group: No such file or directory
checking for default group... nobody
configure: **************************************** header files
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking ucontext.h usability... yes
checking ucontext.h presence... yes
checking for ucontext.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking tcpd.h usability... no
checking tcpd.h presence... no
checking for tcpd.h... no
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for unistd.h... (cached) yes
checking util.h usability... no
checking util.h presence... no
checking for util.h... no
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking for sys/types.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/syscall.h usability... no
checking sys/syscall.h presence... no
checking for sys/syscall.h... no
checking linux/sched.h usability... no
checking linux/sched.h presence... no
checking for linux/sched.h... no
checking for struct msghdr.msg_control... yes
checking for linux/netfilter_ipv4.h... no
configure: **************************************** libraries
checking for library containing gethostbyname... none required
checking for library containing yp_get_default_domain... no
checking for library containing socket... none required
checking for library containing openpty... none required
checking for library containing dlopen... none required
checking for library containing shl_load... no
checking for library containing inflateEnd... -lz
configure: **************************************** library functions
checking for snprintf... yes
checking for vsnprintf... yes
checking for openpty... yes
checking for _getpty... no
checking for daemon... yes
checking for waitpid... yes
checking for wait4... yes
checking for setsid... yes
checking for setgroups... yes
checking for chroot... yes
checking for sysconf... yes
checking for getrlimit... yes
checking for pthread_sigmask... yes
checking for localtime_r... yes
checking for getcontext... yes
checking for __makecontext_v2... no
checking for poll... yes
checking for gethostbyname2... yes
checking for endhostent... yes
checking for getnameinfo... yes
checking for getaddrinfo... yes
checking for broken poll() implementation... no
checking for pipe2... yes
checking for accept4... yes
configure: **************************************** optional features
checking whether to enable IPv6 support... yes (default)
checking whether to enable FIPS support... autodetecting
checking whether to enable systemd socket activation support... autodetecting
checking for library containing sd_listen_fds... no
configure: systemd library not found
checking whether to enable TCP wrappers support... autodetecting
checking for hosts_access in -lwrap... no
configure: libwrap library not found
configure: **************************************** SSL
checking for compiler sysroot... /
checking for SSL directory... /usr
checking for FIPS_mode_set... yes
configure: FIPS support enabled
configure: **************************************** write the results
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating tools/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: **************************************** success

mtrojnar at WIN-RNVS6A2J2L6 /cygdrive/z/devel/cygwin/stunnel-5.25
$ make
Making all in src
make[1]: Entering directory '/cygdrive/z/devel/cygwin/stunnel-5.25/src'
make  all-am
make[2]: Entering directory '/cygdrive/z/devel/cygwin/stunnel-5.25/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT env.lo -MD -MP -MF .deps/env.Tpo -c -o env.lo env.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -D_FORTIFY_SOURCE=2 -MT env.lo -MD -MP -MF .deps/env.Tpo -c env.c  -DDLL_EXPORT -DPIC -o .libs/env.o
mv -f .deps/env.Tpo .deps/env.Plo
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -avoid-version -fPIE -pie -o libstunnel.la -rpath /usr/local/lib/stunnel env.lo  -lz
libtool: link: warning: undefined symbols not allowed in x86_64-unknown-cygwin shared libraries
libtool: link: ar cru .libs/libstunnel.a  .libs/env.o
libtool: link: ranlib .libs/libstunnel.a
libtool: link: ( cd ".libs" && rm -f "libstunnel.la" && ln -s "../libstunnel.la" "libstunnel.la" )
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-tls.o -MD -MP -MF .deps/stunnel-tls.Tpo -c -o stunnel-tls.o `test -f 'tls.c' || echo './'`tls.c
tls.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-tls.Tpo .deps/stunnel-tls.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-str.o -MD -MP -MF .deps/stunnel-str.Tpo -c -o stunnel-str.o `test -f 'str.c' || echo './'`str.c
str.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-str.Tpo .deps/stunnel-str.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-file.o -MD -MP -MF .deps/stunnel-file.Tpo -c -o stunnel-file.o `test -f 'file.c' || echo './'`file.c
file.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-file.Tpo .deps/stunnel-file.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-client.o -MD -MP -MF .deps/stunnel-client.Tpo -c -o stunnel-client.o `test -f 'client.c' || echo './'`client.c
client.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
client.c: In function ‘local_bind’:
client.c:1404:9: warning: variable ‘on’ set but not used [-Wunused-but-set-variable]
     int on;
         ^
mv -f .deps/stunnel-client.Tpo .deps/stunnel-client.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-log.o -MD -MP -MF .deps/stunnel-log.Tpo -c -o stunnel-log.o `test -f 'log.c' || echo './'`log.c
log.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
log.c: In function ‘safestring’:
log.c:484:9: warning: array subscript has type ‘char’ [-Wchar-subscripts]
         if(!(*c&0x80 || isprint(*c)))
         ^
mv -f .deps/stunnel-log.Tpo .deps/stunnel-log.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-options.o -MD -MP -MF .deps/stunnel-options.Tpo -c -o stunnel-options.o `test -f 'options.c' || echo './'`options.c
options.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-options.Tpo .deps/stunnel-options.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-protocol.o -MD -MP -MF .deps/stunnel-protocol.Tpo -c -o stunnel-protocol.o `test -f 'protocol.c' || echo './'`protocol.c
protocol.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
protocol.c: In function ‘ntlm’:
protocol.c:1262:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
                 while(*tmpstr && isspace(*tmpstr))
                 ^
mv -f .deps/stunnel-protocol.Tpo .deps/stunnel-protocol.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-network.o -MD -MP -MF .deps/stunnel-network.Tpo -c -o stunnel-network.o `test -f 'network.c' || echo './'`network.c
network.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-network.Tpo .deps/stunnel-network.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-resolver.o -MD -MP -MF .deps/stunnel-resolver.Tpo -c -o stunnel-resolver.o `test -f 'resolver.c' || echo './'`resolver.c
resolver.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-resolver.Tpo .deps/stunnel-resolver.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-ssl.o -MD -MP -MF .deps/stunnel-ssl.Tpo -c -o stunnel-ssl.o `test -f 'ssl.c' || echo './'`ssl.c
ssl.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-ssl.Tpo .deps/stunnel-ssl.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-ctx.o -MD -MP -MF .deps/stunnel-ctx.Tpo -c -o stunnel-ctx.o `test -f 'ctx.c' || echo './'`ctx.c
ctx.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-ctx.Tpo .deps/stunnel-ctx.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-verify.o -MD -MP -MF .deps/stunnel-verify.Tpo -c -o stunnel-verify.o `test -f 'verify.c' || echo './'`verify.c
verify.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-verify.Tpo .deps/stunnel-verify.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-sthreads.o -MD -MP -MF .deps/stunnel-sthreads.Tpo -c -o stunnel-sthreads.o `test -f 'sthreads.c' || echo './'`sthreads.c
sthreads.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-sthreads.Tpo .deps/stunnel-sthreads.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-fd.o -MD -MP -MF .deps/stunnel-fd.Tpo -c -o stunnel-fd.o `test -f 'fd.c' || echo './'`fd.c
fd.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-fd.Tpo .deps/stunnel-fd.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-dhparam.o -MD -MP -MF .deps/stunnel-dhparam.Tpo -c -o stunnel-dhparam.o `test -f 'dhparam.c' || echo './'`dhparam.c
dhparam.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 #include "common.h"
 ^
mv -f .deps/stunnel-dhparam.Tpo .deps/stunnel-dhparam.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-cron.o -MD -MP -MF .deps/stunnel-cron.Tpo -c -o stunnel-cron.o `test -f 'cron.c' || echo './'`cron.c
cron.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-cron.Tpo .deps/stunnel-cron.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-stunnel.o -MD -MP -MF .deps/stunnel-stunnel.Tpo -c -o stunnel-stunnel.o `test -f 'stunnel.c' || echo './'`stunnel.c
stunnel.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-stunnel.Tpo .deps/stunnel-stunnel.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-pty.o -MD -MP -MF .deps/stunnel-pty.Tpo -c -o stunnel-pty.o `test -f 'pty.c' || echo './'`pty.c
pty.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-pty.Tpo .deps/stunnel-pty.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-libwrap.o -MD -MP -MF .deps/stunnel-libwrap.Tpo -c -o stunnel-libwrap.o `test -f 'libwrap.c' || echo './'`libwrap.c
libwrap.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-libwrap.Tpo .deps/stunnel-libwrap.Po
gcc -DHAVE_CONFIG_H -I.  -I/usr/kerberos/include -I/usr/include -DLIBDIR='"/usr/local/lib/stunnel"' -DCONFDIR='"/usr/local/etc/stunnel"'   -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT stunnel-ui_unix.o -MD -MP -MF .deps/stunnel-ui_unix.Tpo -c -o stunnel-ui_unix.o `test -f 'ui_unix.c' || echo './'`ui_unix.c
ui_unix.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /*
 ^
mv -f .deps/stunnel-ui_unix.Tpo .deps/stunnel-ui_unix.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -g -O2  -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -L/usr/lib64 -L/usr/lib -lssl -lcrypto -fPIE -pie -o stunnel.exe  stunnel-tls.o stunnel-str.o stunnel-file.o stunnel-client.o stunnel-log.o stunnel-options.o stunnel-protocol.o stunnel-network.o stunnel-resolver.o stunnel-ssl.o stunnel-ctx.o stunnel-verify.o stunnel-sthreads.o stunnel-fd.o stunnel-dhparam.o stunnel-cron.o stunnel-stunnel.o stunnel-pty.o stunnel-libwrap.o stunnel-ui_unix.o  -lz
libtool: link: gcc -g -O2 -Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long -Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -fPIE -pie -o .libs/stunnel.exe stunnel-tls.o stunnel-str.o stunnel-file.o stunnel-client.o stunnel-log.o stunnel-options.o stunnel-protocol.o stunnel-network.o stunnel-resolver.o stunnel-ssl.o stunnel-ctx.o stunnel-verify.o stunnel-sthreads.o stunnel-fd.o stunnel-dhparam.o stunnel-cron.o stunnel-stunnel.o stunnel-pty.o stunnel-libwrap.o stunnel-ui_unix.o  -L/usr/lib64 -L/usr/lib -lssl -lcrypto -lz
./.libs/lt-stunnel.c:1:0: warning: -fPIC ignored for target (all code is position independent)

 ^
./.libs/lt-stunnel.c: In function 'main':
./.libs/lt-stunnel.c:127:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
 #define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
                                                          ^
./.libs/lt-stunnel.c:186:13: note: in expansion of macro 'XMALLOC'
   newargz = XMALLOC (char *, argc + 1);
             ^
./.libs/lt-stunnel.c:303:3: warning: conversion to 'int' from 'intptr_t' may alter its value [-Wconversion]
   return rval; /* =127, but avoids unused variable warning */
   ^
./.libs/lt-stunnel.c: In function 'find_executable':
./.libs/lt-stunnel.c:438:16: warning: conversion to 'size_t' from 'long int' may change the sign of the result [-Wsign-conversion]
        p_len = q - p;
                ^
./.libs/lt-stunnel.c:446:15: warning: conversion to 'int' from 'size_t' may alter its value [-Wconversion]
     tmp_len = strlen (tmp);
               ^
./.libs/lt-stunnel.c:448:34: warning: conversion to 'size_t' from 'int' may change the sign of the result [-Wsign-conversion]
       XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
                                  ^
./.libs/lt-stunnel.c:127:53: note: in definition of macro 'XMALLOC'
 #define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
                                                     ^
./.libs/lt-stunnel.c:449:31: warning: conversion to 'size_t' from 'int' may change the sign of the result [-Wsign-conversion]
     memcpy (concat_name, tmp, tmp_len);
                               ^
./.libs/lt-stunnel.c:472:13: warning: conversion to 'int' from 'size_t' may alter its value [-Wconversion]
   tmp_len = strlen (tmp);
             ^
./.libs/lt-stunnel.c:473:44: warning: conversion to 'size_t' from 'int' may change the sign of the result [-Wsign-conversion]
   concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
                                            ^
./.libs/lt-stunnel.c:127:53: note: in definition of macro 'XMALLOC'
 #define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
                                                     ^
./.libs/lt-stunnel.c:474:29: warning: conversion to 'size_t' from 'int' may change the sign of the result [-Wsign-conversion]
   memcpy (concat_name, tmp, tmp_len);
                             ^
./.libs/lt-stunnel.c: In function 'lt_extend_str':
./.libs/lt-stunnel.c:639:28: warning: conversion to 'int' from 'size_t' may alter its value [-Wconversion]
       int orig_value_len = strlen (orig_value);
                            ^
./.libs/lt-stunnel.c:640:21: warning: conversion to 'int' from 'size_t' may alter its value [-Wconversion]
       int add_len = strlen (add);
                     ^
./.libs/lt-stunnel.c:127:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
 #define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
                                                          ^
./.libs/lt-stunnel.c:641:19: note: in expansion of macro 'XMALLOC'
       new_value = XMALLOC (char, add_len + orig_value_len + 1);
                   ^
./.libs/lt-stunnel.c: In function 'lt_update_exe_path':
./.libs/lt-stunnel.c:671:17: warning: conversion to 'int' from 'size_t' may alter its value [-Wconversion]
       int len = strlen (new_value);
                 ^
./.libs/lt-stunnel.c:672:22: warning: conversion to 'int' from 'size_t' may alter its value [-Wconversion]
       while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
                      ^
sed -e 's|@bindir[@]|/usr/local/bin|g' './stunnel3.in' >stunnel3
make[2]: Leaving directory '/cygdrive/z/devel/cygwin/stunnel-5.25/src'
make[1]: Leaving directory '/cygdrive/z/devel/cygwin/stunnel-5.25/src'
Making all in doc
make[1]: Entering directory '/cygdrive/z/devel/cygwin/stunnel-5.25/doc'
sed -e 's|@bindir[@]|/usr/local/bin|g' -e 's|@sysconfdir[@]|/usr/local/etc|g' './stunnel.8.in' >stunnel.8
sed -e 's|@bindir[@]|/usr/local/bin|g' -e 's|@sysconfdir[@]|/usr/local/etc|g' './stunnel.pl.8.in' >stunnel.pl.8
sed -e 's|@bindir[@]|/usr/local/bin|g' -e 's|@sysconfdir[@]|/usr/local/etc|g' './stunnel.html.in' >stunnel.html
sed -e 's|@bindir[@]|/usr/local/bin|g' -e 's|@sysconfdir[@]|/usr/local/etc|g' './stunnel.pl.html.in' >stunnel.pl.html
make[1]: Leaving directory '/cygdrive/z/devel/cygwin/stunnel-5.25/doc'
Making all in tools
make[1]: Entering directory '/cygdrive/z/devel/cygwin/stunnel-5.25/tools'
sed -e 's|@prefix[@]|/usr/local|g' -e 's|@bindir[@]|/usr/local/bin|g' -e 's|@localstatedir[@]|/usr/local/var|g' -e 's|@sysconfdir[@]|/usr/local/etc|g' -e 's|@DEFAULT_GROUP[@]|nobody|g' './stunnel.conf-sample.in' >stunnel.conf-sample
sed -e 's|@prefix[@]|/usr/local|g' -e 's|@bindir[@]|/usr/local/bin|g' -e 's|@localstatedir[@]|/usr/local/var|g' -e 's|@sysconfdir[@]|/usr/local/etc|g' -e 's|@DEFAULT_GROUP[@]|nobody|g' './stunnel.init.in' >stunnel.init
sed -e 's|@prefix[@]|/usr/local|g' -e 's|@bindir[@]|/usr/local/bin|g' -e 's|@localstatedir[@]|/usr/local/var|g' -e 's|@sysconfdir[@]|/usr/local/etc|g' -e 's|@DEFAULT_GROUP[@]|nobody|g' './stunnel.service.in' >stunnel.service
make[1]: Leaving directory '/cygdrive/z/devel/cygwin/stunnel-5.25/tools'
make[1]: Entering directory '/cygdrive/z/devel/cygwin/stunnel-5.25'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/cygdrive/z/devel/cygwin/stunnel-5.25'

mtrojnar at WIN-RNVS6A2J2L6 /cygdrive/z/devel/cygwin/stunnel-5.25


More information about the stunnel-users mailing list