# REPOST: building PHP DSO under Cygwin with gcc

- Thread: https://externals.io/message/9671
- Original archive: https://news-web.php.net/php.internals/9671
- Started by Sven Niemetz on 2004-05-05T16:32:06+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #9671 — Sven Niemetz — 2004-05-05T16:32:06+00:00

URL: https://externals.io/message/9671#9671

I simply want to build an PHP Apache DSO against the apache src tree. However, it seems that the PHP configure script expects the Apache Win32 binaries to link against.
 
On make, I alwasy run into this error:
 
make libs/libphp4.bundle
sapi/apache/mod_php4.o(.text+0x6f): In function
`sapi_apache_ub_write':
/home/svenn/downloads/php-4.3.4/sapi/apache/mod_php4.c:102:
undefined reference
to `_ap_rwrite' ...... <snip>
 
Theese functions DO exist in the Apache source directories -- so, what do I need to change to build my own PHP DSO?

---

## #9672 — Wez Furlong — 2004-05-05T16:56:06+00:00

URL: https://externals.io/message/9671#9672 · In reply to: #9671

I imagine that you need to also build your own apache under cygwin too;
beyond that, we can't help you, since we don't support building with cygwin.

--Wez.

----- Original Message ----- 
From: "Sven Niemetz" <svenn@babycenter.com>
To: <internals@lists.php.net>
Sent: Wednesday, May 05, 2004 5:32 PM
Subject: [PHP-DEV] REPOST: building PHP DSO under Cygwin with gcc


I simply want to build an PHP Apache DSO against the apache src tree.
However, it seems that the PHP configure script expects the Apache Win32
binaries to link against.

On make, I alwasy run into this error:

make libs/libphp4.bundle
sapi/apache/mod_php4.o(.text+0x6f): In function
`sapi_apache_ub_write':
/home/svenn/downloads/php-4.3.4/sapi/apache/mod_php4.c:102:
undefined reference
to `_ap_rwrite' ...... <snip>

Theese functions DO exist in the Apache source directories -- so, what do I
need to change to build my own PHP DSO?
