[stunnel-users] num_clients Undeclared

Michal Trojnara Michal.Trojnara at mirt.net
Sun Oct 12 09:11:20 CEST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Abdelkader,

How do you configure stunnel?  Do you use
    --with-threads=fork
option?  Why?
Otherwise please send us your config.log.

There is indeed a regression issue with FORK threading model.
I'll fix it in the next release.

Mike

Abdelkader Chelouah wrote:
> Hello,
> 
> Build of stunnel 5.04 and 5.05 failed on RHEL 6.2 (prior to 5.04,
> the build succeded)
> 
> ... gcc -DHAVE_CONFIG_H -I. -I/usr/kerberos/include 
> -I/logiciels/postgresql/9.3/lib/openssl/include 
> -DLIBDIR='"/logiciels/postgresql/9.3/lib/stunnel/lib/stunnel"' 
> -DCONFDIR='"/logiciels/postgresql/9.3/lib/stunnel/etc/stunnel"' 
> -I/logiciels/postgresql/9.3/include 
> -I/logiciels/postgresql/9.3/lib/openssl/include 
> -I/logiciels/postgresql/9.3/lib/krb5/include 
> -I/logiciels/postgresql/9.3/lib/cyrus-sasl/include -pthread 
> -fstack-protector -fPIE -O3 -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -march=nocona -Wall -Wextra
> -Wno-long-long -pedantic -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: In function
> ‘main_configure’: stunnel.c:150: error: ‘num_clients’ undeclared
> (first use in this function) stunnel.c:150: error: (Each undeclared
> identifier is reported only once stunnel.c:150: error: for each
> function it appears in.) stunnel.c: At top level: stunnel.c:533:
> warning: expected [error|warning|ignored] after ‘#pragma GCC
> diagnostic’ stunnel.c:534: warning: unknown option after ‘#pragma
> GCC diagnostic’ kind stunnel.c: In function ‘signal_post’: 
> stunnel.c:538: warning: ignoring return value of ‘write’, declared
> with attribute warn_unused_result stunnel.c: At top level: 
> stunnel.c:541: warning: expected [error|warning|ignored] after
> ‘#pragma GCC diagnostic’ make[2]: *** [stunnel-stunnel.o] Error 1 
> make[2]: Leaving directory `/ESA/build/stunnel-5.05/src' make[1]:
> *** [all] Error 2 make[1]: Leaving directory
> `/ESA/build/stunnel-5.05/src' make: *** [all-recursive] Error 1
> 
> It seems that the 'num_clients' variable is undeclared in the 
> main_configure function.
> 
> Thank you
> 
> 
> _______________________________________________ stunnel-users
> mailing list stunnel-users at stunnel.org 
> https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlQ6KZgACgkQ/NU+nXTHMtF5AwCgx7yZtI8mSRVnD7pKTGbUT0dG
xUQAn370d5djRK70HiHce5cJQ8MdF4B8
=13jt
-----END PGP SIGNATURE-----



More information about the stunnel-users mailing list