From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Thu, 13 Nov 2003 14:15:33 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 239 ************************************************** Wednesday 12 November 2003 Number 239 ************************************************** Subjects for today 1 Re: Automake problem : Dave and Natalie" 2 Re: pngos2.def : Andrew MacIntyre 3 Re: Automake problem : Alexander Newman 4 Re: Automake problem : John Poltorak 5 Strobe : John Poltorak 6 Re: Automake problem : John Poltorak 7 Re: Automake problem : John Poltorak 8 Re: Automake problem : Dave and Natalie" 9 Re: Automake problem : John Poltorak 10 Re: pngos2.def : John Poltorak **= Email 1 ==========================** Date: Thu, 13 Nov 2003 08:04:44 -0800 From: "Dave and Natalie" Subject: Re: Automake problem On Thu, 13 Nov 2003 16:00:15 +0000, John Poltorak wrote: >Looking through my Automake installation, I see the files missing and >depcomp and wonder why they are not found by configure.in and >Makefile.am... Is it a matter of the path or somesuch not being set >properly? Try automake --install-missing before autoconf Dave **= Email 2 ==========================** Date: Thu, 13 Nov 2003 09:07:22 +1100 (EST) From: Andrew MacIntyre Subject: Re: pngos2.def On Wed, 12 Nov 2003, John Poltorak wrote: > 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 required for the DLL to be PNG_125.dll rather than PNG.dll - if you're going to stick with PNG.dll, use the former. > 10c10 > < DATA PRELOAD MOVEABLE MULTIPLE > --- > > DATA PRELOAD MOVEABLE MULTIPLE NONSHARED can't remember why I did this; not sure it makes any practical difference (the docs I have don't have enough detail). > 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 The .DEF appears to have been for an earlier PNG release, and the above changes reflect what was required to use 1.2.5 with the Python Imaging Library. The entry point list should perhaps be rebuilt with emxexp to do a proper job. -- 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 3 ==========================** Date: Thu, 13 Nov 2003 09:53:30 +1100 From: Alexander Newman Subject: Re: Automake problem > John Poltorak wrote: > > I just thought I'd try building a simple Unix program - FPING, but > got the > following errors when building it:- > > /usr/local/share/automake-1.7/am/depend2.am: am__fastdepCC does not The current version, which doesn't have these problems (at least on my setup ;) is 1.7.6, autoconf is 2.57. Get the source off the unixos2 "Source" download area and build that (do autoconf 2.57 from same place first). Andreas has done great things with the autotools since he took over the os/2 'port'. Alex **= Email 4 ==========================** Date: Thu, 13 Nov 2003 12:57:28 +0000 From: John Poltorak Subject: Re: Automake problem On Wed, Nov 12, 2003 at 08:24:39PM -0800, Dave and Natalie wrote: > 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 Just tried but it doesn't fix the problem. > Dave > -- John **= Email 5 ==========================** Date: Thu, 13 Nov 2003 14:43:06 +0000 From: John Poltorak Subject: Strobe Is there any reason why I shouldn't be able to build STROBE? It's a port scanner and is available here:- ftp://ftp.mirrors.wiretapped.net/pub/security/network-mapping/strobe-1.06.tgz and comes with a fairly simple Makefile, but I get the following errors when running Make:- gcc -O -g -Wall -DLIB_STROBE_SERVICES='"/usr/local/lib/strobe.services"' -DSTROBE_SERVICES='"strobe.services"' -DETC_SERVICES='"/etc/services"' -c -o strobe.o strobe.c strobe.c: In function `loaddescs': strobe.c:1293: parse error before `/' strobe.c:1294: parse error before `/' make: *** [strobe.o] Error 1 gcc -O -g -Wall -DLIB_STROBE_SERVICES='"/usr/local/lib/strobe.services"' -DSTROBE_SERVICES='"strobe.services"' -DETC_SERVICES='"/etc/services"' -c -o strobe.o strobe.c strobe.c: In function `loaddescs': strobe.c:1293: parse error before `/' strobe.c:1294: parse error before `/' make: *** [strobe.o] Error 1 Does anyone recognise these errors? The first one looks very strange... The beginning of the function is:- fvoid loaddescs () { FILE *fh; char lbuf[1024]; char desc[256]; char portname[17]; unsigned int port; char *fn; char prot[4]; prot[3]='\0'; if (!(fh = fopen ((fn=a_services), "r")) && !(fh = fopen ((fn=LIB_STROBE_SERVICES), "r")) && !(fh = fopen ((fn=ETC_SERVICES), "r"))) { perror (fn); exit (1); } Anything wrong there? -- John **= Email 6 ==========================** Date: Thu, 13 Nov 2003 15:47:12 +0000 From: John Poltorak Subject: Re: Automake problem On Thu, Nov 13, 2003 at 09:53:30AM +1100, Alexander Newman wrote: > > John Poltorak wrote: > > > > I just thought I'd try building a simple Unix program - FPING, but > > got the > > following errors when building it:- > > > > > > /usr/local/share/automake-1.7/am/depend2.am: am__fastdepCC does not > > > > The current version, which doesn't have these problems (at least on my setup ;) > is 1.7.6, autoconf is 2.57. I was using 1.7.2 and have now upgraded to 1.7.6, but it has not made any difference. > Get the source off the unixos2 "Source" download area and build that (do > autoconf 2.57 from same place first). I found it on Hobbes and checked it against the original source and it's great to see that they are almost identical - ie OS/2 patches are no longer required. The only difference, apart from the readme.os2 is the size of the INFO files, but that is becuase Andreas uses an older version of makeinfo than the GNU team, but if you install it yourself and have the latest texinfo you get the same as the original. > Andreas has done great things with the autotools since he took over the os/2 'port'. Yes, Andreas has done marvellous work bringing the autotools uptodate. Without his work, it would be impossible to devise UX2BS which is essentially like a GNU Build System adapted for OS/2. BTW it would be useful having some more testers involved in UX2BS to try and make more Unix programs available on OS/2. > Alex -- John **= Email 7 ==========================** Date: Thu, 13 Nov 2003 16:00:15 +0000 From: John Poltorak Subject: Re: Automake problem On Wed, Nov 12, 2003 at 10:42:30PM +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. I have tried two suggestions, including updating Automake to v1.7.6 but neither worked.... Looking through my Automake installation, I see the files missing and depcomp and wonder why they are not found by configure.in and Makefile.am... Is it a matter of the path or somesuch not being set properly? -- John **= Email 8 ==========================** Date: Thu, 13 Nov 2003 16:59:50 -0800 From: "Dave and Natalie" Subject: Re: Automake problem On Thu, 13 Nov 2003 17:44:59 +0000, John Poltorak wrote: >On Thu, Nov 13, 2003 at 08:04:44AM -0800, Dave and Natalie wrote: >> On Thu, 13 Nov 2003 16:00:15 +0000, John Poltorak wrote: >> >> >Looking through my Automake installation, I see the files missing and >> >depcomp and wonder why they are not found by configure.in and >> >Makefile.am... Is it a matter of the path or somesuch not being set >> >properly? >> >> Try automake --install-missing >> before autoconf > >automake: unrecognized option `--install-missing' Thats funny, my automake 1.6.2 accepts this option. From --help -a, --add-missing add missing standard files to package Ahh, my mistake, should be --add-missing Dave **= Email 9 ==========================** Date: Thu, 13 Nov 2003 17:44:59 +0000 From: John Poltorak Subject: Re: Automake problem On Thu, Nov 13, 2003 at 08:04:44AM -0800, Dave and Natalie wrote: > On Thu, 13 Nov 2003 16:00:15 +0000, John Poltorak wrote: > > >Looking through my Automake installation, I see the files missing and > >depcomp and wonder why they are not found by configure.in and > >Makefile.am... Is it a matter of the path or somesuch not being set > >properly? > > Try automake --install-missing > before autoconf automake: unrecognized option `--install-missing' The Makefile does actually get created although I have figured out where this comes from:- config.status: creating Makefile config.status: creating config.h make cd . && automake Makefile ^^^^^^^^^^^^^^^^^^^^^^^^^ configure.in: no proper invocation of AM_INIT_AUTOMAKE was found. configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE, It looks like Make invokes Automake but I don't see where. Is there any way to specify Make debug options via the environment? I could do with creating a trace if possible. If you have UX2BS installed, you may be able to try it... > Dave -- John **= Email 10 ==========================** Date: Thu, 13 Nov 2003 21:02:58 +0000 From: John Poltorak Subject: Re: pngos2.def On Thu, Nov 13, 2003 at 09:07:22AM +1100, Andrew MacIntyre wrote: > On Wed, 12 Nov 2003, John Poltorak wrote: > > > 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 > > required for the DLL to be PNG_125.dll rather than PNG.dll - if you're > going to stick with PNG.dll, use the former. What about the INITINSTANCE TERMINSTANCE ? > > 10c10 > > < DATA PRELOAD MOVEABLE MULTIPLE > > --- > > > DATA PRELOAD MOVEABLE MULTIPLE NONSHARED > > can't remember why I did this; not sure it makes any practical difference > (the docs I have don't have enough detail). > > > 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 > > The .DEF appears to have been for an earlier PNG release, and the above > changes reflect what was required to use 1.2.5 with the Python Imaging > Library. The entry point list should perhaps be rebuilt with emxexp to do > a proper job. How about generating a .DEF file from within a Makefile? Is that possible? I see that LIBPNG actually includes a makefile.os2. Does anyone maintain it and is it currently usable? > -- > 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