Date: Sun, 28 Nov 2004 00:04:22 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 460 ************************************************** Saturday 27 November 2004 Number 460 ************************************************** Subjects for today 1 Source for PING : John Poltorak 2 syslogd confusion : John Poltorak 3 Re: Source for PING : Knut Stange Osmundsen 4 Re: Source for PING : John Poltorak 5 Re: Source for PING : Yuri Dario" 6 Re: Source for PING : John Poltorak 7 PostgreSQL does build with GCC 3.3.5 : lsunley at mb.sympatico.ca 8 Re: Source for PING : Andrew MacIntyre 9 DosAllocSharedMem in libc v0.6-beta1 : Dave Yeo" 10 Building Python 2.3.4 with Innotek GCC 3.3.5 beta 1 : Paul Smedley 11 Re: Building Python 2.3.4 with Innotek GCC 3.3.5 beta 1 : John Poltorak 12 Re: PostgreSQL does build with GCC 3.3.5 : John Poltorak 13 Re: Source for PING : John Poltorak **= Email 1 ==========================** Date: Fri, 26 Nov 2004 13:42:35 +0000 From: John Poltorak Subject: Source for PING Can anyone confirm that this is the latest source for BSD PING:- ? ftp://ftp.uu.net/systems/unix/bsd-sources/sbin/ping Should I expect to be able to build this on OS/2 straight out of the box using GCC 3.3.5? -- John **= Email 2 ==========================** Date: Fri, 26 Nov 2004 15:12:08 +0000 From: John Poltorak Subject: syslogd confusion There seem to be numerous OS/2 ports of SYSLOGD, but I presume they are all based on the same source... If I wanted to build my own, where would I get the source and what is the latest version? -- John **= Email 3 ==========================** Date: Fri, 26 Nov 2004 19:02:08 +0100 From: Knut Stange Osmundsen Subject: Re: Source for PING John Poltorak wrote: > Can anyone confirm that this is the latest source for BSD PING:- ? > > ftp://ftp.uu.net/systems/unix/bsd-sources/sbin/ping > > > Should I expect to be able to build this on OS/2 straight out of the > box using GCC 3.3.5? Not quite I think. Bart tried that a month ago and found some tcpip differences which made the build fail. I haven't had time too look into all that sysctl stuff yet to see if a workaround is possible. But please try it again and see what trouble you get with beta 1. (Bart tried it with alpha1 or so IIRC.) Kind Regards, knut PS. The beta1 is NOT timebombed. Sorry about not announcing it, I was a bit short on time and now I'm on vacation in the US. :) **= Email 4 ==========================** Date: Fri, 26 Nov 2004 19:52:13 +0000 From: John Poltorak Subject: Re: Source for PING On Fri, Nov 26, 2004 at 07:02:08PM +0100, Knut Stange Osmundsen wrote: > John Poltorak wrote: > > Can anyone confirm that this is the latest source for BSD PING:- ? > > > > ftp://ftp.uu.net/systems/unix/bsd-sources/sbin/ping > > > > > > Should I expect to be able to build this on OS/2 straight out of the > > box using GCC 3.3.5? > > Not quite I think. Bart tried that a month ago and found some tcpip > differences which made the build fail. I haven't had time too look into > all that sysctl stuff yet to see if a workaround is possible. But please > try it again and see what trouble you get with beta 1. (Bart tried it > with alpha1 or so IIRC.) How do I compile it? I can only find ping.c - no Makefile. If I run gcc ping.c I get:- C:\TMP/cc9i2YKG.o: Undefined symbol _inet_addr referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol gethostbyname referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol getprotobyname referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol socket referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol setsockopt referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol setsockopt referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol setsockopt referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol setsockopt referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol _inet_ntoa referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol recvfrom referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol sendto referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol _inet_ntoa referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol _inet_ntoa referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol _inet_ntoa referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol _inet_ntoa referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol gethostbyaddr referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol _inet_ntoa referenced from text segment C:\TMP/cc9i2YKG.o: Undefined symbol _inet_ntoa referenced from text segment > Kind Regards, > knut > > PS. The beta1 is NOT timebombed. Sorry about not announcing it, I was a > bit short on time and now I'm on vacation in the US. :) Well have a nice trip and thanks for all your hard work. -- John **= Email 5 ==========================** Date: Fri, 26 Nov 2004 21:15:13 +0100 (CET) From: "Yuri Dario" Subject: Re: Source for PING On Fri, 26 Nov 2004 19:52:13 +0000, John Poltorak wrote: >gcc ping.c gcc ping.c -lsocket Bye, Yuri Dario /* * member of TeamOS/2 - Italy * http://www.os2power.com/yuri * http://www.teamos2.it */ **= Email 6 ==========================** Date: Fri, 26 Nov 2004 20:24:48 +0000 From: John Poltorak Subject: Re: Source for PING On Fri, Nov 26, 2004 at 09:15:13PM +0100, Yuri Dario wrote: > On Fri, 26 Nov 2004 19:52:13 +0000, John Poltorak wrote: > > >gcc ping.c > > gcc ping.c -lsocket Many thanks, Yuri! It works great and PING builds fine. Only problem is that the source I have says:- at (#)ping.c 5.9 (Berkeley) 5/12/91 Any idea where I can get the most recent version? > > Bye, > > Yuri Dario > > /* > * member of TeamOS/2 - Italy > * http://www.os2power.com/yuri > * http://www.teamos2.it > */ -- John **= Email 7 ==========================** Date: Fri, 26 Nov 2004 17:39:29 -0500 From: lsunley at mb.sympatico.ca Subject: PostgreSQL does build with GCC 3.3.5 Just to let you all know... PostgreSQL v 8.0.0 beta 4 does build with GCC 3.3.5 b1 Several changes to the makefiles are required as well as some source changes to avoid redefinition of some things supplied in os2emx.h. The source code incorrectly tests for HAVE_OPTRESET rather than the HAVE_INT_OPTRESET the configure program sets up to test. The new setitimer stuff appears to work for the compile and build. I still have no idea if the Sys V semaphore code I wrote works properly yet as I have not set up all the things needed to create databases yet. I'll post an update tomorrow when I know how (and if) it all works. Lorne -- ----------------------------------------------------------- lsunley at mb.sympatico.ca ----------------------------------------------------------- **= Email 8 ==========================** Date: Sat, 27 Nov 2004 10:10:07 +1100 (EST) From: Andrew MacIntyre Subject: Re: Source for PING On Fri, 26 Nov 2004, John Poltorak wrote: > Can anyone confirm that this is the latest source for BSD PING:- ? > > ftp://ftp.uu.net/systems/unix/bsd-sources/sbin/ping I would expect not - each of the [Net|Free|Open] sourcebases could be expected to have something later than the above (which is probably from the BSD 4.4 Lite release from CSRG at UCB). ------------------------------------------------------------------------- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac at bullseye.apana.org.au (pref) | Snail: PO Box 370 andymac at pcug.org.au (alt) | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia **= Email 9 ==========================** Date: Fri, 26 Nov 2004 21:29:12 -0800 From: "Dave Yeo" Subject: DosAllocSharedMem in libc v0.6-beta1 Hi, I have a configure script here from star (an alternative tar http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/priv ate/star.html, also smake and cdrecord from the same authour ) which checks for DosAllocSharedMem and DosSetPriority. While these are found in EMX they are not found in libc. Just wondering if you have any plans to add these or if I should be using the toolkit (which not everyone has ). Dave **= Email 10 ==========================** Date: Sat, 27 Nov 2004 16:11:26 +1030 From: Paul Smedley Subject: Building Python 2.3.4 with Innotek GCC 3.3.5 beta 1 Hi All, I just got Python 2.3.4 to build with Knut's latest GCC. A few things required change: 1) in pc/os2emx - pyconfig.h needs editing and the '#define intptr_t' removing as it's already defined in Innotek GCC 2) in python - thread.c - I had to comment out: #ifdef _POSIX_THREADS /*#include "thread_pthread.h" innote */ #endif as it appears that Innotek GCC defines that is has _POSIX_THREADS and this code gets executed as well as the _OS2_THREADS when building thread.c 3) in pc/os2emx - I had to comment out $(EXEOPT) -aq $(PYTHON.EXE) -h$(NFILES) & $(EXEOPT) -aq $(PYTHONPM.EXE) -h$(NFILES) Innotek GCC's emxbind doesn't support -a - and with just -q I got an error 'emxbind: The input and output files have the same name' It seems to run OK but running 'make test' I get <...snip...> test_fnmatch test_fork1 !!!deadlock!!! LIBC Heap Recursive mutex! !!!deadlock!!! LIBC Heap Recursive mutex! make: *** [test] Error 127 not sure if this is due to the handles not being set correctly in python.exe or not.... Cheers, Paul. **= Email 11 ==========================** Date: Sat, 27 Nov 2004 11:46:48 +0000 From: John Poltorak Subject: Re: Building Python 2.3.4 with Innotek GCC 3.3.5 beta 1 On Sat, Nov 27, 2004 at 04:11:26PM +1030, Paul Smedley wrote: > Hi All, > I just got Python 2.3.4 to build with Knut's latest GCC. This is good news. I really need to get Python built without EMX because of stack problems, which I am unable to resolve, when running Zope. Hopefully the new GCC will clear the problem. > A few things required change: > 1) in pc/os2emx - pyconfig.h needs editing and the '#define intptr_t' > removing as it's already defined in Innotek GCC > 2) in python - thread.c - I had to comment out: > #ifdef _POSIX_THREADS > /*#include "thread_pthread.h" innote */ > #endif > as it appears that Innotek GCC defines that is has _POSIX_THREADS and > this code gets executed as well as the _OS2_THREADS when building thread.c > 3) in pc/os2emx - I had to comment out > $(EXEOPT) -aq $(PYTHON.EXE) -h$(NFILES) > & $(EXEOPT) -aq $(PYTHONPM.EXE) -h$(NFILES) > Innotek GCC's emxbind doesn't support -a - and with just -q I got an > error 'emxbind: The input and output files have the same name' I wonder if we are nearing a stage where we can build python from the original source using autoconf, configure and make without requiring OS/2 specific makefiles... > Cheers, > > Paul. -- John **= Email 12 ==========================** Date: Sat, 27 Nov 2004 12:02:18 +0000 From: John Poltorak Subject: Re: PostgreSQL does build with GCC 3.3.5 On Fri, Nov 26, 2004 at 05:39:29PM -0500, lsunley at mb.sympatico.ca wrote: > Just to let you all know... > > PostgreSQL v 8.0.0 beta 4 does build with GCC 3.3.5 b1 This is good to know. > Several changes to the makefiles are required as well as some source > changes to avoid redefinition of some things supplied in os2emx.h. Is it possible to create a Makefile using autoconf and configure? > The source code incorrectly tests for HAVE_OPTRESET rather than the > HAVE_INT_OPTRESET the configure program sets up to test. > > The new setitimer stuff appears to work for the compile and build. > > I still have no idea if the Sys V semaphore code I wrote works properly > yet as I have not set up all the things needed to create databases yet. > > I'll post an update tomorrow when I know how (and if) it all works. Any chance of something like a build script? I'd like to see if it will build in my environment. > Lorne > > -- > ----------------------------------------------------------- > lsunley at mb.sympatico.ca > ----------------------------------------------------------- -- John **= Email 13 ==========================** Date: Sat, 27 Nov 2004 12:07:55 +0000 From: John Poltorak Subject: Re: Source for PING On Sat, Nov 27, 2004 at 10:10:07AM +1100, Andrew MacIntyre wrote: > On Fri, 26 Nov 2004, John Poltorak wrote: > > > Can anyone confirm that this is the latest source for BSD PING:- ? > > > > ftp://ftp.uu.net/systems/unix/bsd-sources/sbin/ping > > I would expect not It's annoying because the compressed archive is dated 2001 but within ping.c it says:- static char sccsid[] = " at (#)ping.c 5.9 (Berkeley) 5/12/91"; > - each of the [Net|Free|Open] sourcebases could be > expected to have something later than the above (which is probably from > the BSD 4.4 Lite release from CSRG at UCB). I have real trouble finding my way around the *BSD sources. Any chance of a URL for ping's source? > ------------------------------------------------------------------------- > Andrew I MacIntyre "These thoughts are mine alone..." > E-mail: andymac at bullseye.apana.org.au (pref) | Snail: PO Box 370 > andymac at pcug.org.au (alt) | Belconnen ACT 2616 > Web: http://www.andymac.org/ | Australia -- John