Thread View: news.software.nn
2 messages
2 total messages
Started by Craig Dewick
Fri, 20 Sep 1996 00:00
nn 6.5.1 requires memmove() under SunOS 4.1.4 on 4/380
Author: Craig Dewick
Date: Fri, 20 Sep 1996 00:00
Date: Fri, 20 Sep 1996 00:00
36 lines
2013 bytes
2013 bytes
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.
Regards,
Craig.
--
Craig Dewick. Send email to 'cdewick@jedi.apana.org.au'
Point a web browser at 'http://jedi.apana.org.au/~cdewick' to
access my collection of Sun information and links to other places.
Re: nn 6.5.1 requires memmove() under SunOS 4.1.4 on 4/380
Author: 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> *
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads