octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: complie error of cquit.c (libcruft) (MinGW build for 3.5.50+)


From: Tatsuro MATSUOKA
Subject: Re: complie error of cquit.c (libcruft) (MinGW build for 3.5.50+)
Date: Tue, 9 Mar 2010 19:39:37 +0900 (JST)

Hello

Sorry I have found in signal.h
line 355-361
# if !0
#  define SIG_BLOCK   0  /* blocked_set = blocked_set | *set; */
#  define SIG_SETMASK 1  /* blocked_set = *set; */
#  define SIG_UNBLOCK 2  /* blocked_set = blocked_set & ~*set; */
_GL_FUNCDECL_SYS (sigprocmask, int,
                  (int operation, const sigset_t *set, sigset_t *old_set));
# endif

gcc -shared-libgcc -DHAVE_CONFIG_H -I. -I../../../hg/octave-work/libcruft
 -I..
 -I/WinDevTools/include -I/GnuWin32/include -O3 -fomit-frame-pointer 
-DHAVE_CONFIG_H -mieee-fp
 -Wall -W
 -Wshadow -Wformat -O3 -fomit-frame-pointer -O3 -fomit-frame-pointer -MT
 misc/libcruft_la-cquit.lo -MD
 -MP -MF misc/.deps/libcruft_la-cquit.Tpo -c 
../../../hg/octave-work/libcruft/misc/cquit.c  

Hmmmm, it seems that -I../libgnu missing in the complier flag.

Regards

Tatsuro
--- Tatsuro MATSUOKA wrote:

> Hello 
> 
> Perhaps the error comes from the gnulib renewal.
> 
> 2010-03-01  John W. Eaton  <address@hidden>
> 
>       * acinclude.m4 (OCTAVE_CXX_COMPLEX_REFERENCE_ACCESSORS,
>       OCTAVE_CXX_COMPLEX_SETTERS): New macros.
>       * configure.ac: Use them.
> 
> libtool: compile:  gfortran -shared-libgcc -O3 -fomit-frame-pointer -mieee-fp 
> -c
> ../../../hg/octave-work/libcruft/lapack-xtra/xzlange.f  -DDLL_EXPORT -o
> lapack-xtra/.libs/libcruft_la-xzlange.o
> /bin/sh ../libtool  --tag=CC   --mode=compile gcc -shared-libgcc 
> -DHAVE_CONFIG_H -I.
> -I../../../hg/octave-work/libcruft-I..   -I/WinDevTools/include 
> -I/GnuWin32/include -O3
> -fomit-frame-pointer   -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wformat 
> -O3
> -fomit-frame-pointer  
> -O3 -fomit-frame-pointer  -MT misc/libcruft_la-cquit.lo -MD -MP -MF
> misc/.deps/libcruft_la-cquit.Tpo
> -c -o misc/libcruft_la-cquit.lo `test -f 'misc/cquit.c' || echo
> '../../../hg/octave-work/libcruft/'`misc/cquit.c
> libtool: compile:  gcc -shared-libgcc -DHAVE_CONFIG_H -I. 
> -I../../../hg/octave-work/libcruft
> -I..
> -I/WinDevTools/include -I/GnuWin32/include -O3 -fomit-frame-pointer 
> -DHAVE_CONFIG_H -mieee-fp
> -Wall -W
> -Wshadow -Wformat -O3 -fomit-frame-pointer -O3 -fomit-frame-pointer -MT
> misc/libcruft_la-cquit.lo -MD
> -MP -MF misc/.deps/libcruft_la-cquit.Tpo -c 
> ../../../hg/octave-work/libcruft/misc/cquit.c 
> -DDLL_EXPORT -DPIC -o misc/.libs/libcruft_la-cquit.o
> ../../../hg/octave-work/libcruft/misc/cquit.c: In function 
> 'octave_save_signal_mask':
> ../../../hg/octave-work/libcruft/misc/cquit.c:239: warning: implicit 
> declaration of function
> 'sigprocmask'
> ../../../hg/octave-work/libcruft/misc/cquit.c: In function 
> 'octave_restore_signal_mask':
> ../../../hg/octave-work/libcruft/misc/cquit.c:245: error: 'SIG_SETMASK' 
> undeclared (first use in
> this
> function)
> ../../../hg/octave-work/libcruft/misc/cquit.c:245: error: (Each undeclared 
> identifier is
> reported only
> once
> ../../../hg/octave-work/libcruft/misc/cquit.c:245: error: for each function 
> it appears in.)
> make[2]: *** [misc/libcruft_la-cquit.lo] Error 1
> make[2]: Leaving directory `/home/octaves/OctBuild/hg-devel/libcruft'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/octaves/OctBuild/hg-devel'
> make: *** [all] Error 2
> 
> ***********************
> 
> signal.h of mingw lacks SIG_SETMASK 
> 
> #define       SIGINT          2       /* Interactive attention */
> #define       SIGILL          4       /* Illegal instruction */
> #define       SIGFPE          8       /* Floating point error */
> #define       SIGSEGV         11      /* Segmentation violation */
> #define       SIGTERM         15      /* Termination request */
> #define SIGBREAK      21      /* Control-break */
> #define       SIGABRT         22      /* Abnormal termination (abort) */
> 
> However importing gnulib signal.h does not recover the portability for 
> SIG_SETMASK.
> The signal.h produced by gnulib for my system is attached.
> 
> 
> In the manual of gnulib
> http://www.gnu.org/software/gnulib/manual/gnulib.html#signal_002eh
> 
> 5.42 signal.h
> 
> Portability problems not fixed by Gnulib: 
> Many signals are not defined on some platforms: mingw.
> #####################
> 
> Unfortunately the lack of SIG_SETMASK may not be resolved by importing gnulib 
> on mingw.
> 
> Regards
> 
> Tatsuro
> 
> --------------------------------------
> Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
> http://pr.mail.yahoo.co.jp/ie8/


--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]