From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Wed, 12 Nov 2003 14:15:31 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 238 ************************************************** Tuesday 11 November 2003 Number 238 ************************************************** Subjects for today 1 Re: WGET response codes : Steven Levine" 2 Re: WGET response codes : Steve Wendt 3 Re: AC_BIG_ENDIAN : Andreas Buening 4 Re: Libtool : Andreas Buening 5 Re: AC_BIG_ENDIAN : John Poltorak 6 Re: WGET response codes : Steve Wendt 7 traceroute : John Poltorak 8 WGET response codes : John Poltorak 9 Re: AC_BIG_ENDIAN : Andreas Buening 10 Re: Libtool : John Poltorak 11 Re: AC_BIG_ENDIAN : John Poltorak 12 ZLIB : John Poltorak 13 Re: traceroute : Adrian Gschwend" 14 pngos2.def : John Poltorak 15 Re: WGET response codes : T.Sikora" 16 m4 info : John Poltorak 17 Re: WGET response codes : John Poltorak 18 Re: WGET response codes : John Poltorak 19 Re: Automake problem : Dave and Natalie" 20 Re: WGET response codes : John Poltorak 21 Re: GD graphics library : Brian Havard" 22 Re: traceroute : Sebastian Wittmeier (ShadoW)" 23 Re: AC_BIG_ENDIAN : Brian Havard" 24 Re: WGET response codes : John Poltorak 25 Re: WGET response codes : Sebastian Wittmeier (ShadoW)" 26 Re: traceroute : John Poltorak 27 Automake problem : John Poltorak **= Email 1 ==========================** Date: Wed, 12 Nov 2003 09:56:58 -0800 From: "Steven Levine" Subject: Re: WGET response codes In <20031112124612.N28013 at warpix.org>, on 11/12/03 at 12:46 PM, John Poltorak said: >Is there any way to determine in a batch file or shell script if WGET has > failed to establish a connection with specified location? Depending on how fancy you want to get you can just look at the return code which is pretty much pass/fail or you can pipe stdout/stderr somewhere and parse it. Regards, Steven -- ---------------------------------------------------------------------- "Steven Levine" MR2/ICE 2.40 #10183 Warp4/FP15/14.093c_W4 www.scoug.com irc.webbnet.info irc.fyrelizard.org #scoug (Wed 7pm PST) ---------------------------------------------------------------------- **= Email 2 ==========================** Date: Wed, 12 Nov 2003 10:50:10 -0800 (PST) From: Steve Wendt Subject: Re: WGET response codes On Wed, 12 Nov 2003, John Poltorak wrote: > Is there any way to determine in a batch file or shell script if WGET has > failed to establish a connection with specified location? Just a WAG, but have you tried "if errorlevel 1" ? **= Email 3 ==========================** Date: Wed, 12 Nov 2003 10:55:00 +0100 From: Andreas Buening Subject: Re: AC_BIG_ENDIAN John Poltorak wrote: > > Why do I get AC_BIG_ENDIAN as an undefined macro when running configure? You're missing the according .m4 file where this macro is defined. Bye, Andreas -- Ein Betriebssystem, sie zu knechten, sie alle zu finden, Ins Dunkel zu treiben und ewig zu binden Im Lande Redmond, wo die Schatten drohn. (frei nach J. R. Tolkien) **= Email 4 ==========================** Date: Wed, 12 Nov 2003 11:00:15 +0100 From: Andreas Buening Subject: Re: Libtool John Poltorak wrote: > > In an effort to learn something about Libtool, I am going through some > online docs here:- > > http://www.gnu.org/manual/libtool-1.4.2/html_node/libtool_toc.html > > I reckon that if I read it enough times, something will eventually sink in. > > If anyone is familiar with Libtool, could you say how relevant these docs > are to using it on OS/2? In principle, it's the same like for other systems. To create shared libraries on OS/2 you have to use AC_LIBTOOL_WIN32_DLL in your configure.in. The included libltdl won't work, I guess. Unless you want to run libtool by hand (or you want to provide patches) you only need AC_LIBTOOL_WIN32_DLL AC_PROG_LIBTOOL in your configure.in file. Bye, Andreas **= Email 5 ==========================** Date: Wed, 12 Nov 2003 11:27:17 +0000 From: John Poltorak Subject: Re: AC_BIG_ENDIAN On Wed, Nov 12, 2003 at 10:55:00AM +0100, Andreas Buening wrote: > John Poltorak wrote: > > > > Why do I get AC_BIG_ENDIAN as an undefined macro when running configure? > > You're missing the according .m4 file where this macro is defined. Should this .m4 file be in the archive, part of autoconf, or somewhere else? > > Bye, > Andreas > > -- > Ein Betriebssystem, sie zu knechten, sie alle zu finden, > Ins Dunkel zu treiben und ewig zu binden > Im Lande Redmond, wo die Schatten drohn. > (frei nach J. R. Tolkien) -- John **= Email 6 ==========================** Date: Wed, 12 Nov 2003 11:42:17 -0800 (PST) From: Steve Wendt Subject: Re: WGET response codes On Wed, 12 Nov 2003, John Poltorak wrote: > > > Is there any way to determine in a batch file or shell script if WGET has > > > failed to establish a connection with specified location? > > > > Just a WAG, but have you tried "if errorlevel 1" ? > > Doesn't work in a shell script :-).... You did say batch file OR shell script... but the equivalent would be something like this "if test $? -neq 0" **= Email 7 ==========================** Date: Wed, 12 Nov 2003 12:43:13 +0000 From: John Poltorak Subject: traceroute There was a mention of the source for traceroute being available on hacker sources. Does anyone know where hacker sources is located? -- John **= Email 8 ==========================** Date: Wed, 12 Nov 2003 12:46:12 +0000 From: John Poltorak Subject: WGET response codes Is there any way to determine in a batch file or shell script if WGET has failed to establish a connection with specified location? -- John **= Email 9 ==========================** Date: Wed, 12 Nov 2003 13:36:06 +0100 From: Andreas Buening Subject: Re: AC_BIG_ENDIAN Brian Havard wrote: > > On Wed, 12 Nov 2003 11:27:17 +0000, John Poltorak wrote: > > >On Wed, Nov 12, 2003 at 10:55:00AM +0100, Andreas Buening wrote: > >> John Poltorak wrote: > >> > > >> > Why do I get AC_BIG_ENDIAN as an undefined macro when running configure? > >> > >> You're missing the according .m4 file where this macro is defined. > > > >Should this .m4 file be in the archive, part of autoconf, or somewhere > >else? > > I don't know where that one's supposed to be defined but I believe > AC_C_BIGENDIAN is the standard endian test macro. Maybe John's package uses its own BIGENIAN macro which isn't part of the source package. Bye, Andreas **= Email 10 ==========================** Date: Wed, 12 Nov 2003 13:44:13 +0000 From: John Poltorak Subject: Re: Libtool On Wed, Nov 12, 2003 at 11:00:15AM +0100, Andreas Buening wrote: > In principle, it's the same like for other systems. To create shared > libraries on OS/2 you have to use AC_LIBTOOL_WIN32_DLL in your > configure.in. The included libltdl won't work, I guess. > Unless you want to run libtool by hand (or you want to provide > patches) you only need > > AC_LIBTOOL_WIN32_DLL > AC_PROG_LIBTOOL > > in your configure.in file. I'm wondering if it is possible to use LIBTOOL for building JPEG:- ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz It does not have a configure.in but the included makefile.cfg has some references to LIBTOOL. I'd like to see if there is any way to generate a Makefile for OS/2 so that it would come with built in support for OS/2. There is a pre-built OS/2 port on Hobbes which includes a Makefile, but that includes a number of hard coded paths which is always a problem. > > Bye, > Andreas -- John **= Email 11 ==========================** Date: Wed, 12 Nov 2003 14:11:23 +0000 From: John Poltorak Subject: Re: AC_BIG_ENDIAN On Wed, Nov 12, 2003 at 01:36:06PM +0100, Andreas Buening wrote: > Brian Havard wrote: > > > > On Wed, 12 Nov 2003 11:27:17 +0000, John Poltorak wrote: > > > > >On Wed, Nov 12, 2003 at 10:55:00AM +0100, Andreas Buening wrote: > > >> John Poltorak wrote: > > >> > > > >> > Why do I get AC_BIG_ENDIAN as an undefined macro when running configure? > > >> > > >> You're missing the according .m4 file where this macro is defined. > > > > > >Should this .m4 file be in the archive, part of autoconf, or somewhere > > >else? > > > > I don't know where that one's supposed to be defined but I believe > > AC_C_BIGENDIAN is the standard endian test macro. > > Maybe John's package uses its own BIGENIAN macro which isn't > part of the source package. The package is LINKS:- ftp://atrey.karlin.mff.cuni.cz/pub/local/clock/links/links-2.1pre7.tar.gz This is the error which occurs when running autoconf:- Using:- autoconf (GNU Autoconf) 2.57 (release for OS/2) configure.in:111: error: possibly undefined macro: AC_BIG_ENDIAN If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:113: error: possibly undefined macro: AC_LITTLE_ENDIAN > Bye, > Andreas -- John **= Email 12 ==========================** Date: Wed, 12 Nov 2003 14:26:17 +0000 From: John Poltorak Subject: ZLIB I'm looking for a ZLIB which includes a ZDLL.LIB. Anyone know where I can one? -- John **= Email 13 ==========================** Date: Wed, 12 Nov 2003 14:46:09 +0100 (CET) From: "Adrian Gschwend" Subject: Re: traceroute On Wed, 12 Nov 2003 12:43:13 +0000, John Poltorak wrote: >There was a mention of the source for traceroute being available on hacker >sources. > >Does anyone know where hacker sources is located? Sorry, got that from a friend who collects a lot of hacking-related tools: ftp://ftp.netlabs.org/pub/misc/traceroute-1.4a12-packetfatory.tar.gz cu Adrian -- Adrian Gschwend at netlabs.org ktk [a t] netlabs.org ------- Free Software for OS/2 and eCS http://www.netlabs.org **= Email 14 ==========================** Date: Wed, 12 Nov 2003 14:48:39 +0000 From: John Poltorak Subject: pngos2.def I've just come across some differences in two versions of PNGOS2.DEF. One is in the original distributed source, but there are some enhancements added to the one at www.andymac.org. Should these enhancements be included in the original? Here are the differences:- 7c7 < LIBRARY PNG --- > LIBRARY PNG_125 INITINSTANCE TERMINSTANCE 10c10 < DATA PRELOAD MOVEABLE MULTIPLE --- > DATA PRELOAD MOVEABLE MULTIPLE NONSHARED 189c189 < png_permit_empty_plte --- > ; png_permit_empty_plte 241a242,248 > > ; extras > png_create_read_struct_2 > png_create_write_struct_2 > png_malloc_default > png_free_default > -- John **= Email 15 ==========================** Date: Wed, 12 Nov 2003 15:29:13 -0500 From: "T.Sikora" Subject: Re: WGET response codes Steve Wendt wrote: > On Wed, 12 Nov 2003, John Poltorak wrote: > > >>>>Is there any way to determine in a batch file or shell script if WGET has >>>>failed to establish a connection with specified location? Just take the -q qualifier off the wget line in lib/build.sh it will be verbose. >>> >>>Just a WAG, but have you tried "if errorlevel 1" ? >> >>Doesn't work in a shell script :-).... > > > You did say batch file OR shell script... but the equivalent would be > something like this "if test $? -neq 0" > > > -- T.Sikora tsikora at ntplx dot net **= Email 16 ==========================** Date: Wed, 12 Nov 2003 18:01:10 +0000 From: John Poltorak Subject: m4 info When building m4 the info files get installed in /usr/info. I want them to go in /usr/share/info. How do I do that? A change to m4's Makefile.in appears to be the way to do it, but I don't know what is required. should I just change:- ? infodir = $(prefix)/info to:- infodir = at infodir at -- John **= Email 17 ==========================** Date: Wed, 12 Nov 2003 19:39:13 +0000 From: John Poltorak Subject: Re: WGET response codes On Wed, Nov 12, 2003 at 09:56:58AM -0800, Steven Levine wrote: > In <20031112124612.N28013 at warpix.org>, on 11/12/03 > at 12:46 PM, John Poltorak said: > > >Is there any way to determine in a batch file or shell script if WGET has > > failed to establish a connection with specified location? > > Depending on how fancy you want to get you can just look at the return > code which is pretty much pass/fail It isn't quite as simple as that. A zero return code can mean either pass or fail in different circumstances as far as wget is concerned, although I'm not aware of these return codes being documented anywhere. > Regards, > > Steven > > > -- > ---------------------------------------------------------------------- > "Steven Levine" MR2/ICE 2.40 #10183 Warp4/FP15/14.093c_W4 > www.scoug.com irc.webbnet.info irc.fyrelizard.org #scoug (Wed 7pm PST) > ---------------------------------------------------------------------- > -- John **= Email 18 ==========================** Date: Wed, 12 Nov 2003 19:56:47 +0000 From: John Poltorak Subject: Re: WGET response codes On Wed, Nov 12, 2003 at 10:50:10AM -0800, Steve Wendt wrote: > On Wed, 12 Nov 2003, John Poltorak wrote: > > > Is there any way to determine in a batch file or shell script if WGET has > > failed to establish a connection with specified location? > > Just a WAG, but have you tried "if errorlevel 1" ? Doesn't work in a shell script :-).... **= Email 19 ==========================** Date: Wed, 12 Nov 2003 20:24:39 -0800 From: "Dave and Natalie" Subject: Re: Automake problem On Wed, 12 Nov 2003 22:42:30 +0000, John Poltorak wrote: >I just thought I'd try building a simple Unix program - FPING, but got the >following errors when building it:- > > >configure: creating ./config.status >config.status: creating Makefile >config.status: creating config.h >make >cd . && automake Makefile >configure.in: `AM_INIT_AUTOMAKE' must be used >automake: no proper implementation of AM_INIT_AUTOMAKE was found, >automake: probably because aclocal.m4 is missing... >automake: You should run aclocal to create this file, then >automake: run automake again. >configure.in: required file `./missing' not found >Makefile.am: required file `./depcomp' not found >/usr/local/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL >/usr/local/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL >make: *** [Makefile.in] Error 1 >CONFIG_FILES=Makefile CONFIG_HEADERS= ./config.status >config.status: creating Makefile >Makefile:15: *** missing separator. Stop. > > > >Does this look like an Automake problem? > >The source is over two years old so I don't think it requires the most >recent version of Automake. You might need to run all the autotools eg aclocal -I autoheader automake -a autoconf Dave **= Email 20 ==========================** Date: Wed, 12 Nov 2003 21:34:35 +0000 From: John Poltorak Subject: Re: WGET response codes On Wed, Nov 12, 2003 at 03:29:13PM -0500, T.Sikora wrote: > Steve Wendt wrote: > > On Wed, 12 Nov 2003, John Poltorak wrote: > > > > > >>>>Is there any way to determine in a batch file or shell script if WGET has > >>>>failed to establish a connection with specified location? > > Just take the -q qualifier off the wget line in lib/build.sh it will be > verbose. Have you seen what size log file you get when you do that? > > -- > T.Sikora > tsikora at ntplx dot net -- John **= Email 21 ==========================** Date: Wed, 12 Nov 2003 21:35:50 +1000 (EST) From: "Brian Havard" Subject: Re: GD graphics library On Tue, 11 Nov 2003 12:44:00 +0000, John Poltorak wrote: >On Tue, Nov 11, 2003 at 10:25:15PM +1000, Brian Havard wrote: >> On Tue, 11 Nov 2003 10:40:46 +0000, John Poltorak wrote: >> >> >Does anyone know if the GD graphics library has been ported to OS/2? >> >> It's pretty easy to build though likes to have libpng (which itself needs >> libz), libjpeg & libfreetype if you want support for these features. It's >> not autoconf'd, you just have to hack up the supplied makefile a bit. > >Do have Makefiles available for all of these? Not of a recent version. Looks like the last one I built was 1.8.4. >> I used to build it for PHP but PHP now has a bundled version built in so I >> don't need to. > >Are there any instructions for building PHP on OS/2? No, I've never put any together. I include a patch file in the binary I distribute though so anyone with the required set of tools installed should be able to build it. The biggest job is building all the libraries for the various extensions but fortunately they're all optional IIRC. -- ______________________________________________________________________________ | Brian Havard | "He is not the messiah! | | brianh at kheldar.apana.org.au | He's a very naughty boy!" - Life of Brian | ------------------------------------------------------------------------------ **= Email 22 ==========================** Date: Wed, 12 Nov 2003 21:43:36 +0100 (CET) From: "Sebastian Wittmeier (ShadoW)" Subject: Re: traceroute On Wed, 12 Nov 2003 14:46:09 +0100 (CET), Adrian Gschwend wrote: >ftp://ftp.netlabs.org/pub/misc/traceroute-1.4a12-packetfatory.tar.gz or here: ftp://ftp.mirrors.wiretapped.net/pub/security/network-mapping/firewalk/t raceroute According to the diff file in the same directory, this traceroute has the additional S option "Tell traceroute to not increment the destination port, useful for bypassing some packet filters. Useless without the -p option" Sebastian **= Email 23 ==========================** Date: Wed, 12 Nov 2003 21:43:52 +1000 (EST) From: "Brian Havard" Subject: Re: AC_BIG_ENDIAN On Wed, 12 Nov 2003 11:27:17 +0000, John Poltorak wrote: >On Wed, Nov 12, 2003 at 10:55:00AM +0100, Andreas Buening wrote: >> John Poltorak wrote: >> > >> > Why do I get AC_BIG_ENDIAN as an undefined macro when running configure? >> >> You're missing the according .m4 file where this macro is defined. > >Should this .m4 file be in the archive, part of autoconf, or somewhere >else? I don't know where that one's supposed to be defined but I believe AC_C_BIGENDIAN is the standard endian test macro. From the autoconf manual under "C Compiler Characteristics": - Macro: AC_C_BIGENDIAN If words are stored with the most significant byte first (like Motorola and SPARC, but not Intel and VAX, CPUs), define `WORDS_BIGENDIAN'. -- ______________________________________________________________________________ | Brian Havard | "He is not the messiah! | | brianh at kheldar.apana.org.au | He's a very naughty boy!" - Life of Brian | ------------------------------------------------------------------------------ **= Email 24 ==========================** Date: Wed, 12 Nov 2003 21:52:21 +0000 From: John Poltorak Subject: Re: WGET response codes On Wed, Nov 12, 2003 at 11:42:17AM -0800, Steve Wendt wrote: > On Wed, 12 Nov 2003, John Poltorak wrote: > > > > > Is there any way to determine in a batch file or shell script if WGET has > > > > failed to establish a connection with specified location? > > > > > > Just a WAG, but have you tried "if errorlevel 1" ? > > > > Doesn't work in a shell script :-).... > > You did say batch file OR shell script... but the equivalent would be > something like this "if test $? -neq 0" I've come up with this:- if `wget -q -Nc -t 1 -P $REPOSITORY $URL`; then echo retrieval failed exit 1 fi It seems that WGET's return codes depend on the options used, so this may not work if the options were changed. -- John **= Email 25 ==========================** Date: Wed, 12 Nov 2003 21:54:03 +0100 (CET) From: "Sebastian Wittmeier (ShadoW)" Subject: Re: WGET response codes some are listed here: http://lists.suse.com/archive/suse-linux-e/2003-Jul/2133.html Sebastian **= Email 26 ==========================** Date: Wed, 12 Nov 2003 22:20:01 +0000 From: John Poltorak Subject: Re: traceroute On Wed, Nov 12, 2003 at 09:43:36PM +0100, Sebastian Wittmeier (ShadoW) wrote: > On Wed, 12 Nov 2003 14:46:09 +0100 (CET), Adrian Gschwend wrote: > >ftp://ftp.netlabs.org/pub/misc/traceroute-1.4a12-packetfatory.tar.gz > > or here: > ftp://ftp.mirrors.wiretapped.net/pub/security/network-mapping/firewalk/t > raceroute Thanks for pointing out this site. It looks like a goldmine of handy software - I was wondering where I could find some source for XINETD and here it is! Wouldn't be great to be able to build all this stuff on OS/2? > Sebastian > > -- John **= Email 27 ==========================** Date: Wed, 12 Nov 2003 22:42:30 +0000 From: John Poltorak Subject: Automake problem I just thought I'd try building a simple Unix program - FPING, but got the following errors when building it:- configure: creating ./config.status config.status: creating Makefile config.status: creating config.h make cd . && automake Makefile configure.in: `AM_INIT_AUTOMAKE' must be used automake: no proper implementation of AM_INIT_AUTOMAKE was found, automake: probably because aclocal.m4 is missing... automake: You should run aclocal to create this file, then automake: run automake again. configure.in: required file `./missing' not found Makefile.am: required file `./depcomp' not found /usr/local/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL /usr/local/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL make: *** [Makefile.in] Error 1 CONFIG_FILES=Makefile CONFIG_HEADERS= ./config.status config.status: creating Makefile Makefile:15: *** missing separator. Stop. Does this look like an Automake problem? The source is over two years old so I don't think it requires the most recent version of Automake. -- John