[stunnel-users] Compilation problem

fredzy padzy fredzyy at gmail.com
Wed Jan 21 15:12:13 CET 2009


Hi everyone

I try to compile stunnel, but it fails.

Actually, it tells me about a parse error inside signal.h, and i think it's
a falsePositive.

The configure works great and nothing look strange inside the configure.log.

I also tried to googled those errors, but didn't find any clues.

My server is a sunOS 10 and the src were taken from
http://www.stunnel.org/download/stunnel/src/stunnel-4.26.tar.gz

My version of openssl :
OpenSSL 0.9.7.d

Here are the errors, after the make command :

/stunnel-4.26 root# make
Making all in src
make[1]: Entering directory `/root/syslogNG/stunnel-4.26/src'
if gcc -DPACKAGE_NAME=\"stunnel\" -DPACKAGE_TARNAME=\"stunnel\"
-DPACKAGE_VERSION=\"4.26\" -DPACKAGE_STRING=\"stunnel\ 4.26\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"stunnel\" -DVERSION=\"4.26\"
-DHOST=\"i386-pc-solaris2.10\" -DCPU_I386=1 -DVENDOR_PC=1 -DOS_SOLARIS2_10=1
-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
-DSIZEOF_UNSIGNED_CHAR=1 -DSIZEOF_UNSIGNED_SHORT=2 -DSIZEOF_UNSIGNED_INT=4
-DSIZEOF_UNSIGNED_LONG=4 -DHAVE_DEV_PTMX=1 -DRANDOM_FILE=\"/dev/urandom\"
-DHAVE_UCONTEXT_H=1 -DHAVE_PTHREAD_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_POLL_H=1
-DHAVE_SYS_POLL_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1
-DHAVE_STROPTS_H=1 -DHAVE_GRP_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_RESOURCE_H=1
-DHAVE_SYS_SOCKET_H=1 -DHAVE_LIBSOCKET=1 -DHAVE_LIBDL=1 -DHAVE_LIBZ=1
-DHAVE_LIBPTHREAD=1 -DUSE_PTHREAD=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1
-DHAVE_WAITPID=1 -DHAVE_WAIT4=1 -DHAVE_SETSID=1 -DHAVE_SETGROUPS=1
-DHAVE_CHROOT=1 -DHAVE_SYSCONF=1 -DHAVE_GETRLIMIT=1 -DHAVE_PTHREAD_SIGMASK=1
-DHAVE_LOCALTIME_R=1 -DHAVE_GETCONTEXT=1 -DHAVE_POLL=1 -DHAVE_ENDHOSTENT=1
-DHAVE_GETNAMEINFO=1 -DHAVE_GETADDRINFO=1 -DHAVE_OPENSSL=1
-Dssldir=\"/usr/local/ssl\" -DHAVE_OSSL_ENGINE_H=1 -DUSE_IPv6=1 -I. -I.
-I/usr/kerberos/include -DLIBDIR='"/usr/local/lib/stunnel"'
-DCONFDIR='"/usr/local/etc/stunnel"'
-DPIDFILE='"/var/run/stunnel/run/stunnel/stunnel.pid"'   -g -O2 -Wall
-Wshadow -Wcast-align -Wpointer-arith -I/usr/local/ssl/include -MT file.o
-MD -MP -MF ".deps/file.Tpo" -c -o file.o file.c; \
then mv -f ".deps/file.Tpo" ".deps/file.Po"; else rm -f ".deps/file.Tpo";
exit 1; fi
*In file included from /usr/include/sys/signal.h:34,*
                 from /usr/include/signal.h:26,
                 from common.h:250,
                 from file.c:38:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
                 from common.h:250,
                 from file.c:38:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from common.h:250,
                 from file.c:38:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
In file included from common.h:251,
                 from file.c:38:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
make[1]: *** [file.o] Error 1
make[1]: Leaving directory `/root/syslogNG/stunnel-4.26/src'
make: *** [all-recursive] Error 1


Is that normal that i've 2 signal.h files ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20090121/83c2bfaa/attachment.html>


More information about the stunnel-users mailing list