[IRCServices Coding] Solution: gmake: *** [actions.o] Error 1

CyberDems (WWIRC) cyberdems at wwirc.za.org
Wed Nov 20 17:55:42 PST 2002


I found a solution..
The following was the default from defs.h, and wouldn't let me compile:
/* socklen_t for systems without it. */
#if !HAVE_SOCKLEN_T
typedef int socklen_t;
#endif

Then....
I added // to typedef, in defs.h, and it looked like this:
/* socklen_t for systems without it. */
#if !HAVE_SOCKLEN_T
// typedef int socklen_t;
#endif

all of a sudden, it worked ;)
Thanks for the gr8 services,
CyberDems
irc.wwirc.za.org


----- Original Message -----
From: "CyberDems (WWIRC)" <cyberdems at wwirc.za.org>
To: <ircservices-coding at ircservices.za.net>
Sent: Thursday, November 21, 2002 3:28 AM
Subject: [IRCServices Coding] gmake: *** [actions.o] Error 1


> Hi, I've reported this previously, to no avail. I was trying to compile
> 5.0.3, it gave me an identical error to what 5.0.4 is now giving me when i
> try gmake, after /configure. What could this possibly be, and would there
be
> a way to fix it / will 5.0.5 have the fix?
> The OS is FreeBSD 4.7-PRERELEASE (SHELL).
> Here's what happened:
>
> All done!  Now edit defs.h as needed, and run "make" (or possibly "gmake")
> to compile Services.  See the README and FAQ if you have any problems.
>
> USERNAME at shell:/usr/home/USERNAME/ircservices-5.0.4$ make
> make: Permission denied
> USERNAME at shell:/usr/home/USERNAME/ircservices-5.0.4$ gmake
> gmake: getcwd: : Permission denied
> sh version.sh
> gcc  -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes -c
version.c -o
> version.o
> gcc  -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes -c
actions.c -o
> actions.o
> In file included from sockets.h:13,
>                  from services.h:97,
>                  from actions.c:10:
> /usr/include/sys/socket.h:54: conflicting types for `socklen_t'
> defs.h:169: previous declaration of `socklen_t'
> gmake: *** [actions.o] Error 1
> USERNAME at shell:/usr/home/USERNAME/ircservices-5.0.4$
>
> Thanks again,
> CyberDems
> irc.wwirc.za.org
>
> ------------------------------------------------------------------
> To unsubscribe or change your subscription options, visit:
> http://www.ircservices.za.net/mailman/listinfo/ircservices-coding