[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
followup to guile 1.8.5 solaris 10 sparc with gcc readdir_r problem ...
From: |
Robert A. Schmied |
Subject: |
followup to guile 1.8.5 solaris 10 sparc with gcc readdir_r problem ... |
Date: |
Mon, 18 Aug 2008 20:18:46 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7) Gecko/20060629 |
solaris 10 sparc gcc ...
grrrrrr
1) setting _POSIX_C_SOURCE >= 199506L isn't the way to go on solaris
there's a note to that effect in the libguile changes file
but i'm unable to see a simple way to coerce the build system (post configure)
to add the -D_POSIX_PTHREAD_SEMANTICS define to the compile directives:
-D_POSIX_PTHREAD_SEMANTICS
because -D_REENTRANT is already set via configure -- i just went in and
did an
ed -s Makefile <<eof
1,\$gs/D_REENTRANT/s/D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT/
w
q
eof
for all makefiles to effect the change.
.c.x:
./guile-snarf -o $@ $< $(snarfcppopts)
problem might stem from the guile_snarf directives not using either of the
cflag vars that have _REENTRANT defined. these vars are $(PTHREAD_CFLAGS)
and $(GUILE_CFLAGS). but there seems to be something else going on that i'm
missing because while none of the *.x files have these defines, all compilations
up to dynl.c do use the appropriate cflag var.
dynl.c compiles without error without the defines but the next one is filesys.c
and without them it fails.
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I..
-I.. -I/usr/local/include -I/usr/local/include -D_POSIX_PTHREAD_SEMANTICS
-D_REENTRANT -pthreads -O -mcpu=v9 -mfpu -Wall -Wmissing-prototypes -MT
libguile_la-unif.lo -MD -MP -MF .deps/libguile_la-unif.Tpo -c -o
libguile_la-unif.lo `test -f 'unif.c' || echo './'`unif.c
gcc -DHAVE_CONFIG_H -I.. -I.. -I.. -I/usr/local/include -I/usr/local/include
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -pthreads -O -mcpu=v9 -mfpu -Wall
-Wmissing-prototypes -MT libguile_la-unif.lo -MD -MP -MF
.deps/libguile_la-unif.Tpo -c unif.c -fPIC -DPIC -o .libs/libguile_la-unif.o
gcc -DHAVE_CONFIG_H -I.. -I.. -I.. -I/usr/local/include -I/usr/local/include
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -pthreads -O -mcpu=v9 -mfpu -Wall
-Wmissing-prototypes -MT libguile_la-unif.lo -MD -MP -MF .deps/libguile_la-unif.Tpo -c
unif.c -fPIC -DPIC -o libguile_la-unif.o >/dev/null 2>&1
mv -f .deps/libguile_la-unif.Tpo .deps/libguile_la-unif.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I..
-I.. -I/usr/local/include -O -mcpu=v9 -mfpu -Wall -Wmissing-prototypes
-MT dynl.lo -MD -MP -MF .deps/dynl.Tpo -c -o dynl.lo dynl.c
gcc -DHAVE_CONFIG_H -I.. -I.. -I.. -I/usr/local/include -O -mcpu=v9 -mfpu -Wall
-Wmissing-prototypes -MT dynl.lo -MD -MP -MF .deps/dynl.Tpo -c dynl.c -fPIC
-DPIC -o .libs/dynl.o
gcc -DHAVE_CONFIG_H -I.. -I.. -I.. -I/usr/local/include -O -mcpu=v9 -mfpu -Wall
-Wmissing-prototypes -MT dynl.lo -MD -MP -MF .deps/dynl.Tpo -c dynl.c -fPIC -DPIC -o
dynl.o >/dev/null 2>&1
mv -f .deps/dynl.Tpo .deps/dynl.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I..
-I.. -I/usr/local/include -O -mcpu=v9 -mfpu -Wall -Wmissing-prototypes
-MT filesys.lo -MD -MP -MF .deps/filesys.Tpo -c -o filesys.lo filesys.c
gcc -DHAVE_CONFIG_H -I.. -I.. -I.. -I/usr/local/include -O -mcpu=v9 -mfpu -Wall
-Wmissing-prototypes -MT filesys.lo -MD -MP -MF .deps/filesys.Tpo -c filesys.c
-fPIC -DPIC -o .libs/filesys.o
filesys.c: In function `scm_readdir':
filesys.c:919: error: too many arguments to function `readdir_r'
gmake[3]: *** [filesys.lo] Error 1
gmake[3]: Leaving directory `/usr/local/src/guile-1.8.5/libguile'
aloha
ras
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- followup to guile 1.8.5 solaris 10 sparc with gcc readdir_r problem ...,
Robert A. Schmied <=