Subject: Re: ircii problems
To: tcjam <tcjam@voicenet.com>
From: Josh Hope <otaku@redneck.hick.com>
List: port-mac68k
Date: 08/27/1997 14:29:57
Well, I'm running current as of June 1, 1997. Along with GENERICSBC-26, as
you mentioned...my comp binaries are from the same distribution. You see,
I've gotten this SAME version of ircii to compile on the SAME computer,
with the SAME binaries...and there wasn't one problem whatsoever...

But, after re-installing, there was a problem...this is REAL strange...the
more I think about it...

Doing a grep on strlen yielded the following:

[otaku@otaku.users.netset.com]% grep strlen source/dcc.c
        len = strlen(command);
        if ((int) strlen(FileBuf) >= 7 && 0 == strcmp(FileBuf +
strlen(FileBuf) - 7, "/passwd"))
                int     len = strlen(s);
                tmp[strlen(tmp) - 1]='\0';
                                msg = (char *) new_malloc(strlen(tmp) +
20);
                int     len = strlen(s);
                tmp[strlen(tmp) - 1] = '\0';
                int     len = strlen(s);
        send(Client->write, tmp, strlen(tmp), 0);
        Client->bytes_sent += strlen(tmp);
        if ((user = next_arg(args, &args)) && my_strnicmp(user, "-chat",
strlen(user)) == 0)

That's it...

Thanks for helping :)

Josh

On Wed, 27 Aug 1997, tcjam wrote:

> I have been dabbling in C recently and while working on a project I tried
> to use this line in my code and I got the same exact warning.
> 'strcpy(length2, strlen(cbuff));'  Now I don't know much about C or why
> exactly gcc is puking at this instruction but I'ld look for 'strlen' in
> the source 'dcc.c'. If anyone can tell me how I could solve this I'm sure
> two people would be a little happier :)
> 
> BTW, what version of NetBSD are you running Josh?
> 
> Bye.
> 
> P.S. It might interest someone that Josh and I are using the same kernel.
> (GENERICSBC-26)
> 
> 
> On Tue, 26 Aug 1997, Josh Hope wrote:
> 
> > I got NetBSD to finally boot, by totally re-initializing the drives...it
> > must've been some kinda disk corruption...
> > 
> > Anyways, while trying to compile ircii2.9alpha6 (something I've gotten to
> > compile on this machine at least 4-5 times, it worked flawlessly every
> > single time), I get the following error:
> > 
> > gcc -g -O2 -DHAVE_CONFIG_H  -I../include -c dcc.c
> > dcc.c: In function `dcc_raw_connect':
> > dcc.c:583: warning: assignment makes pointer from integer without a cast
> > dcc.c:590: dereferencing pointer to incomplete type
> > dcc.c: In function `dcc_talk':
> > dcc.c:664: warning: assignment makes pointer from integer without a cast
> > dcc.c:670: dereferencing pointer to incomplete type
> > dcc.c: In function `dcc_summon':
> > dcc.c:750: warning: assignment makes pointer from integer without a cast
> > dcc.c:756: dereferencing pointer to incomplete type
> > dcc.c: In function `process_incoming_listen':
> > dcc.c:1232: warning: assignment makes pointer from integer without a cast
> > dcc.c:1233: dereferencing pointer to incomplete type
> > *** Error code 1
> > 
> > Stop.
> > *** Error code 1
> > 
> > Stop.
> > 
> > Now, before this happened, I was getting an error saying the compiler
> > couldn't find /usr/lib/machine/intr.h (not quite sure on the path), so I
> > went to nebsd.org and found intr.h and stuck it in there.
> > 
> > The only reason why I'm posting this is because it just "stopped" working
> > now :) I'm using the base and comp packages from the June 1st build from
> > netbsd.org. Anything newer is way too out of sync with my kernel (I
> > think). It has that new swapctl stuff in it, doesn't it?
> > 
> > BTW, my kernel's a GENERICSBC #26...anything newer has that freeze at
> > "sbc0 at obio0: options=1<PDMA>" line
> > 
> > I'd appreciate any help in getting ircii to compile...thanks!
> > 
> > Josh
> > 
> > 
> 
>                                  \||||/
>                                   o  o
> =============================oOOo==()==oOOo==============================
> || "Please explain to me the scientific          |  tcjam@voicenet.com ||
> ||   nature of the whammy." -Scully              ______________________||
> ||                                                                     ||
> || "Foolproof systems don't take into account,                         ||
> ||  the ingenuity of fools" -Unknown 			               ||
> ||                                                                     ||
> ||   PGP key can be obtained from:                                     ||
> ||      http://www.voicenet.com/~tcjam/home/keys.html                  ||
> =========================================================================
> 
> 
>