[stunnel-users] num_clients Undeclared
Abdelkader Chelouah
a.chelouah at gmail.com
Sun Oct 12 15:38:04 CEST 2014
On 12/10/2014 09:11, Michal Trojnara wrote:
> -----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-----
> _______________________________________________
> stunnel-users mailing list
> stunnel-users at stunnel.org
> https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
Hello Michal,
Indeed, I'm using
/configure --build="x86_64-unknown-linux-gnu" \
--prefix=${STUNNEL_DIR} \
--mandir="${STUNNEL_DIR}/man" \
--docdir="${STUNNEL_DIR}/doc" \
--enable-ipv6 \
--disable-libwrap \
--disable-fips \
--with-threads=fork \
--with-ssl=${OPENSSL_DIR} \
--enable-shared \
--disable-static
As far as concerns the threading model, several linux distributions use
the fork model. Also
http://devblog.bu.mp/post/40786230183/introducing-stud
seems to conclude the same way. Actually, I'am not really sure about the
best threading model under RH Linux. Maybe, can you give some advices.
More information about the stunnel-users
mailing list