Hello,
Compiling the Litespeed API (PHP 5.1.0RC1) on Solaris Express: Community Release b23 using the Sun Studio 10 compilers, it complains very loudly about functions not declared as static using variables that are declared as static:
"/home/jailbird/php-5.1.0RC1/sapi/litespeed/lsapilib.c", line 128: reference to static identifier "g_running" in extern inline
function
"/home/jailbird/php-5.1.0RC1/sapi/litespeed/lsapilib.c", line 432: reference to static identifier "ack" in extern inline function
cc: acomp failed for /home/jailbird/php-5.1.0RC1/sapi/litespeed/lsapilib.c
Here is a quick patch to fix it:
--- litespeed/lsapilib.c 2005-09-25 10:51:32.000000000 -0500
+++ litespeed.new/lsapilib.c 2005-10-03 16:07:55.260000000 -0500
@@ -119,7 +119,7 @@
}
}
-inline int lsapi_read( int fd, void * pBuf, int len )
+static inline int lsapi_read( int fd, void * pBuf, int len )
{
int ret;
while( 1 )
@@ -427,7 +427,7 @@
static struct lsapi_packet_header ack = {'L', 'S',
LSAPI_REQ_RECEIVED, LSAPI_ENDIAN, {LSAPI_PACKET_HEADER_LEN} };
-inline int notify_req_received( LSAPI_Request * pReq )
+static inline int notify_req_received( LSAPI_Request * pReq )
{
if ( write( pReq->m_fd, &ack, LSAPI_PACKET_HEADER_LEN )
< LSAPI_PACKET_HEADER_LEN )
Compiling the Litespeed API (PHP 5.1.0RC1) on Solaris Express: Community Release b23 using the Sun Studio 10 compilers, it complains very loudly about functions not declared as static using variables that are declared as static:
"/home/jailbird/php-5.1.0RC1/sapi/litespeed/lsapilib.c", line 128: reference to static identifier "g_running" in extern inline
function
"/home/jailbird/php-5.1.0RC1/sapi/litespeed/lsapilib.c", line 432: reference to static identifier "ack" in extern inline function
cc: acomp failed for /home/jailbird/php-5.1.0RC1/sapi/litespeed/lsapilib.c
Here is a quick patch to fix it:
--- litespeed/lsapilib.c 2005-09-25 10:51:32.000000000 -0500
+++ litespeed.new/lsapilib.c 2005-10-03 16:07:55.260000000 -0500
@@ -119,7 +119,7 @@
}
}
-inline int lsapi_read( int fd, void * pBuf, int len )
+static inline int lsapi_read( int fd, void * pBuf, int len )
{
int ret;
while( 1 )
@@ -427,7 +427,7 @@
static struct lsapi_packet_header ack = {'L', 'S',
LSAPI_REQ_RECEIVED, LSAPI_ENDIAN, {LSAPI_PACKET_HEADER_LEN} };
-inline int notify_req_received( LSAPI_Request * pReq )
+static inline int notify_req_received( LSAPI_Request * pReq )
{
if ( write( pReq->m_fd, &ack, LSAPI_PACKET_HEADER_LEN )
< LSAPI_PACKET_HEADER_LEN )