*BSD News Article 69980


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.hawaii.edu!ames!agate!howland.reston.ans.net!newsfeed.internetmci.com!info.ucla.edu!news.bc.net!arclight.uoregon.edu!dispatch.news.demon.net!demon!maclincs.demon.co.uk!paul
From: Paul Carter <paul@maclincs.demon.co.uk>
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Larry Walls patch2 on "MacBSD"
Date: Sun, 02 Jun 1996 08:56:26 GMT
Organization: MacLincs
Lines: 86
Distribution: world
Message-ID: <833705786.10329.0@maclincs.demon.co.uk>
NNTP-Posting-Host: maclincs.demon.co.uk
X-NNTP-Posting-Host: maclincs.demon.co.uk
X-Newsreader: Nuntius 2.0.3_68K
X-XXMessage-ID: <ADD715A0EE01C5B9@maclincs.demon.co.uk>
X-XXDate: Sun, 2 Jun 1996 08:55:44 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Has anyone used Larry Walls patch program with NetBSD m68k ?

I want to use cap and took the advise of the notes and have been trying
to compile patch for the last few days... H E L P...please.

When using "sh Configure" I do not know the real answer to:-

On some systems the default C compiler will not resolve multiple global
references that happen to have the same name.  On some such systems the
"Mcc" command may be used to force these to be resolved.  On other systems
a "cc -M" command is required.  What command will force resolution on
this system? [cc]

I cannot find any reference to "multiple global references" in the man
pages
so I am entering "gcc"

is this the correct command?

Next...

running "make" I get

hill# make
gcc -c -O patch.c
In file included from patch.c:71:
common.h:137: conflicting types for `sprintf'
/usr/include/stdio.h:250: previous declaration of `sprintf'
common.h:139: conflicting types for `lseek'
/usr/include/sys/types.h:90: previous declaration of `lseek'
*** Error code 1

Stop.

What is wrong?

I have trawled the web and found a referece to the same problems but on
BSDI as follows:-

                         ****start quote***

>, but after jury-rigging that, I still had
>problems. The script suggested that the default compilers of some systems
>couldn't handle multiple global references, but it couldn't find Mcc (nor
>could I), and the -M option to /usr/bin/cc and /usr/bin/gcc isn't the
>correct flag to force it to handle those.

Larry's configure script goes to great lengths to seek out trouble that
just doesn't exist on proper compilers. The supplied cc on BSDI will do
just about anything you need, and apparantly, you've hit a bug in the
configure script here. As I said, I see no need for building patch at all.

>Sure enough, when I went to make patch, I was told:
>
> common.h:137: conflicting types for `sprintf'
> /usr/include/stdio.h:261: previous declaration of `sprintf'
> common.h:139: conflicting types for `lseek'
> /usr/include/sys/types.h:84: previous declaration of `lseek'

This is normal. BSDI has correct prototypes for things, and patch tries to
solve problems for elderly OS's here by defining those prototypes. You can
just remove 'm.

                              *****end quote*****

Can someone please tell me in detail from where i "just remove 'm" or
what I need to do.


Thanks in advance
a reply by mail would be most help.

Paul Carter

System Mac SE/30
GENERIC-6
Comp11
etc11
base11
man11

*******************************************************************
* Paul Carter    Administrator MacLincs BBS    +44 (0)1427 718950 *
* P.O.Box 10      Saxilby       Lincoln      LN1 2TT      England *
* OneNet-Paul Carter,MacLincs  internet-paul@maclincs.demon.co.uk *
*******************************************************************