From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Fri, 14 Nov 2003 14:15:35 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 240 ************************************************** Thursday 13 November 2003 Number 240 ************************************************** Subjects for today 1 Re: Automake problem : Andreas Buening 2 Re: Strobe : Sebastian Wittmeier (ShadoW)" 3 Re: Automake problem : John Poltorak 4 Re: Automake problem : John Poltorak 5 Re: Strobe : John Poltorak 6 Re: Automake problem : Andreas Buening 7 Re: Plenty of errors in os2emx.h : Henry Sobotka 8 XFree86OS/2 list : John Poltorak 9 Re: XFree86OS/2 list : Stefan Neis 10 Plenty of errors in os2emx.h : John Poltorak 11 Re: Plenty of errors in os2emx.h : John Poltorak 12 Re: File v4.06 : John Poltorak **= Email 1 ==========================** Date: Fri, 14 Nov 2003 00:10:20 +0100 From: Andreas Buening Subject: Re: Automake problem 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' I guess, he means --force-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 That's something I don't understand. You run make, and make runs automake => your package requires automake. > configure.in: no proper invocation of AM_INIT_AUTOMAKE was found. > configure.in: You should verify that configure.in invokes > AM_INIT_AUTOMAKE, configure.in doesn't call AM_INIT_AUTOMAKE => your package doesn't require automake. You don't have depend => your package doesn't use automake or it uses a very old version? > It looks like Make invokes Automake but I don't see where. Well hidden in the Makefile. > Is there any way to specify Make debug options via the environment? I > could do with creating a trace if possible. Debugging an autogenerated Makefile is a challenge. ;-) Bye, Andreas **= Email 2 ==========================** Date: Fri, 14 Nov 2003 02:56:38 +0100 (CET) From: "Sebastian Wittmeier (ShadoW)" Subject: Re: Strobe On Thu, 13 Nov 2003 14:43:06 +0000, John Poltorak wrote: >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:1293: parse error before `/' > !(fh = fopen ((fn=LIB_STROBE_SERVICES), "r")) && The / appears in the defines on the gcc command line. Could it be that the command line is somehow messed by the shell? Please try "gcc -E -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" with the -E option to get info about the preprocessor replacements in those lines. Sebastian **= Email 3 ==========================** Date: Fri, 14 Nov 2003 10:58:20 +0000 From: John Poltorak Subject: Re: Automake problem On Thu, Nov 13, 2003 at 04:59:50PM -0800, Dave and Natalie wrote: > 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 Yes, that worked. I get a Makefile created now. Unfortunately there is something wrong with the Makefile:- make Makefile:15: *** missing separator. Stop. Makefile:15: *** missing separator. Stop. This is line 15:- at SET_MAKE at Also quite a number of lines don't seem to have been resolved properly such as:- at AMDEP_TRUE at at am__include at at am__quote at ./$(DEPDIR)/fping.Po at am__quote at As far as the Automake problem goes, it seems strange to me that the original error:- configure.in: required file `./missing' not found is fixed by '--add-missing'. I can see it worked, but in the first instance Automake tried to use 'missing' but couldn't find it, and in the second instance it does manage to find it. Does it search different locations to find it? > Dave -- John **= Email 4 ==========================** Date: Fri, 14 Nov 2003 11:15:45 +0000 From: John Poltorak Subject: Re: Automake problem On Fri, Nov 14, 2003 at 12:10:20AM +0100, Andreas Buening wrote: > > 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 > > That's something I don't understand. You run make, and make runs > automake => your package requires automake. This has now been cleared up after adding '--add-missing' as a an Automake parameter, although I don't understand why it is necessary. > > configure.in: no proper invocation of AM_INIT_AUTOMAKE was found. > > configure.in: You should verify that configure.in invokes > > AM_INIT_AUTOMAKE, > > configure.in doesn't call AM_INIT_AUTOMAKE => your package doesn't > require automake. > You don't have depend => your package doesn't use automake or > it uses a very old version? The package is FPING and it looks to be quite small and simple. This is Makefile.am:- sbin_PROGRAMS = fping fping_SOURCES = fping.c options.h linux.h man_MANS = fping.8 AUTOMAKE_OPTIONS=foreign Makefile.in was generated by automake 1.0. Maybe you could have a quick look. It is available here:- ftp://ftp.mirrors.wiretapped.net/pub/security/network-mapping/fping/fping-2.4b2.tar.gz;;;;;. > > Is there any way to specify Make debug options via the environment? I > > could do with creating a trace if possible. > > Debugging an autogenerated Makefile is a challenge. ;-) I think I realised a long time ago that I am not up to these challenges... > > Bye, > Andreas -- John **= Email 5 ==========================** Date: Fri, 14 Nov 2003 11:58:21 +0000 From: John Poltorak Subject: Re: Strobe On Fri, Nov 14, 2003 at 02:56:38AM +0100, Sebastian Wittmeier (ShadoW) wrote: > On Thu, 13 Nov 2003 14:43:06 +0000, John Poltorak wrote: > > >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:1293: parse error before `/' > > !(fh = fopen ((fn=LIB_STROBE_SERVICES), "r")) && > > The / appears in the defines on the gcc command line. > Could it be that the command line is somehow messed by the shell? > > Please try > "gcc -E -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" > > with the -E option to get info about the preprocessor replacements in > those lines. This is what happens now:- gcc -E -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 gcc -E -O -g -Wall -DLIB_STROBE_SERVICES='"/usr/local/lib/strobe.services"' -DSTROBE_SERVICES='"strobe.services"' -DETC_SERVICES='"/etc/services"' -o strobe strobe.o gcc: : No such file or directory make: *** [strobe] Error 1 gcc -E -O -g -Wall -DLIB_STROBE_SERVICES='"/usr/local/lib/strobe.services"' -DSTROBE_SERVICES='"strobe.services"' -DETC_SERVICES='"/etc/services"' -o strobe strobe.o gcc: : No such file or directory make: *** [strobe] Error 1 I do manage to get a strobe.o created this time. Here is the Makefile I'm using:- # Strobe (c) 1995-1997 Julian Assange, All rights reserved. # proff at iq.org || proff at gnu.ai.mit.edu # Modify the below to suit your filesystem INSTALLDIR=/usr/local/bin LIBDIR=/usr/local/lib MANDIR=/usr/local/man/man1 #CC=cc CC=gcc #FLAGS=-O -nointl # SCO FLAGS= -E -O -g -Wall #LIBS= -lnsl -lsocket # SYSVR4 / SOLARIS #LIBS= -lsocket -lmalloc -lc_s # SCO LIBS= ETC_SERVICES=/etc/services # Don't change anything from this point on. OBJS=strobe.o BIN=strobe MAN=strobe.1 DATA=strobe.services EXTRA=Makefile INSTALL VERSION HISTORY COPYRIGHT POST strobe.man DEFS=-DLIB_STROBE_SERVICES='"$(LIBDIR)/$(DATA)"'\ -DSTROBE_SERVICES='"$(DATA)"'\ -DETC_SERVICES='"$(ETC_SERVICES)"' CFLAGS=$(FLAGS) $(DEFS) $(BIN): $(OBJS) $(CC) $(CFLAGS) -o $(BIN) $(OBJS) $(LIBS) $(OBJS): $(DATA): $(MAN): $(INSTALLDIR)/$(BIN): $(BIN) -rm -f $(INSTALLDIR)/$(BIN) install -m 755 -s $(BIN) $(INSTALLDIR)/$(BIN) $(LIBDIR)/$(DATA): $(DATA) -rm -f $(LIBDIR)/$(DATA) install -m 644 $(DATA) $(LIBDIR)/$(DATA) $(MANDIR)/$(MAN): $(MAN) -rm -f $(MANDIR)/$(MAN) install -m 644 $(MAN) $(MANDIR)/$(MAN) install: $(INSTALLDIR)/$(BIN) $(LIBDIR)/$(DATA) $(MANDIR)/$(MAN) strobe.man : $(MAN) nroff -man -Tascii $(MAN) > strobe.man tar: (cd .. ; tar -zcf strobe.tgz strobe) shar: shar -L 50 -o strobe.shar *.c *.1 $(EXTRA) $(DATA) clean: rm -f $(BIN) *.o *.bak *.\~ errlist *.shar.* *.tgz *.swp core > Sebastian > > -- John **= Email 6 ==========================** Date: Fri, 14 Nov 2003 13:09:25 +0100 From: Andreas Buening Subject: Re: Automake problem John Poltorak wrote: > > On Fri, Nov 14, 2003 at 12:10:20AM +0100, Andreas Buening wrote: [error] > > That's something I don't understand. You run make, and make runs > > automake => your package requires automake. > > This has now been cleared up after adding '--add-missing' as a an Automake > parameter, although I don't understand why it is necessary. > Makefile.in was generated by automake 1.0. automake comes with some helper scripts. You have to install them by --add-missing (and maybe --force-missin), otherwise you still use the automake 1.0 scripts and files in your package. Bye, Andreas **= Email 7 ==========================** Date: Fri, 14 Nov 2003 15:04:25 -0500 From: Henry Sobotka Subject: Re: Plenty of errors in os2emx.h John, look for something like: #define BYTE 1 #define SHORT 2 #define LONG 4 in one of the File 3.41 headers. If found, I would suggest replacing all occurrences in the source files to MYBYTE, MYSHORT and MYLONG (assuming those names aren't already in use) or some such rather than muck around with os2emx.h. h~ **= Email 8 ==========================** Date: Fri, 14 Nov 2003 18:42:21 +0000 From: John Poltorak Subject: XFree86OS/2 list Is the Xfree86 list still active? Anyone got details on how to subscribe? -- John **= Email 9 ==========================** Date: Fri, 14 Nov 2003 19:10:10 +0100 (CET) From: Stefan Neis Subject: Re: XFree86OS/2 list On Fri, 14 Nov 2003, John Poltorak wrote: > > Is the Xfree86 list still active? > > Anyone got details on how to subscribe? See: http://xfreeos2.dyndns.org/mailman/listinfo/xfreeos2 HTH, Stefan -- Micro$oft is not an answer. It is a question. The answer is 'no'. **= Email 10 ==========================** Date: Fri, 14 Nov 2003 20:08:16 +0000 From: John Poltorak Subject: Plenty of errors in os2emx.h I've just tried building FILE v3.41 and gets hundreds of errors in os2emx.h such as:- make all-am make[1]: Entering directory `U:/unixos2/workdir/file-3.41' gcc -DHAVE_CONFIG_H -I. -I. -I. -DMAGIC='"/usr/local/share/magic"' -c `test -f 'file.c' || echo './'`file.c gcc -DHAVE_CONFIG_H -I. -I. -I. -DMAGIC='"/usr/local/share/magic"' -c `test -f 'apprentice.c' || echo './'`apprentice.c In file included from u:\unixos2\emx\include\os2.h:20, from u:\posix2\include\sys/mman.h:45, from apprentice.c:37: u:\unixos2\emx\include\os2emx.h:197: parse error before `1' u:\unixos2\emx\include\os2emx.h:213: parse error before `1' u:\unixos2\emx\include\os2emx.h:218: parse error before `2' u:\unixos2\emx\include\os2emx.h:224: parse error before `4' u:\unixos2\emx\include\os2emx.h:1037: parse error before `1' u:\unixos2\emx\include\os2emx.h:1037: warning: no semicolon at end of struct or union u:\unixos2\emx\include\os2emx.h:1049: warning: data definition has no type or storage class u:\unixos2\emx\include\os2emx.h:1057: parse error before `4' u:\unixos2\emx\include\os2emx.h:1057: warning: no semicolon at end of struct or union u:\unixos2\emx\include\os2emx.h:1074: parse error before `2' u:\unixos2\emx\include\os2emx.h:1087: parse error before `4' u:\unixos2\emx\include\os2emx.h:1104: warning: data definition has no type or storage class u:\unixos2\emx\include\os2emx.h:1105: warning: data definition has no type or storage class u:\unixos2\emx\include\os2emx.h:1106: parse error before `*' u:\unixos2\emx\include\os2emx.h:1106: warning: data definition has no type or storage class u:\unixos2\emx\include\os2emx.h:1112: parse error before `4' u:\unixos2\emx\include\os2emx.h:1112: warning: no semicolon at end of struct or union u:\unixos2\emx\include\os2emx.h:1116: parse error before `4' u:\unixos2\emx\include\os2emx.h:1120: parse error before `}' u:\unixos2\emx\include\os2emx.h:1120: warning: data definition has no type or storage class it goes on for around 1000 lines. It seems as though something fundamental is missing. Can anyone suggest what? -- John **= Email 11 ==========================** Date: Fri, 14 Nov 2003 22:22:42 +0000 From: John Poltorak Subject: Re: Plenty of errors in os2emx.h On Fri, Nov 14, 2003 at 03:04:25PM -0500, Henry Sobotka wrote: > John, look for something like: > > #define BYTE 1 > #define SHORT 2 > #define LONG 4 > > in one of the File 3.41 headers. If found, I would suggest replacing all > occurrences in the source files to MYBYTE, MYSHORT and MYLONG (assuming > those names aren't already in use) or some such rather than muck around > with os2emx.h. Actually, I have just come across some patches that I found for v3.40 although I never succeeded in building that version, but I've applied them to v3.41 and I do get a build, albeit with a few errors:- gcc -DMAGIC='"/usr/local/share/magic"' file.c -o file In file included from file.c:28: file.h:154: conflicting types for `sys_errlist' u:\posix2\include\sys/errno.h:11: previous declaration of `sys_errlist' In file included from file.c:29: u:\posix2\include\stdlib.h:83: conflicting types for `strtol' u:\posix2\include\stdlib.h:82: previous declaration of `strtol' u:\posix2\include\stdlib.h:142: conflicting types for `sys_errlist' file.h:154: previous declaration of `sys_errlist' In file included from file.c:31: u:\posix2\include\string.h:20: parse error before `int' make[1]: *** [file] Error 1 make[1]: Leaving directory `U:/unixos2/workdir/file-3.41' make: *** [all] Error 2 gcc -DMAGIC='"/usr/local/share/magic"' file.c -o file In file included from file.c:28: file.h:154: conflicting types for `sys_errlist' u:\posix2\include\sys/errno.h:11: previous declaration of `sys_errlist' In file included from file.c:29: u:\posix2\include\stdlib.h:83: conflicting types for `strtol' u:\posix2\include\stdlib.h:82: previous declaration of `strtol' u:\posix2\include\stdlib.h:142: conflicting types for `sys_errlist' file.h:154: previous declaration of `sys_errlist' In file included from file.c:31: u:\posix2\include\string.h:20: parse error before `int' make: *** [file] Error 1 In spite of these errors, I manage to create a file.exe which actually runs and seems to work. > h~ > -- John **= Email 12 ==========================** Date: Fri, 14 Nov 2003 22:38:55 +0000 From: John Poltorak Subject: Re: File v4.06 On Fri, Nov 14, 2003 at 03:04:25PM -0500, Henry Sobotka wrote: > John, look for something like: > > #define BYTE 1 > #define SHORT 2 > #define LONG 4 > > in one of the File 3.41 headers. I just tried building File v4.06 and it appears to build straight out of the box! No patches required. > h~ > -- John