Compile pronlem with old centosls
Alejandro Martínez
lists at ruby-forum.com
Tue Jun 16 18:39:16 MSD 2009
Igor Sysoev wrote:
> On Tue, Jun 16, 2009 at 04:06:57PM +0200, Alejandro Mart??nez wrote:
>
>> >
>> > Try to change <inttypes.h> to <stdint.h> in the patch.
>>
>> still no luck.
>>
>> it doesn't seem to care for whatever i put in
>> src/os/unix/ngx_linux_config.h
>>
>> even if i put random characters everywhere :P.
>
> Sorry, I missed that the issue is on ./configure stage.
> Could you show
>
> grep -20 int64 objs/autoconf.err
>
> ?
sure.
...
./configure: error: can not define uint64_t
[root at s164 nginx-0.8.1]# grep -20 int64 objs/autoconf.err
----------------------------------------
checking for long size
objs/autotest.c: In function âmainâ:
objs/autotest.c:11: warning: incompatible implicit declaration of
built-in function âprintfâ
----------------------------------------
checking for long long size
objs/autotest.c: In function âmainâ:
objs/autotest.c:11: warning: incompatible implicit declaration of
built-in function âprintfâ
----------------------------------------
checking for void * size
objs/autotest.c: In function âmainâ:
objs/autotest.c:11: warning: incompatible implicit declaration of
built-in function âprintfâ
----------------------------------------
checking for uint64_t
In file included from /usr/include/bits/local_lim.h:36,
from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from
/usr/lib/gcc/i386-redhat-linux5E/4.1.2/include/limits.h:122,
from
/usr/lib/gcc/i386-redhat-linux5E/4.1.2/include/syslimits.h:7,
from
/usr/lib/gcc/i386-redhat-linux5E/4.1.2/include/limits.h:11,
from /usr/include/bits/socket.h:31,
from /usr/include/sys/socket.h:35,
from objs/autotest.c:4:
/usr/include/linux/limits.h:1:2: error: invalid preprocessing directive
#!
/usr/include/linux/limits.h:3:3: error: invalid preprocessing directive
#Copyright
/usr/include/linux/limits.h:5:3: error: invalid preprocessing directive
#This
/usr/include/linux/limits.h:6:3: error: invalid preprocessing directive
#it
/usr/include/linux/limits.h:7:3: error: invalid preprocessing directive
#the
/usr/include/linux/limits.h:8:3: error: invalid preprocessing directive
#any
/usr/include/linux/limits.h:10:3: error: invalid preprocessing directive
#This
/usr/include/linux/limits.h:11:3: error: invalid preprocessing directive
#but
/usr/include/linux/limits.h:12:3: error: invalid preprocessing directive
#MERCHANTABILITY
/usr/include/linux/limits.h:13:3: error: invalid preprocessing directive
#GNU
--
/usr/include/sys/socket.h:129: error: expected declaration specifiers or
â...â before âsocklen_tâ
/usr/include/sys/socket.h:152: error: expected declaration specifiers or
â...â before âsocklen_tâ
/usr/include/sys/socket.h:163: error: expected declaration specifiers or
â...â before âsocklen_tâ
/usr/include/sys/socket.h:187: error: expected declaration specifiers or
â...â before âsocklen_tâ
/usr/include/sys/socket.h:193: error: expected declaration specifiers or
â...â before âsocklen_tâ
/usr/include/sys/socket.h:210: error: expected declaration specifiers or
â...â before âsocklen_tâ
In file included from objs/autotest.c:7:
/usr/include/netinet/in.h:498: error: expected declaration specifiers or
â...â before âsocklen_tâ
/usr/include/netinet/in.h:505: error: expected declaration specifiers or
â...â before âsocklen_tâ
----------
#include <sys/types.h>
#include <signal.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <netinet/in.h>
#include <inttypes.h>
int main() {
uint64_t i = 0;
return 0;
}
----------
gcc4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest
objs/autotest.c
----------
In file included from /usr/include/bits/local_lim.h:36,
from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from
/usr/lib/gcc/i386-redhat-linux5E/4.1.2/include/limits.h:122,
from
/usr/lib/gcc/i386-redhat-linux5E/4.1.2/include/syslimits.h:7,
from
/usr/lib/gcc/i386-redhat-linux5E/4.1.2/include/limits.h:11,
from /usr/include/bits/socket.h:31,
from /usr/include/sys/socket.h:35,
from objs/autotest.c:4:
/usr/include/linux/limits.h:1:2: error: invalid preprocessing directive
#!
/usr/include/linux/limits.h:3:3: error: invalid preprocessing directive
#Copyright
/usr/include/linux/limits.h:5:3: error: invalid preprocessing directive
#This
/usr/include/linux/limits.h:6:3: error: invalid preprocessing directive
#it
/usr/include/linux/limits.h:7:3: error: invalid preprocessing directive
#the
--
/usr/include/sys/socket.h:129: error: expected declaration specifiers or
â...â before âsocklen_tâ
/usr/include/sys/socket.h:152: error: expected declaration specifiers or
â...â before âsocklen_tâ
/usr/include/sys/socket.h:163: error: expected declaration specifiers or
â...â before âsocklen_tâ
/usr/include/sys/socket.h:187: error: expected declaration specifiers or
â...â before âsocklen_tâ
/usr/include/sys/socket.h:193: error: expected declaration specifiers or
â...â before âsocklen_tâ
/usr/include/sys/socket.h:210: error: expected declaration specifiers or
â...â before âsocklen_tâ
In file included from objs/autotest.c:7:
/usr/include/netinet/in.h:498: error: expected declaration specifiers or
â...â before âsocklen_tâ
/usr/include/netinet/in.h:505: error: expected declaration specifiers or
â...â before âsocklen_tâ
----------
#include <sys/types.h>
#include <signal.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <netinet/in.h>
#include <inttypes.h>
int main() {
u_int64_t i = 0;
return 0;
}
----------
gcc4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest
objs/autotest.c
----------
thank you,
Alejandro
--
Posted via http://www.ruby-forum.com/.
More information about the nginx
mailing list