unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* followup to guile 1.8.5 solaris 10 sparc with gcc readdir_r problem ...
@ 2008-08-19  3:18 Robert A. Schmied
  0 siblings, 0 replies; only message in thread
From: Robert A. Schmied @ 2008-08-19  3:18 UTC (permalink / raw)
  To: bug-guile



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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-19  3:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19  3:18 followup to guile 1.8.5 solaris 10 sparc with gcc readdir_r problem Robert A. Schmied

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).