From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Sat, 15 Nov 2003 14:15:38 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 241 ************************************************** Friday 14 November 2003 Number 241 ************************************************** Subjects for today 1 traceroute build : John Poltorak 2 Re: traceroute build : Stefan Neis 3 Re: traceroute build : Stefan Neis 4 Re: Automake problem : Dave and Natalie" 5 Re: traceroute build : John Poltorak 6 Use of depcomp : John Poltorak 7 Makeinfo and sed.texi : John Poltorak 8 Re: Automake problem : Dave and Natalie" 9 Re: magic : Dave and Natalie" 10 Re: Automake problem : John Poltorak 11 magic : John Poltorak 12 Re: Use of depcomp : Dave and Natalie" 13 expat : John Poltorak **= Email 1 ==========================** Date: Sat, 15 Nov 2003 00:08:27 +0000 From: John Poltorak Subject: traceroute build Thanks to Stefan, Posix/2 has now been updated which takes care of the usleep problem, but these persist:- make gcc -O -DHAVE_MALLOC_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SETLINEBUF=1 -I. -c ./traceroute.c gcc: : No such file or directory ./traceroute.c: In function `send_probe': ./traceroute.c:961: dereferencing pointer to incomplete type ./traceroute.c:962: dereferencing pointer to incomplete type ./traceroute.c:962: dereferencing pointer to incomplete type ./traceroute.c:963: dereferencing pointer to incomplete type ./traceroute.c:963: dereferencing pointer to incomplete type ./traceroute.c:964: dereferencing pointer to incomplete type ./traceroute.c:964: dereferencing pointer to incomplete type ./traceroute.c:965: dereferencing pointer to incomplete type make: *** [traceroute.o] Error 1 Any pointers, from anyone? This is the relevant code:- if (useicmp) { /* Always calculate checksum for icmp packets */ outicmp->icmp_cksum = 0; outicmp->icmp_cksum = in_cksum((u_short *)outicmp, packlen - (sizeof(*outip) + optlen)); if (outicmp->icmp_cksum == 0) outicmp->icmp_cksum = 0xffff; } else if (doipcksum) { /* Checksum (we must save and restore ip header) */ tip = *outip; ui = (struct udpiphdr *)outip; oui = (struct udpiphdr *)&tip; /* Easier to zero and put back things that are ok */ /* line 961 */ memset((char *)ui, 0, sizeof(ui->ui_i)); ui->ui_src = oui->ui_src; ui->ui_dst = oui->ui_dst; ui->ui_pr = oui->ui_pr; ui->ui_len = outudp->uh_ulen; outudp->uh_sum = 0; outudp->uh_sum = in_cksum((u_short *)ui, packlen); if (outudp->uh_sum == 0) outudp->uh_sum = 0xffff; *outip = tip; } -- John **= Email 2 ==========================** Date: Sat, 15 Nov 2003 01:34:03 +0100 (CET) From: Stefan Neis Subject: Re: traceroute build On Sat, 15 Nov 2003, John Poltorak wrote: > : No such file or directory Huh? I there some output missing that would tell us, which file is missing? > ./traceroute.c: In function `send_probe': > ./traceroute.c:961: dereferencing pointer to incomplete type (snipp) > ui = (struct udpiphdr *)outip; > oui = (struct udpiphdr *)&tip; > /* Easier to zero and put back things that are ok */ > /* line 961 */ memset((char *)ui, 0, sizeof(ui->ui_i)); > ui->ui_src = oui->ui_src; Looks like a missing definition of "struct udpiphdr". Regards, Stefan -- Micro$oft is not an answer. It is a question. The answer is 'no'. **= Email 3 ==========================** Date: Sat, 15 Nov 2003 01:34:03 +0100 (CET) From: Stefan Neis Subject: Re: traceroute build On Sat, 15 Nov 2003, John Poltorak wrote: > : No such file or directory Huh? I there some output missing that would tell us, which file is missing? > ./traceroute.c: In function `send_probe': > ./traceroute.c:961: dereferencing pointer to incomplete type (snipp) > ui = (struct udpiphdr *)outip; > oui = (struct udpiphdr *)&tip; > /* Easier to zero and put back things that are ok */ > /* line 961 */ memset((char *)ui, 0, sizeof(ui->ui_i)); > ui->ui_src = oui->ui_src; Looks like a missing definition of "struct udpiphdr". Regards, Stefan -- Micro$oft is not an answer. It is a question. The answer is 'no'. **= Email 4 ==========================** Date: Sat, 15 Nov 2003 09:01:13 -0800 From: "Dave and Natalie" Subject: Re: Automake problem On Fri, 14 Nov 2003 10:58:20 +0000, John Poltorak wrote: >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? It should of copied missing (and a couple of other files IIRC) to the fping directory. I'll try fping Dave **= Email 5 ==========================** Date: Sat, 15 Nov 2003 20:01:50 +0000 From: John Poltorak Subject: Re: traceroute build On Sat, Nov 15, 2003 at 01:34:03AM +0100, Stefan Neis wrote: > On Sat, 15 Nov 2003, John Poltorak wrote: > > > : No such file or directory > > Huh? I there some output missing that would tell us, which file is > missing? Nope! That is all it says. Could it be a Make or Shell problem? > > ./traceroute.c: In function `send_probe': > > ./traceroute.c:961: dereferencing pointer to incomplete type > (snipp) > > ui = (struct udpiphdr *)outip; > > oui = (struct udpiphdr *)&tip; > > /* Easier to zero and put back things that are ok */ > > /* line 961 */ memset((char *)ui, 0, sizeof(ui->ui_i)); > > ui->ui_src = oui->ui_src; > > Looks like a missing definition of "struct udpiphdr". Ever heard of such a struct? > > Regards, > Stefan > -- > Micro$oft is not an answer. It is a question. The answer is 'no'. > -- John **= Email 6 ==========================** Date: Sat, 15 Nov 2003 20:15:33 +0000 From: John Poltorak Subject: Use of depcomp In some old instructions I have for building a couple of apps there is a requirement to copy DEPCOMP to the working directory from the AUTOMAKE installation. Can this now be replaced by using:- ? automake --add-missing -- John **= Email 7 ==========================** Date: Sat, 15 Nov 2003 20:48:21 +0000 From: John Poltorak Subject: Makeinfo and sed.texi I've probably asked about this problem before but never got to the bottom of it, but I'd like to sort it out one and for all... Can anyone tell me what has gone wrong here when running make install as part of building sed:- ? Making install in doc make[1]: Entering directory `U:/unixos2/workdir/sed-3.02/doc' makeinfo -I . \ -o sed.info `test -f 'sed.texi' || echo './'`sed.texi ./version.texi:20: Misplaced {. ./version.texi:20: Misplaced }. ./version.texi:36: Unknown command `(#)PD'. sed.texi:99: warning: at sc argument all uppercase, thus no effect. sed.texi:244: warning: at sc argument all uppercase, thus no effect. sed.texi:282: warning: at sc argument all uppercase, thus no effect. sed.texi:427: warning: at sc argument all uppercase, thus no effect. sed.texi:594: warning: at sc argument all uppercase, thus no effect. sed.texi:713: warning: at sc argument all uppercase, thus no effect. sed.texi:705: warning: at sc argument all uppercase, thus no effect. sed.texi:429: warning: at sc argument all uppercase, thus no effect. sed.texi:281: warning: at sc argument all uppercase, thus no effect. sed.texi:243: warning: at sc argument all uppercase, thus no effect. makeinfo: Removing output file `sed.info' due to errors; use --force to preserve. make[1]: *** [sed.info] Error 2 make[1]: Leaving directory `U:/unixos2/workdir/sed-3.02/doc' make: *** [install-recursive] Error 1 This error causes SED not to get installed. Is this a problem with MAKEINFO? -- John **= Email 8 ==========================** Date: Sat, 15 Nov 2003 21:42:17 -0800 From: "Dave and Natalie" Subject: Re: Automake problem On Sat, 15 Nov 2003 22:01:25 +0000, John Poltorak wrote: >> I'll try fping > >Please do. It looks as though it should be really easy to build, but >automake seems to mess up the Makefile pretty badly. > >If anyone wants to give it a try and you have UX2BS installed you should >be able to add the following line to build.table:- > >fping;;ftp://ftp.mirrors.wiretapped.net/pub/security/network-mapping/fping/fping-2.4b2.tar.gz;;;;;. > >and run:- > >build fping > >It would be nice to figure out why it is failing. I don't have UX2BS installed right now (waiting for ftp.gnu.org to replace files) but I did get a correct makefile by running sh aclocal sh autoheader (gives warning about deprecated functions etc) automake -a (copies missing) sh autoconf Then running make. I get a lot of errors, about 60 lines worth starting with fping.c:418: conflicting types for `prog' fping.c:255: previous declaration of `prog' fping.c:418: `argv' undeclared here (not in a function) fping.c:418: warning: data definition has no type or storage class fping.c:419: initializer element is not constant After touching a source file I have to run make distclean sh configure or make dies here cd . && at AUTOHEADER at f:/usr/bin/sh: at AUTOHEADER at : not found make: *** [stamp-h.in] Error 127 Anyways don't have much time to play with fping now Dave **= Email 9 ==========================** Date: Sat, 15 Nov 2003 21:52:54 -0800 From: "Dave and Natalie" Subject: Re: magic On Sat, 15 Nov 2003 22:06:22 +0000, John Poltorak wrote: > > >What is the preferred location for MAGIC? > My Debian partition has it in /usr/share/misc >That is the reference file used by the FILE utility for identifying many >different file types. > >This is a very useful utility and am pleased to have found that the most >recent release, v4.06, builds with UX2BS straight out of the box without >the need for any patches. Does it work? I vaguely remember some previous builds having problems with LF vs CR-LF Dave Dave **= Email 10 ==========================** Date: Sat, 15 Nov 2003 22:01:25 +0000 From: John Poltorak Subject: Re: Automake problem On Sat, Nov 15, 2003 at 09:01:13AM -0800, Dave and Natalie wrote: > On Fri, 14 Nov 2003 10:58:20 +0000, John Poltorak wrote: > > >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? > > It should of copied missing (and a couple of other files IIRC) to the fping directory. > I'll try fping Please do. It looks as though it should be really easy to build, but automake seems to mess up the Makefile pretty badly. If anyone wants to give it a try and you have UX2BS installed you should be able to add the following line to build.table:- fping;;ftp://ftp.mirrors.wiretapped.net/pub/security/network-mapping/fping/fping-2.4b2.tar.gz;;;;;. and run:- build fping It would be nice to figure out why it is failing. > Dave -- John **= Email 11 ==========================** Date: Sat, 15 Nov 2003 22:06:22 +0000 From: John Poltorak Subject: magic What is the preferred location for MAGIC? That is the reference file used by the FILE utility for identifying many different file types. This is a very useful utility and am pleased to have found that the most recent release, v4.06, builds with UX2BS straight out of the box without the need for any patches. -- John **= Email 12 ==========================** Date: Sat, 15 Nov 2003 22:42:59 -0800 From: "Dave and Natalie" Subject: Re: Use of depcomp On Sat, 15 Nov 2003 20:15:33 +0000, John Poltorak wrote: > >In some old instructions I have for building a couple of apps there is a >requirement to copy DEPCOMP to the working directory from the AUTOMAKE >installation. > >Can this now be replaced by using:- ? > >automake --add-missing Well I just ran automake -a on blackbox-cvs and it installed ./install-sh ./mkinstalldirs ./config.guess ./config.sub ./depcomp and tried but couldn't find ltmain.sh Dave ps -a is short for --add-missing **= Email 13 ==========================** Date: Sat, 15 Nov 2003 23:21:47 +0000 From: John Poltorak Subject: expat There is a new port of EXPAT (v1.95.6) on Hobbes. Can anyone make any sense of the included README-expat which shows how it can be built from source? -- John