* MySQL and Apache 2.x compile: SIG_DFL' undeclared
@ 2001-12-01 7:12 Jari Aalto
2001-12-01 8:13 ` Stipe Tolj
2001-12-01 12:24 ` Gerrit P. Haase
0 siblings, 2 replies; 3+ messages in thread
From: Jari Aalto @ 2001-12-01 7:12 UTC (permalink / raw)
To: cygwin
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: MySQL and Apache 2.x compile: SIG_DFL' undeclared
2001-12-01 7:12 MySQL and Apache 2.x compile: SIG_DFL' undeclared Jari Aalto
@ 2001-12-01 8:13 ` Stipe Tolj
2001-12-01 12:24 ` Gerrit P. Haase
1 sibling, 0 replies; 3+ messages in thread
From: Stipe Tolj @ 2001-12-01 8:13 UTC (permalink / raw)
To: Jari Aalto; +Cc: cygwin
> -- 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'
apache 2.0.x (beta) has a pre-defined setting to be compiled in
prefork mode for the worker.
I'll check current CVS tree if it compiles for me.
Stipe
tolj@wapme-systems.de
-------------------------------------------------------------------
Wapme Systems AG
Münsterstr. 248
40470 Düsseldorf
Tel: +49-211-74845-0
Fax: +49-211-74845-299
E-Mail: info@wapme-systems.de
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are
--
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: MySQL and Apache 2.x compile: SIG_DFL' undeclared
2001-12-01 7:12 MySQL and Apache 2.x compile: SIG_DFL' undeclared Jari Aalto
2001-12-01 8:13 ` Stipe Tolj
@ 2001-12-01 12:24 ` Gerrit P. Haase
1 sibling, 0 replies; 3+ messages in thread
From: Gerrit P. Haase @ 2001-12-01 12:24 UTC (permalink / raw)
To: (Jari Aalto); +Cc: cygwin
Hallo Jari,
Am 2001-12-01 um 16:20 schriebst du:
> 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 */
It looks like this for me:
#if defined(__STDC__) || defined(__cplusplus)
#define SIG_DFL ((void (*)(int))0) /* Default action */
#define SIG_IGN ((void (*)(int))1) /* Ignore action */
#define SIG_ERR ((void (*)(int))-1) /* Error return */
#else
#define SIG_DFL ((void (*)())0) /* Default action */
#define SIG_IGN ((void (*)())1) /* Ignore action */
#define SIG_ERR ((void (*)())-1) /* Error return */
#endif
Have you tried to define __STDC__ to see if it makes a difference,
though I built mysql-4.0 (not from CVS) and I had no major problems
like you have.
Ciao,
Gerrit P. Haase mailto:gp@familiehaase.de
--
=^..^=
--
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-12-01 20:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-01 7:12 MySQL and Apache 2.x compile: SIG_DFL' undeclared Jari Aalto
2001-12-01 8:13 ` Stipe Tolj
2001-12-01 12:24 ` Gerrit P. Haase
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).