public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Compiling php 5
@ 2006-06-02 12:47 Roland Swingler
  2006-06-02 19:18 ` René Berber
  2006-06-04 11:37 ` Max Bowsher
  0 siblings, 2 replies; 4+ messages in thread
From: Roland Swingler @ 2006-06-02 12:47 UTC (permalink / raw)
  To: cygwin

Hi all,

I was wondering if anyone has managed to get php 5 compiled under
Cygwin? I am currently trying with 5.1.4. Trying to compile it as an
apache2 module (with no other configure flags), both configure and
make go fine, but when I do make install it complains about not
finding libphp5.so.

So after googling for a bit I find these instructions -
http://www.cygwin.com/ml/cygwin/2005-12/msg00093.html and try
following them, but make now chokes when compiling ext/standard/dns.c

I decide give up on the module and try making the cgi version,
disabling all extensions. Doing make test, it still chokes on the dns
bit.

Errors below...

/usr/local/src/php-5.1.4/ext/standard/dns.c: In function `zif_dns_check_record':
/usr/local/src/php-5.1.4/ext/standard/dns.c:265: error: `T_MX'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:265: error: (Each
undeclared identifier is reported only once
/usr/local/src/php-5.1.4/ext/standard/dns.c:265: error: for each
function it appears in.)
/usr/local/src/php-5.1.4/ext/standard/dns.c:276: error: `T_A'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:297: error: `C_IN'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c: At top level:
/usr/local/src/php-5.1.4/ext/standard/dns.c:360: error: parse error
before "HEADER"
/usr/local/src/php-5.1.4/ext/standard/dns.c:360: warning: no semicolon
at end of struct or union
/usr/local/src/php-5.1.4/ext/standard/dns.c:362: error: parse error
before '}' token
/usr/local/src/php-5.1.4/ext/standard/dns.c:362: warning: data
definition has no type or storage class
/usr/local/src/php-5.1.4/ext/standard/dns.c:386: error: parse error
before "querybuf"
/usr/local/src/php-5.1.4/ext/standard/dns.c: In function `php_parserr':
/usr/local/src/php-5.1.4/ext/standard/dns.c:396: error: `subarray'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:398: error: `answer'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:398: error: `cp'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:408: error:
`type_to_fetch' undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:408: error: `T_ANY'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:413: error: `store'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c: In function `zif_dns_get_record':
/usr/local/src/php-5.1.4/ext/standard/dns.c:661: error: storage size
of 'res' isn't known
/usr/local/src/php-5.1.4/ext/standard/dns.c:662: error: `HEADER'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:662: error: `hp'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:663: error: parse error before "buf"
/usr/local/src/php-5.1.4/ext/standard/dns.c:765: error: `RES_DEFNAMES'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:767: error: `QUERY'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:767: error: `C_IN'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:767: error: `buf'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:775: error: `answer'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:786: error: parse error
before ')' token
/usr/local/src/php-5.1.4/ext/standard/dns.c: In function `zif_dns_get_mx':
/usr/local/src/php-5.1.4/ext/standard/dns.c:854: error: `HEADER'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:854: error: `hp'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:883: error: `C_IN'
undeclared (first use in this function)
/usr/local/src/php-5.1.4/ext/standard/dns.c:890: error: parse error
before ')' token
make: *** [ext/standard/dns.lo] Error 1

Does anyone have any suggestions about what to do about this? I'd also
be interested in workarounds/hacks that any C programmers could
suggest to me - (i.e. what I could do to disable the dns functions).

I've also found elsewhere that dns is one of the "hotspots" in
compiling things for cygwin, but I haven't found any resources
detailing how to solve any of the problems, so if anyone knows where I
could find out about that, it would be appreciated.

Thanks in advance,
Roland

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compiling php 5
  2006-06-02 12:47 Compiling php 5 Roland Swingler
@ 2006-06-02 19:18 ` René Berber
  2006-06-02 23:01   ` Max Bowsher
  2006-06-04 11:37 ` Max Bowsher
  1 sibling, 1 reply; 4+ messages in thread
From: René Berber @ 2006-06-02 19:18 UTC (permalink / raw)
  To: cygwin

Roland Swingler wrote:

> I was wondering if anyone has managed to get php 5 compiled under
> Cygwin? I am currently trying with 5.1.4. Trying to compile it as an
> apache2 module (with no other configure flags), both configure and
> make go fine, but when I do make install it complains about not
> finding libphp5.so.

I have never tried building php, but ...

> So after googling for a bit I find these instructions -
> http://www.cygwin.com/ml/cygwin/2005-12/msg00093.html and try
> following them, but make now chokes when compiling ext/standard/dns.c
> 
> I decide give up on the module and try making the cgi version,
> disabling all extensions. Doing make test, it still chokes on the dns
> bit.
[snip]
> Does anyone have any suggestions about what to do about this? I'd also
> be interested in workarounds/hacks that any C programmers could
> suggest to me - (i.e. what I could do to disable the dns functions).
> 
> I've also found elsewhere that dns is one of the "hotspots" in
> compiling things for cygwin, but I haven't found any resources
> detailing how to solve any of the problems, so if anyone knows where I
> could find out about that, it would be appreciated.

The DNS problem can be solved by building ISC's bind (just disable IPv6, it
compiles fine with it but Cygwin doesn't have support for that), then just point
your php build to those libraries (and headers)... they are static libraries so
there should be no problem.
-- 
René Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compiling php 5
  2006-06-02 19:18 ` René Berber
@ 2006-06-02 23:01   ` Max Bowsher
  0 siblings, 0 replies; 4+ messages in thread
From: Max Bowsher @ 2006-06-02 23:01 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

René Berber wrote:
> The DNS problem can be solved by building ISC's bind 

Or, just installing Cygwin's minires-devel package.

Max.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compiling php 5
  2006-06-02 12:47 Compiling php 5 Roland Swingler
  2006-06-02 19:18 ` René Berber
@ 2006-06-04 11:37 ` Max Bowsher
  1 sibling, 0 replies; 4+ messages in thread
From: Max Bowsher @ 2006-06-04 11:37 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 286 bytes --]

Roland Swingler wrote:
> Hi all,
> 
> I was wondering if anyone has managed to get php 5 compiled under
> Cygwin? I am currently trying with 5.1.4. Trying to compile it as an
> apache2 module


I'm actually working on trying to package this, with reasonable success.

Max.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-06-04 10:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-02 12:47 Compiling php 5 Roland Swingler
2006-06-02 19:18 ` René Berber
2006-06-02 23:01   ` Max Bowsher
2006-06-04 11:37 ` Max Bowsher

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).