Article View: news.software.nn
Article #8005Re: nn 6.5.1 requires memmove() under SunOS 4.1.4 on 4/380
From: Michael T Pins
Date: Sat, 21 Sep 1996 00:00
Date: Sat, 21 Sep 1996 00:00
48 lines
2752 bytes
2752 bytes
cdewick@jedi.apana.org.au (Craig Dewick) writes:
>I'm trying to build nn 6.5.1 on this machine, which is a Sun 4/380 running
>SunOS 4.1.4 (aka Solaris 1.1.2). I'm using gcc 2.6.3 as my compiler.
>When the build process tries to link all the object files together to make
>the new 'nn' binary, the linker complains about 'memmove' not being
>defined.
>SunOS (at least 4.1.x) does not have 'memmove', so I'm wondering how I can
>work around this? It's only used in one place, which is line 403 of
>'libnov.c', in the de_digest() function. This section of code is being
>compiled in because I have defined DO_NOV_DIGEST in the main configuration
>file.
>There aren't any #ifdef's in the code to suggest that there should be a
>way to use an alternative to memmove by configuring it differently, so I'm
>presuming that the author made the assumption that 'memmove' was common
>across all Unix platforms.
>Have any other Sun users successfully built this new version of nn on
>machines running SunOS 4.1.x with DO_NOV_DIGEST defined? I'd be interested
>to learn about how you worked around the problem I've described above...
>BTW, with DO_NOV_DIGEST undefined nn builds without any problems.
You can't be trying to compile the nn-6.5.1 code if this is the case.
libnov.c, starting at line 403, reads:
#ifndef NO_MEMMOVE
memmove(ap->a_num + 1, ap->a_num,
ap->a_bytes - ap->a_num);
#else
bcopy(ap->a_num, ap->a_num + 1,
ap->a_bytes - ap->a_num);
#endif /* NO_MEMMOVE */
if yours doesn't, please 1) tell me where you got this code, and
2) get the real code from ftp.isca.uiowa.edu
--
**************************************************************************
* Michael T Pins | mtpins@isca.uiowa.edu *
* keeper of the nn sources | mtpins@winternet.com *
* ftp.isca.uiowa.edu | #include <std.disclaimer> *
Technical Details
Message-ID:
<5204tb$4bh@server05.icaen.uiowa.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sys.sun.admin.mbox.zip!not-for-mailReferences:
<51sevj$3c4@jedi.apana.org.au>Show Full Headers
Complete Article Headers
Message-ID: <5204tb$4bh@server05.icaen.uiowa.edu> Subject: Re: nn 6.5.1 requires memmove() under SunOS 4.1.4 on 4/380 Date: Sat, 21 Sep 1996 00:00:00 +0000 From: mtpins@icaen.uiowa.edu (Michael T Pins) References: <51sevj$3c4@jedi.apana.org.au> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sys.sun.admin.mbox.zip!not-for-mail X-Deja-AN: 184357431 Organization: Iowa Computer Aided Engineering Network, University of Iowa Newsgroups: news.software.nn,comp.sys.sun.admin,comp.sys.sun.apps