Thread: RE: [Plib-devel] net/ doesn't build on irix
Brought to you by:
sjbaker
From: Fay J. F C. AAC/W. <joh...@eg...> - 2005-08-21 21:35:33
|
So is there anything we need to do to "net" to fix the problem? John F. Fay Technical Fellow, Jacobs/Sverdrup TEAS Group joh...@eg... 850-729-6330 -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Bram Stolk Sent: Sunday, August 21, 2005 10:13 AM To: pli...@li... Subject: Re: [Plib-devel] net/ doesn't build on irix Erik Hofman wrote: > > There is a problem in the header files around IRIX 6.5.17. You can get > around it by specifying -D_SOCKLEN_T in the CXXFLAGS and the CFLAGS > directive (and run configure again). It was indeed the socklen thing. Thanks Martin, and Erik. btw: I run irix 6.5.27f bram ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |
From: Erik H. <er...@eh...> - 2005-08-22 07:57:15
|
Fay John F Contr AAC/WMG wrote: > So is there anything we need to do to "net" to fix the problem? If anything needs to be changed it should be configure. So far I didn't really bother searching for a proper answer, but looking at the problem a little better it turns out IRIX defines socklen_t to be of the u_int32_t type unless XOPEN is installed. Erik |
From: <ma...@va...> - 2005-08-22 09:34:41
|
Erik Hofman wrote: > Fay John F Contr AAC/WMG wrote: > >> So is there anything we need to do to "net" to fix the problem? > > > If anything needs to be changed it should be configure. > So far I didn't really bother searching for a proper answer, but looking > at the problem a little better it turns out IRIX defines socklen_t to be > of the u_int32_t type unless XOPEN is installed. The configure scripts tries to compile the following: #include <sys/types.h> #include <sys/socket.h> int accept (int, struct sockaddr *, socklen_t *); If it works, then socklen_t is supposed to be defined and nothing needs to be done (no -Dsocklen_t=int or similar). Maybe some other #include is needed for the code to work on IRIX? What does "man 2 accept" say? -marten |
From: Bram S. <br...@sa...> - 2005-08-22 14:18:24
|
M=E5rten Str=F6mberg wrote: > Erik Hofman wrote: >=20 >>Fay John F Contr AAC/WMG wrote: >> >> >>>So is there anything we need to do to "net" to fix the problem? >> >> >>If anything needs to be changed it should be configure. >>So far I didn't really bother searching for a proper answer, but lookin= g >>at the problem a little better it turns out IRIX defines socklen_t to b= e >>of the u_int32_t type unless XOPEN is installed. >=20 >=20 >=20 > The configure scripts tries to compile the following: >=20 > #include <sys/types.h> > #include <sys/socket.h> > int accept (int, struct sockaddr *, socklen_t *); >=20 > If it works, then socklen_t is supposed to be defined and nothing needs > to be done (no -Dsocklen_t=3Dint or similar). >=20 > Maybe some other #include is needed for the code to work on IRIX? What > does "man 2 accept" say? >=20 $ man 2 accept NAME accept - accept a connection on a socket SYNOPSIS #include <sys/types.h> #include <sys/socket.h> int accept (int s, struct sockaddr *addr, socklen_t *addrlen); #if _XOPEN_SOURCE >=3D 500 int accept (int s, struct sockaddr *addr, socklen_t *addrlen); #elif _XOPEN_SOURCE < 500 int accept (int s, struct sockaddr *addr, size_t *addrlen); #endif but in the logs: configure:6718: checking for socklen_t configure:6740: cc -c -g -fullwarn conftest.c >&5 cc-1143 cc: ERROR File =3D conftest.c, Line =3D 31 Declaration is incompatible with "int accept(int, void *, socklen_t *)= " (declared at line 692 of "/usr/include/sys/socket.h"). int accept (int, struct sockaddr *, socklen_t *); ^ 1 error detected in the compilation of "conftest.c". hmm.... why does irix use void ptr as arg? Bram > -marten >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Pract= ices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing &= QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf > _______________________________________________ > plib-devel mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-devel --=20 Bram Stolk, VR Engineer SARA, Amsterdam. tel +31 20 592 3000 "Windows is a 32-bit extension to a 16-bit graphical shell for an 8-bit operating system originally coded for a 4-bit microprocessor by a 2-bit company that can't stand 1 bit of competition." |
From: <ma...@va...> - 2005-08-22 15:11:13
|
Bram Stolk wrote: >> >> >> The configure scripts tries to compile the following: >> >> #include <sys/types.h> >> #include <sys/socket.h> >> int accept (int, struct sockaddr *, socklen_t *); >> >> If it works, then socklen_t is supposed to be defined and nothing needs >> to be done (no -Dsocklen_t=int or similar). >> >> Maybe some other #include is needed for the code to work on IRIX? What >> does "man 2 accept" say? >> > > > $ man 2 accept > > NAME > accept - accept a connection on a socket > > SYNOPSIS > #include <sys/types.h> > #include <sys/socket.h> > > int accept (int s, struct sockaddr *addr, socklen_t *addrlen); > > #if _XOPEN_SOURCE >= 500 > int accept (int s, struct sockaddr *addr, socklen_t *addrlen); > #elif _XOPEN_SOURCE < 500 > int accept (int s, struct sockaddr *addr, size_t *addrlen); > #endif > > but in the logs: > > configure:6718: checking for socklen_t > configure:6740: cc -c -g -fullwarn conftest.c >&5 > cc-1143 cc: ERROR File = conftest.c, Line = 31 > Declaration is incompatible with "int accept(int, void *, socklen_t *)" > (declared at line 692 of "/usr/include/sys/socket.h"). > > int accept (int, struct sockaddr *, socklen_t *); > ^ > > 1 error detected in the compilation of "conftest.c". > > hmm.... why does irix use void ptr as arg? Strange. How about the following test instead: #include <sys/types.h> #include <sys/socket.h> socklen_t apa; ?? -marten |
From: Bram S. <br...@sa...> - 2005-08-22 15:38:42
|
M=E5rten Str=F6mberg wrote: > Strange. How about the following test instead: >=20 > #include <sys/types.h> > #include <sys/socket.h> > socklen_t apa; Perfect! works on irix and on linux. I'll commit the change. (Only the configure.in in root has this check, others not). Bram > ?? >=20 > -marten >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Pract= ices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing &= QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf > _______________________________________________ > plib-devel mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-devel --=20 Bram Stolk, VR Engineer SARA, Amsterdam. tel +31 20 592 3000 "Windows is a 32-bit extension to a 16-bit graphical shell for an 8-bit operating system originally coded for a 4-bit microprocessor by a 2-bit company that can't stand 1 bit of competition." |