[csw-maintainers] Pinentry compilation problem
Maciej (Matchek) Blizinski
maciej at opencsw.org
Fri Sep 11 00:13:57 CEST 2009
I'm trying to compile pinentry with SOS11 on Solaris 8. I'm getting
the following error:
gmake[4]: Entering directory
`/home/maciej/src/opencsw/pkg/pinentry/trunk/work/build-isa-sparcv8/pinentry-0.7.6/secmem'
source='secmem.c' object='secmem.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/opt/studio/SOS11/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I..
-I/opt/csw/X11/include -I/opt/csw/include -xO3 -xarch=v8
-I/opt/csw/X11/include -I/opt/csw/include -c secmem.c
source='util.c' object='util.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/opt/studio/SOS11/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I..
-I/opt/csw/X11/include -I/opt/csw/include -xO3 -xarch=v8
-I/opt/csw/X11/include -I/opt/csw/include -c util.c
"util.c", line 57: syntax error before or at: {
"util.c", line 57: undefined symbol: __result
"util.c", line 57: undefined symbol: __result
"util.c", line 57: undefined symbol: __result
"util.c", line 57: syntax error before or at: )
"util.c", line 58: warning: syntax error: empty declaration
"util.c", line 59: cannot recover from previous errors
cc: acomp failed for util.c
gmake[4]: *** [util.o] Error 2
The place in the code that causes the problem is:
#ifndef TEMP_FAILURE_RETRY
#define TEMP_FAILURE_RETRY(expression) \
( \
({ long int __result; \
do __result = (long int) (expression); \
while (__result == -1L && errno == EINTR); \
__result; }))
#endif
With SOS12, this code compiles just fine.
Any ideas?
Maciej
More information about the maintainers
mailing list