[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new snapshot soon
From: |
Tatsuro MATSUOKA |
Subject: |
Re: new snapshot soon |
Date: |
Tue, 18 Sep 2007 04:50:51 +0900 (JST) |
--- "John W. Eaton" <address@hidden> wrote:
>
> If sigset_t is available on your system, why is it not found?
> Octave's configure.in file has the following line
>
> AC_CHECK_TYPES([sigset_t, sig_atomic_t], , , [#include <signal.h>])
>
> Can you please look at config.log and see why this fails? Also, where
> is sigset_t declared if including signal.h does not do it?
Thank you jwe.
According to your advice I searched config.log.
configure:17892: checking for sigset_t
configure:17931: gcc -c -O2 -I/mingw/include -I/usr/local/octave-2.9.13/include
-I/GnuWin32/include
conftest.c >&5
conftest.c:63: error: syntax error before "ac__type_new_"
conftest.c:63: warning: data definition has no type or storage class
conftest.c: In function `main':
conftest.c:75: error: syntax error before ')' token
configure:17937: $? = 1
Then I erased '//'
#if !defined(HAVE_SIGSET_T)
typedef int sigset_t;
#endif
then did 'make clean'; 'make'
***********
making i1mach.def from i1mach.f
touch stmp-pic
g77 -c -O -mieee-fp -mieee-fp -o d1mach.o d1mach.f
g77 -c -O -mieee-fp -mieee-fp -o i1mach.o i1mach.f
gcc -c -I/mingw/include -I/usr/local/octave-2.9.13/include -I/GnuWin32/include
-I. -I../..
-I../../liboctave -I../../src -I../../libcruft/misc -DHAVE_CONFIG_H -mieee-fp
-Wall -W -Wshadow -DDP
machar.c -o machar.o
In file included from c:/Programs/MinGW/include/stdio.h:406,
from quit.h:32,
from f77-fcn.h:27,
from machar.c:8:
c:/Programs/MinGW/include/sys/types.h:95: error: redefinition of typedef
'sigset_t'
../../config.h:984: error: previous declaration of 'sigset_t' was here
make[3]: *** [machar.o] Error 1
make[3]: Leaving directory `/home/octaves/octave-2.9.13/libcruft/misc'
make[2]: *** [misc] Error 2
make[2]: Leaving directory `/home/octaves/octave-2.9.13/libcruft'
make[1]: *** [libcruft] Error 2
make[1]: Leaving directory `/home/octaves/octave-2.9.13'
make: *** [all] Error 2
**************
Then again '//' was added
#if !defined(HAVE_SIGSET_T)
//typedef int sigset_t;
#endif
'make' was secceded to compile machar.c.
Summary
1. The 'typedef sigset_t' exists in tbe ...include/sys/types.h
2. In .confubure, it failed
The conftest.c test failed in ./configure process,
conftest.c:63: error: syntax error before "ac__type_new_"
3.However, 'typedef sigset_t' in ...include/sys/types.h
4.In confifure.in
AC_CHECK_TYPES([sigset_t, sig_atomic_t], , , [#include <signal.h>])
5. In ...include/sys of mingw gcc, there is no 'sigset_t' in
...include/signal.h but in
...include/sys/types.h
That was reason that 'typedef int sigset_t' was set config.h for mingw.
I cannot remember Benjamin used glibc instead of the default includes.
(I re-searced ML, I cannot found the glibc description.)
However he did not mentioned this, it is possible for him to use glibc.
Tatsuro
--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/
types.h
Description: 2301084439-types.h
Re: new snapshot soon, kahacjde, 2007/09/13
Re: new snapshot soon, David Bateman, 2007/09/14
Re: new snapshot soon, Jean-Francois Cardoso, 2007/09/14
Re: new snapshot soon, Tatsuro MATSUOKA, 2007/09/14