🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Mark Bixby Mon, 22 Apr 1996 00:00
can't build INN on HPUX 10.10 :-(
#6776
Author: Mark Bixby
Date: Mon, 22 Apr 1996 00:00
15 lines
1231 bytes
I just upgraded from HPUX 9.0 to 10.10, and now I can't recompile INN.  It has
trouble with iovec from sys/uio.h.

Has anybody successfully built INN on HPUX 10.10?

Fortunately my INN binaries built on HPUX 9.0 continue to function.
-- 
Mark Bixby                      E-mail: markb@cccd.edu
Coast Community College Dist.   Web: http://www.cccd.edu/~markb/
District Information Services   1370 Adams Ave., Costa Mesa, CA, USA 92626-5429
Technical Support               +1 714 432-5865 x7064
"You can tune a file system, but you can't tune a fish." - tunefs(1M)


Re: can't build INN on HPUX 10.10 :-(
#6799
Author: Daryl Gaumer
Date: Tue, 23 Apr 1996 00:00
22 lines
1557 bytes
Mark Bixby (markb@spock.dis.cccd.edu) wrote:
: I just upgraded from HPUX 9.0 to 10.10, and now I can't recompile INN.  It has
: trouble with iovec from sys/uio.h.

: Has anybody successfully built INN on HPUX 10.10?

: Fortunately my INN binaries built on HPUX 9.0 continue to function.
: -- 
: Mark Bixby                      E-mail: markb@cccd.edu
: Coast Community College Dist.   Web: http://www.cccd.edu/~markb/
: District Information Services   1370 Adams Ave., Costa Mesa, CA, USA 92626-5429
: Technical Support               +1 714 432-5865 x7064
: "You can tune a file system, but you can't tune a fish." - tunefs(1M)

What was the compiler output?

Is your compiler 10.x based?  Do a "/usr/sbin/swlist -l product" on your HPUX
machine (you don't need to be root -- swagentd needs to be running on the box)

-- darylg

Re: can't build INN on HPUX 10.10 (solved)
#6916
Author: Mark D. Bixby
Date: Thu, 25 Apr 1996 00:00
24 lines
1738 bytes
I have successfully compiled inn1.4-secsomething under HPUX 10.10.  I 
turned off some XPG4 stuff that was causing <sys/uio.h> to be 
incompatible in expire/expireover.c and lib/xwritev.c:

	#undef _XPG4_EXTENDED
	#include <sys/uio.h>

Additionally, the "links" shell script that comes with nntplink was 
broken when the HPUX 10.10 version of /bin/sh changed from the Bourne 
shell to the POSIX shell.  I modified links to be run under the old 
Bourne shell at /usr/old/bin/sh, and then it stopped complaining.  I 
didn't spend the time to analyze what "links" was doing that was 
incompatible with the POSIX shell.

Because of the Bourne/POSIX issue with "links", I also pre-emptively 
changed all INN site/ scripts to /usr/old/bin/sh too.

INN and nntplink have both been running OK here under HPUX 10.10 for the 
past 48 hours.
-- 
Mark D. Bixby
Internet e-mail: markb@cccd.edu

Re: can't build INN on HPUX 10.10 (solved)
#7098
Author: David W. Cooley
Date: Wed, 01 May 1996 00:00
24 lines
1816 bytes
The root of this problem is the fact the HP changed the type of iov_base in the
stucture iovec (<sys/uio.h>) from caddr_t to void * in HP-UX 10.10.  This
prevents one from doing any arithmatic operations on the pointers.

I just got of the horn with HP support and the offical response was essentially
tuff luck!  These are interfaces to the kernal and HP reserves the right to
change them at any time and makes not claim of compatibility with prior
versions.  Essentailly these are as-is for use by programmers
at-their-own-risk.

I tried to point out to the support specialist that I had a job to get done and
if HP's offical corporate position was to offer no help with this problem, I
would look for other non-HP solutions.  The response was "good luck". 

Mark's solution works in 10.10 but may break at 10.20.  I would like to find out
the implecations of the XPG4_EXTENDED conditional.  Unfortunately, my 10.10 doc
set has yet to arrive, and HP support will only offer that it fixes some
problems with the operating system.  Interestingly enough, the online manual
page for writev (stamped HP-UX 10.10) lists iov_base as caddr_t.

-Dave Cooley

Re: can't build INN on HPUX 10.10 (solved)
#7193
Author: Rich Salz
Date: Thu, 02 May 1996 00:00
15 lines
1140 bytes
In <4m8000$1d2@host-04.colby.edu> dwcooley@ws-00.colby.edu (David W. Cooley) writes:
>The root of this problem is the fact the HP changed the type of iov_base in the
>stucture iovec (<sys/uio.h>) from caddr_t to void * in HP-UX 10.10.

This is sort-of an INN bug: it shouldn't depend on caddr_t not being
void since you can write portable code to work around this.
Change all lines that look
	foo->iov_base += x;
to look like this:
	foo->iov_base = (char *)foo->iov_base + x;

	/r$

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