Vanilla List Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [VANILLA-LIST:2420] Help?



I made the change for the setpgrp() function, but, while I saw the
part for fork and vfork, I did not make the change there. Just for
grins, I'll go make that change and try a compile and see what happens.

....Ron

#include <std.disclaimer.h>
Ron Marosko, Jr., CCIE#4526
Senior Network Engineer, Flair Data Systems, Inc.
Email: rmarosko@colorado.flairdata.com
Web: http://www.flairdata.com
"...you shall know the truth, and the truth shall set you free." John 8:32


-----Original Message-----
From: sheldon [mailto:sheldon@visi.com]
Sent: Friday, July 02, 1999 9:43 PM
To: vanilla-list@us.netrek.org
Subject: RE: [VANILLA-LIST:2420] Help?


Was looking at the config.h and there is another define for vfork.
Did you run into that one as well?

Ok, I think I did this patch right...  It's been a while since I used diff.
:)
(worried my email is going to word wrap this...)

*** config.h.in.bak     Fri Jul  2 22:38:22 1999
--- config.h.in Fri Jul  2 22:39:24 1999
***************
*** 491,497 ****
  #undef gid_t
  #undef size_t
  #undef vfork
! #if (defined(sparc) && defined(sun))
    #define vfork fork
  #endif
  #undef NO_PATH_MAX
--- 491,497 ----
  #undef gid_t
  #undef size_t
  #undef vfork
! #if ((defined(i386) || defined(sparc)) && defined(sun))
    #define vfork fork
  #endif
  #undef NO_PATH_MAX
***************
*** 624,630 ****
  #if defined (hpux) || defined(__osf__)
  #define SETPGRP()       setsid()
  #else
! #if defined (linux) || defined(sgi) || (defined(sparc) && defined(sun))
  #define SETPGRP()       setpgrp()
  #else
  #define SETPGRP()       setpgrp (0, 0)
--- 624,630 ----
  #if defined (hpux) || defined(__osf__)
  #define SETPGRP()       setsid()
  #else
! #if defined (linux) || defined(sgi) ||  ((defined(i386) || defined(sparc))
&& defined(sun))
  #define SETPGRP()       setpgrp()
  #else
  #define SETPGRP()       setpgrp (0, 0)



> -----Original Message-----
> From: Ron Marosko [mailto:rmarosko@colorado.flairdata.com]
> Sent: Friday, July 02, 1999 9:59 PM
> To: 'vanilla-list@us.netrek.org'
> Subject: RE: [VANILLA-LIST:2420] Help?
>
>
> That indeed solved the problem! Many thanks for your help, Steve!!
>
> ....Ron
>
> #include <std.disclaimer.h>
> Ron Marosko, Jr., CCIE#4526
> Senior Network Engineer, Flair Data Systems, Inc.
> Email: rmarosko@colorado.flairdata.com
> Web: http://www.flairdata.com
> "...you shall know the truth, and the truth shall set you
> free." John 8:32
>
>
> -----Original Message-----
> From: sheldon [mailto:sheldon@visi.com]
> Sent: Thursday, July 01, 1999 9:44 PM
> To: vanilla-list@us.netrek.org
> Subject: RE: [VANILLA-LIST:2420] Help?
>
>
> > From: Ron Marosko [mailto:rmarosko@colorado.flairdata.com]
> > gcc -g    -I../ntserv   -c  update.c
> > update.c: In function `BecomeDaemon':
> > update.c:432: too many arguments to function `setpgrp'
> > *** Error code 1
> > make: Fatal error: Command failed for target `update.o'
> > Current working directory /home/rmarosko/Vanilla-2.9pl2/tools
> >
> > Yep, this is the nice fundamental part of updated.
> > Compiler is gcc 2.8.1 on Solaris 7 for Intel. Am I really
> > trying something new, or has someone seen this problem before?
>
> If you go in and look at config.h you see this line:
>
> #if defined (linux) || defined(sgi) || (defined(sparc) &&
> defined(sun))
> #define SETPGRP()       setpgrp()
> #else
>
> Could you try changing that last part to:
> ((defined(sparc) || defined(i386)) && defined(sun))
>
> If that works we'll need to patch config.h.in.
>
> Actually I did run into this once last year, but I guess I
> must not have
> sent in a patch and I forgot what I did.
>
> Steve
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: vanilla-list-unsubscribe@us.netrek.org
> For additional commands, e-mail: vanilla-list-help@us.netrek.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: vanilla-list-unsubscribe@us.netrek.org
> For additional commands, e-mail: vanilla-list-help@us.netrek.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: vanilla-list-unsubscribe@us.netrek.org
For additional commands, e-mail: vanilla-list-help@us.netrek.org