# building PHP DSO under Cygwin with gcc

- Thread: https://externals.io/message/9546
- Original archive: https://news-web.php.net/php.internals/9546
- Started by Sven Niemetz on 2004-04-24T16:01:07+00:00
- Messages: 1
- 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

---

## #9546 — Sven Niemetz — 2004-04-24T16:01:07+00:00

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

Hello all,
 
I need your help -- for weeks I have been banging my head agaist this wall:
 
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?

sven
