This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

MySQL and Apache 2.x compile: SIG_DFL' undeclared



    Does anyone how could this error be fixed? Looking at the 
    /usr//include/signal.h look okay to me.

      13 #define SIG_DFL ((void (*)(int))0)      /* Default action */
      14 #define SIG_IGN ((void (*)(int))1)      /* Ignore action */
      15 #define SIG_ERR ((void (*)(int))-1)     /* Error return */
      16 #else
      17 #define SIG_DFL ((void (*)())0)         /* Default action */
      18 #define SIG_IGN ((void (*)())1)         /* Ignore action */
      19 #define SIG_ERR ((void (*)())-1)        /* Error return */

-- Apache (latest)

make[3]: Entering directory `/usr/src/httpd-2_0_28/srclib/apr/threadproc/unix'
make[4]: Entering directory `/usr/src/httpd-2_0_28/srclib/apr/threadproc/unix'
/bin/sh /usr/src/httpd-2_0_28/srclib/apr/libtool --silent --mode=compile gcc   -
static -Wall -Wno-format -Wstrict-prototypes -Wmissing-prototypes -mwindows -I/l
ib -DHAVE_CONFIG_H -DCYGWIN   -I../../include -I../../include/arch/unix  -c proc
.c && touch proc.lo
proc.c: In function `apr_proc_create':
proc.c:320: `SIG_DFL' undeclared (first use in this function)
proc.c:320: (Each undeclared identifier is reported only once
proc.c:320: for each function it appears in.)
make[4]: *** [proc.lo] Error 1
make[4]: Leaving directory `/usr/src/httpd-2_0_28/srclib/apr/threadproc/unix'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/httpd-2_0_28/srclib/apr/threadproc/unix'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/httpd-2_0_28/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/httpd-2_0_28/srclib'


-- MySQL (latest)

gcc -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -I./../include -I./.. -I..    -O3 -DDBUG_OFF -static -Wall -Wno-format -Wstrict-prototypes -Wmissing-prototypes -mwindows -I/lib  -c signals.c
In file included from signals.c:37:
signals.c: In function `rl_sigwinch_handler':
signals.c:206: `SIG_IGN' undeclared (first use in this function)
signals.c:206: (Each undeclared identifier is reported only once
signals.c:206: for each function it appears in.)
signals.c:206: `SIG_DFL' undeclared (first use in this function)
signals.c: At top level:
signals.c:231: warning: function declaration isn't a prototype
signals.c:251: warning: function declaration isn't a prototype
signals.c: In function `rl_maybe_set_sighandler':
signals.c:260: `SIG_IGN' undeclared (first use in this function)
signals.c: In function `rl_set_signals':
signals.c:277: `SIG_IGN' undeclared (first use in this function)
signals.c:284: `SIG_DFL' undeclared (first use in this function)
make[2]: *** [signals.o] Error 1
make[2]: Leaving directory `/usr/src/mysql-3.23.43/readline'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/mysql-3.23.43'
make: *** [all-recursive-am] Error 2


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]