* Build Failure for APR library
@ 2013-09-14 15:31 wynfield
2013-09-14 21:48 ` David Rothenberger
0 siblings, 1 reply; 9+ messages in thread
From: wynfield @ 2013-09-14 15:31 UTC (permalink / raw)
To: cygwin
I read that Apache would build on Cygwin out-of-the-box, but found out that isn't the case now if it was before. Or my setup is wrong.
I wanted to build:
Apache VERS=2.4.6 which is httpd-2.4.6
This requires the two libraries apr and apr-util
After running configure with a success return code, I attempted to make apr, but it failed with the following message:
I'd reeally appreciate some advice on how to fix this.
Regards
....
from /cygdrive/c/cygwin/usr/src/apache/httpd-2.4.6/srclib/apr/include/arch/unix/apr_private.h:996,
from passwd/apr_getpass.c:22:
/usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../../include/w32api/winsock2.h:997:46: note: previous declaration of 'getservbyname' was here -----------------
---------------------------------------------
/cygdrive/c/cygwin/usr/src/apache/httpd-2.4.6/srclib/apr/build/apr_rules.mk:202: recipe for target `passwd/apr_getpass.lo' failed
make[1]: *** [passwd/apr_getpass.lo] Error 1
make[1]: Leaving directory `/cygdrive/c/cygwin/usr/src/apache/httpd-2.4.6/srclib/apr'
/cygdrive/c/cygwin/usr/src/apache/httpd-2.4.6/srclib/apr/build/apr_rules.mk:114: recipe for target `all-recursive' failed
make: *** [all-recursive] Error 1
--- end of inserted error message
- stop
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Build Failure for APR library
2013-09-14 15:31 Build Failure for APR library wynfield
@ 2013-09-14 21:48 ` David Rothenberger
2013-09-15 13:08 ` wynfield
2013-09-15 17:04 ` wynfield
0 siblings, 2 replies; 9+ messages in thread
From: David Rothenberger @ 2013-09-14 21:48 UTC (permalink / raw)
To: cygwin
On 9/14/2013 6:18 AM, wynfield@gmail.com wrote:
> I read that Apache would build on Cygwin out-of-the-box, but found out that isn't the case now if it was before. Or my setup is wrong.
>
> I wanted to build:
> Apache VERS=2.4.6 which is httpd-2.4.6
>
> This requires the two libraries apr and apr-util
apr and apr-util libraries are already packaged for Cygwin as
libapr1-devel and libaprutil1-devel respectively. If you wish to see how
they are built for Cygwin, you can download the source for the packages
and look at the cygport build script.
FYI, apache2 is also available as a pre-built package for Cygwin. You
can also download its source package to see how it is built.
--
David Rothenberger ---- daveroth@acm.org
Hale Mail Rule, The:
When you are ready to reply to a letter, you will lack at least
one of the following:
(a) A pen or pencil or typewriter.
(b) Stationery.
(c) Postage stamp.
(d) The letter you are answering.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Build Failure for APR library
2013-09-14 21:48 ` David Rothenberger
@ 2013-09-15 13:08 ` wynfield
2013-09-15 17:04 ` wynfield
1 sibling, 0 replies; 9+ messages in thread
From: wynfield @ 2013-09-15 13:08 UTC (permalink / raw)
To: cygwin
Thanks for the information. I thought cygwin's httpd version was older. I downloaded and isntalled it with setup.exe. But I couldn't get it to run successfully.
I installed it like this:
$ cygrunsrv -I httpd2 -O -p /usr/sbin/httpd2.exe -e CYGWIN="ntsec tty"
$ cygrunsrv -S httpd2
Error: The console displays:
- cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
and the eEvent Log Shows:
1st: PID 2252: `httpd2' service started.
2nd: PID 3356: service `httpd2' failed: signal 12 raised.
I gave all log files, etc rwx permissions for everthing I could think of, but it still shuts down after starting up.
Regards
---
David Rothenberger
> On 9/14/2013 6:18 AM, wynfield
> > I read that Apache would build on Cygwin out-of-the-box, but found out that isn't the case now if it was before. Or my setup is wrong.
> >
> > I wanted to build:
> > Apache VERS=2.4.6 which is httpd-2.4.6
> >
> > This requires the two libraries apr and apr-util
>
> apr and apr-util libraries are already packaged for Cygwin as
> libapr1-devel and libaprutil1-devel respectively. If you wish to see how
> they are built for Cygwin, you can download the source for the packages
> and look at the cygport build script.
>
> FYI, apache2 is also available as a pre-built package for Cygwin. You
> can also download its source package to see how it is built.
>
> --
> David Rothenberger ----
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Build Failure for APR library
2013-09-14 21:48 ` David Rothenberger
2013-09-15 13:08 ` wynfield
@ 2013-09-15 17:04 ` wynfield
2013-09-15 19:37 ` David Rothenberger
1 sibling, 1 reply; 9+ messages in thread
From: wynfield @ 2013-09-15 17:04 UTC (permalink / raw)
To: cygwin
Re: Apache httpd run failure. Also no data is being writting to log files.
So the service is started seemingly fine, then it shuts down without any error messages being written out.
Regards
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Build Failure for APR library
2013-09-15 17:04 ` wynfield
@ 2013-09-15 19:37 ` David Rothenberger
2013-09-16 9:56 ` d.henman
0 siblings, 1 reply; 9+ messages in thread
From: David Rothenberger @ 2013-09-15 19:37 UTC (permalink / raw)
To: cygwin
On 9/15/2013 6:08 AM, wynfield@gmail.com wrote:
> Re: Apache httpd run failure. Also no data is being writting to log files.
> So the service is started seemingly fine, then it shuts down without any error messages being written out.
I don't use Apache under Cygwin myself, but I suggest you get it running
first by invoking it directly from a shell, then move on to configuring
it as a service.
--
David Rothenberger ---- daveroth@acm.org
byob, v:
Believing Your Own Bull
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Build Failure for APR library
2013-09-15 19:37 ` David Rothenberger
@ 2013-09-16 9:56 ` d.henman
2013-09-16 16:52 ` Larry Hall (Cygwin)
0 siblings, 1 reply; 9+ messages in thread
From: d.henman @ 2013-09-16 9:56 UTC (permalink / raw)
To: cygwin
I tried running httpd2 by hand and it dies immediately and violently:
$ httpd2
zsh: invalid system call (core dumped) httpd2
$ cat httpd2.exe.stackdump
Stack trace:
Frame Function Args
When executed from the bash shell:
$ /usr/sbin/httpd2
Bad system call (core dumped)
xxx@binki /tmp
$ echo $?
140
A crash like this is not a gracefull exit. I wonder how one would fine find out about which system call caused the crash. The MS event look does not showi it.
Is this the same for other folks. You don't have to use it just download it and run it and report if you get a "bad system call" error message.
Regards,
David Rothenberger wrote:
> On 9/15/2013 6:08 AM, wynfield wrote:
> > Re: Apache httpd run failure. Also no data is being writting to log files.
> > So the service is started seemingly fine, then it shuts down without any error messages being written out.
>
> I don't use Apache under Cygwin myself, but I suggest you get it running
> first by invoking it directly from a shell, then move on to configuring
> it as a service.
>
> --
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-09-17 13:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-14 15:31 Build Failure for APR library wynfield
2013-09-14 21:48 ` David Rothenberger
2013-09-15 13:08 ` wynfield
2013-09-15 17:04 ` wynfield
2013-09-15 19:37 ` David Rothenberger
2013-09-16 9:56 ` d.henman
2013-09-16 16:52 ` Larry Hall (Cygwin)
2013-09-17 6:35 ` wynfield
2013-09-17 13:38 ` Larry Hall (Cygwin)
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).