From d.l.tDeContes at free.fr Thu Dec 6 03:44:24 2007 From: d.l.tDeContes at free.fr (=?ISO-8859-1?Q?Thomas_De=A0Contes?=) Date: Thu, 6 Dec 2007 03:44:24 +0100 Subject: [adasockets] for Casing use "mixedcase"; In-Reply-To: <87ve7l2zlw.fsf@willow.rfc1149.net> References: <97ACA245-305C-4408-B2E9-10BDEAF49203@free.fr> <87ve7l2zlw.fsf@willow.rfc1149.net> Message-ID: Le 29 nov. 07 ? 10:02, Samuel Tardieu a ?crit : >>>>>> "Thomas" == Thomas De Contes writes: > > Thomas> hi :-) Help ! I have a very big problem ! (I can't continue > Thomas> to programm :-( ) > > > Thomas> for Casing use "mixedcase"; is not compatible with adasockets > > What is the purpose of that? Here is the doc : http://www.adacore.com/wp-content/files/auto_update/gnat-unw-docs/ html/gnat_ugn_12.html#SEC153 Without project files, it is tolerent : if i put some capital letters, it finds the source files and it puts a warning With project files and the default Casing "lowercase", it is intolerent : it doesn't find the source files With project files and the Casing "mixedcase", it is more than tolerent :-) : no warning, and it makes .ali and .o with the corresponding "mixedcase" name :-) > (remember, I don't use projet files) You should look at it, because it may help you to manage the portability :-) I was not more hot to use it, But it was necessary to use AWS, and i find it really vry usefull :-) You should try it ;-) Here is what i get when i make a mix between adasockets-config, gtkada-config, and gtkada.gpr : http://dl.free.fr/hA0rrMdHC/AdaSockets.gpr But it doesn't work as expected, Maybe you'll prefer Object_Dir than Library_Dir Could you include it in adasockets, please ? :-) > Thomas> Could you test this, to know whether this problem is portable > Thomas> or is specific to Mac OS X, please ? > > Thomas> http://dl.free.fr/mFaw1bRg3/mixedcase.zip > > Thomas> When i run compil.command, i get : > > %gnatmake -Pigsw igswprincipal `adasockets-config` || exit > gcc -c -I/usr/local/lib/adasockets -I- -gnatA /tmp/mixedcase/ > igswprincipal.adb > gnatbind -I/usr/local/lib/adasockets -I- -x /tmp/mixedcase/ > igswprincipal.ali > gnatlink /tmp/mixedcase/igswprincipal.ali -L/usr/local/lib/ > adasockets -L/usr/local/lib -ladasockets -o /tmp/mixedcase/ > igswprincipal > > No problem. > > This is on i686-pc-linux-gnu with GNAT 4.3.0 200711028 (experimental) > and the latest AdaSockets. Thank you for the test on linux :-) Is there someone who could test on windows, please ? In fact it's not specific to AdaSockets, it's the same with gtkada But i need a project file to resolve it, And i would like to know if it is on all filesystems with insensitive case or only on mac os x :-) -- j'agis contre l'assistanat, je travaille dans une SCOP ! From d.l.tDeContes at free.fr Thu Dec 6 15:24:35 2007 From: d.l.tDeContes at free.fr (=?ISO-8859-1?Q?Thomas_De=A0Contes?=) Date: Thu, 6 Dec 2007 15:24:35 +0100 Subject: [adasockets] static Message-ID: hi :-) is it possible to install adasockets so that it is static ? -- j'agis contre l'assistanat, je travaille dans une SCOP ! From sam at rfc1149.net Fri Dec 7 13:16:19 2007 From: sam at rfc1149.net (Samuel Tardieu) Date: Fri, 07 Dec 2007 13:16:19 +0100 Subject: [adasockets] static References: Message-ID: <87odd2ya24.fsf@willow.rfc1149.net> >>>>> "Thomas" == Thomas De?Contes writes: Thomas> is it possible to install adasockets so that it is static ? What do you mean? By default, AdaSockets builds a shared *and* a static library. Sam -- Samuel Tardieu -- sam at rfc1149.net -- http://www.rfc1149.net/ From d.l.tDeContes at free.fr Sat Dec 8 14:21:37 2007 From: d.l.tDeContes at free.fr (=?ISO-8859-1?Q?Thomas_De=A0Contes?=) Date: Sat, 8 Dec 2007 14:21:37 +0100 Subject: [adasockets] static In-Reply-To: <87odd2ya24.fsf@willow.rfc1149.net> References: <87odd2ya24.fsf@willow.rfc1149.net> Message-ID: Le 7 d?c. 07 ? 13:16, Samuel Tardieu a ?crit : >>>>>> "Thomas" == Thomas De Contes writes: > > Thomas> is it possible to install adasockets so that it is static ? > > What do you mean? By default, AdaSockets builds a shared *and* a > static library. Ok, i suppose that libadasockets.a replaces all the *.o files ? But, how to use it, please ? It seems that with adasockets-config it uses automatically the shared version -- j'agis contre l'assistanat, je travaille dans une SCOP ! From sam at rfc1149.net Sat Dec 8 14:34:23 2007 From: sam at rfc1149.net (Samuel Tardieu) Date: Sat, 8 Dec 2007 14:34:23 +0100 Subject: [adasockets] static In-Reply-To: References: <87odd2ya24.fsf@willow.rfc1149.net> Message-ID: <2007-12-08-14-34-23+trackit+sam@rfc1149.net> On 8/12, Thomas De?Contes wrote: > It seems that with adasockets-config it uses automatically the shared > version It has nothing to do with AdaSockets or adasockets-config; just add "-static" before the call to "adasockets-config --libs" on your gnatmake command line. But why would you want to do that? From em21 at hw.ac.uk Tue Dec 11 19:20:41 2007 From: em21 at hw.ac.uk (Euan McVie) Date: Tue, 11 Dec 2007 18:20:41 -0000 Subject: [adasockets] Trouble Installing adasockets 1.8.6 Message-ID: Hi Am trying to install adasockets using cygwin under win xp. I get the following error on make install. Any help appreciated. $ make install Making install in src make[1]: Entering directory `/home/Euan/tmp/src' gnatmake -g -O2 ../../adasockets-1.8.6/src/split.adb gcc -c -I../../adasockets-1.8.6/src/ -g -O2 -I- ../../adasockets-1.8.6/src/split .adb gnatbind -x split.ali gnatlink split.ali -g gcc -I. -o constants_nodef ../../adasockets-1.8.6/src/constants.c In file included from ../../adasockets-1.8.6/src/constants.c:93: /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windows.h:90:2: war ning: #warning "The Win32_Winsock macro name is deprecated. Please use __USE _W32_SOCKETS instead" In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32a pi/windows.h:98, from ../../adasockets-1.8.6/src/constants.c:93: /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:103:2: w arning: #warning "fd_set and associated macros have been defined in sys/types. This may cause runtime problems with W32 sockets" In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32a pi/windows.h:98, from ../../adasockets-1.8.6/src/constants.c:93: /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:109: err or: redefinition of `struct timeval' /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:120: err or: redefinition of `struct hostent' /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:128: err or: redefinition of `struct linger' /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:155: err or: redefinition of `struct netent' /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:161: err or: redefinition of `struct servent' /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:167: err or: redefinition of `struct protoent' /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:223: err or: redefinition of `struct in_addr' /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:254: err or: redefinition of `struct sockaddr_in' /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:336: err or: redefinition of `struct sockaddr' /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:356: err or: redefinition of `struct sockaddr_storage' /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:536: err or: conflicting types for 'accept' /usr/include/sys/socket.h:29: error: previous declaration of 'accept' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:536: err or: conflicting types for 'accept' /usr/include/sys/socket.h:29: error: previous declaration of 'accept' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:537: err or: conflicting types for 'bind' /usr/include/sys/socket.h:30: error: previous declaration of 'bind' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:537: err or: conflicting types for 'bind' /usr/include/sys/socket.h:30: error: previous declaration of 'bind' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:539: err or: conflicting types for 'connect' /usr/include/sys/socket.h:31: error: previous declaration of 'connect' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:539: err or: conflicting types for 'connect' /usr/include/sys/socket.h:31: error: previous declaration of 'connect' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:541: err or: conflicting types for 'getpeername' /usr/include/sys/socket.h:32: error: previous declaration of 'getpeername' was h ere /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:541: err or: conflicting types for 'getpeername' /usr/include/sys/socket.h:32: error: previous declaration of 'getpeername' was h ere /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:542: err or: conflicting types for 'getsockname' /usr/include/sys/socket.h:33: error: previous declaration of 'getsockname' was h ere /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:542: err or: conflicting types for 'getsockname' /usr/include/sys/socket.h:33: error: previous declaration of 'getsockname' was h ere /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:543: err or: conflicting types for 'getsockopt' /usr/include/sys/socket.h:46: error: previous declaration of 'getsockopt' was he re /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:543: err or: conflicting types for 'getsockopt' /usr/include/sys/socket.h:46: error: previous declaration of 'getsockopt' was he re /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:546: err or: conflicting types for 'listen' /usr/include/sys/socket.h:34: error: previous declaration of 'listen' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:546: err or: conflicting types for 'listen' /usr/include/sys/socket.h:34: error: previous declaration of 'listen' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:547: err or: conflicting types for 'recv' /usr/include/sys/socket.h:35: error: previous declaration of 'recv' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:547: err or: conflicting types for 'recv' /usr/include/sys/socket.h:35: error: previous declaration of 'recv' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:548: err or: conflicting types for 'recvfrom' /usr/include/sys/socket.h:37: error: previous declaration of 'recvfrom' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:548: err or: conflicting types for 'recvfrom' /usr/include/sys/socket.h:37: error: previous declaration of 'recvfrom' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:549: err or: conflicting types for 'send' /usr/include/sys/socket.h:39: error: previous declaration of 'send' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:549: err or: conflicting types for 'send' /usr/include/sys/socket.h:39: error: previous declaration of 'send' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:550: err or: conflicting types for 'sendto' /usr/include/sys/socket.h:42: error: previous declaration of 'sendto' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:550: err or: conflicting types for 'sendto' /usr/include/sys/socket.h:42: error: previous declaration of 'sendto' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:551: err or: conflicting types for 'setsockopt' /usr/include/sys/socket.h:44: error: previous declaration of 'setsockopt' was he re /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:551: err or: conflicting types for 'setsockopt' /usr/include/sys/socket.h:44: error: previous declaration of 'setsockopt' was he re /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:552: err or: conflicting types for 'shutdown' /usr/include/sys/socket.h:47: error: previous declaration of 'shutdown' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:552: err or: conflicting types for 'shutdown' /usr/include/sys/socket.h:47: error: previous declaration of 'shutdown' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:553: err or: conflicting types for 'socket' /usr/include/sys/socket.h:48: error: previous declaration of 'socket' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:553: err or: conflicting types for 'socket' /usr/include/sys/socket.h:48: error: previous declaration of 'socket' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:554: err or: conflicting types for 'gethostbyaddr' /usr/include/netdb.h:139: error: previous declaration of 'gethostbyaddr' was her e /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:554: err or: conflicting types for 'gethostbyaddr' /usr/include/netdb.h:139: error: previous declaration of 'gethostbyaddr' was her e /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:555: err or: conflicting types for 'gethostbyname' /usr/include/netdb.h:140: error: previous declaration of 'gethostbyname' was her e /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:555: err or: conflicting types for 'gethostbyname' /usr/include/netdb.h:140: error: previous declaration of 'gethostbyname' was her e /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:556: err or: conflicting types for 'getservbyport' /usr/include/netdb.h:149: error: previous declaration of 'getservbyport' was her e /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:556: err or: conflicting types for 'getservbyport' /usr/include/netdb.h:149: error: previous declaration of 'getservbyport' was her e /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:557: err or: conflicting types for 'getservbyname' /usr/include/netdb.h:148: error: previous declaration of 'getservbyname' was her e /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:557: err or: conflicting types for 'getservbyname' /usr/include/netdb.h:148: error: previous declaration of 'getservbyname' was her e /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:558: err or: conflicting types for 'getprotobynumber' /usr/include/netdb.h:146: error: previous declaration of 'getprotobynumber' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:558: err or: conflicting types for 'getprotobynumber' /usr/include/netdb.h:146: error: previous declaration of 'getprotobynumber' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:559: err or: conflicting types for 'getprotobyname' /usr/include/netdb.h:145: error: previous declaration of 'getprotobyname' was he re /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:559: err or: conflicting types for 'getprotobyname' /usr/include/netdb.h:145: error: previous declaration of 'getprotobyname' was he re /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:628: err or: conflicting types for 'htonl' /usr/include/asm/byteorder.h:30: error: previous declaration of 'htonl' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:628: err or: conflicting types for 'htonl' /usr/include/asm/byteorder.h:30: error: previous declaration of 'htonl' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:629: err or: conflicting types for 'ntohl' /usr/include/asm/byteorder.h:28: error: previous declaration of 'ntohl' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:629: err or: conflicting types for 'ntohl' /usr/include/asm/byteorder.h:28: error: previous declaration of 'ntohl' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:630: err or: conflicting types for 'htons' /usr/include/asm/byteorder.h:31: error: previous declaration of 'htons' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:630: err or: conflicting types for 'htons' /usr/include/asm/byteorder.h:31: error: previous declaration of 'htons' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:631: err or: conflicting types for 'ntohs' /usr/include/asm/byteorder.h:29: error: previous declaration of 'ntohs' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:631: err or: conflicting types for 'ntohs' /usr/include/asm/byteorder.h:29: error: previous declaration of 'ntohs' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:632: err or: conflicting types for 'select' /usr/include/sys/select.h:31: error: previous declaration of 'select' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:632: err or: conflicting types for 'select' /usr/include/sys/select.h:31: error: previous declaration of 'select' was here In file included from ../../adasockets-1.8.6/src/constants.c:96: /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/ws2tcpip.h:124: err or: redefinition of `struct ip_mreq' make[1]: *** [constants_nodef] Error 1 make[1]: Leaving directory `/home/Euan/tmp/src' make: *** [install-recursive] Error 1