*BSD News Article 21491


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!think.com!trystro!czos9!chuck
From: chuck@czos9.trystero.com (Charles N. Owens)
Newsgroups: comp.os.386bsd.questions
Subject: [386bsd] problem with patch50000 (crypt.c)
Keywords: 386bsd crypt patch
Message-ID: <6@czos9.trystero.com>
Date: Thu, 23 Sep 93 18:46:50 EDT
Distribution: world
Lines: 49

Hi all,
   First I would like to say that I am VERY pleased with how 386bsd 0.1 +
pk 0.2.4 performs.  I administer an installation where it is being used VERY
heavily and it works like a champ.  The new stuff may be great, but, as others
have recently indicated, I'm going to wait until things settly down a bit
before doing any upgradind...

Okay, here's my problem:  I installed patch50000 and recompiled the associated
utilities, but some of them wouldn't link.  Ftpd, passwd, and su compiled and
linked fine, but login, rlogin, and lock err'd out with the following message
(approximately):

"Unknown symbol _optarg referenced in text segment" or something like that.

Anyhow, looking at the code I see a line     extern char *getopt;    .
Poking around, I find that optarg is supposed to be declared in the file
stdlib.h, where the declaration appears something like this:

#if !defined<_ANSI_SOURCE> && !defined<_POSIX_SOURCE>
  .
  .
  .
   char *optarg;
  .
  .
  .
#endif

So, it seems to me that either _ANSI_SOURCE or _POSIX_SOURCE (or both) have
been defined.  Why would this be?  How can I get around it?

At one point I successfully had patch50000 installed, but had to back it out
for various reasons.  The hard drive is very small, so I've been forced to
move things around a bit, so some of the source tree might be a bit munged...
Something's definately different, because I had no trouble before, but now
I do.

Any ideas?  All help is appreciated.

If possible, please send replies via Email (and here if you like).

Thanks,
-- 
-----------------------------------------------------------------------------
Charles N. Owens                    INTERNET:  chuck@czos9.trystero.com
                                      USENET:  ...czos9!chuck
                                         or    ...trystro!czos9!chuck
-----------------------------------------------------------------------------
              czos9 in Quincy, MA:  An OS9 Coco 3 UUCP Site