This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compiling php 5


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]