The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] A patch for compiling vtserver under linux ...
@ 2005-08-30 20:44 asbesto
  2005-08-31  7:47 ` Warren Toomey
  0 siblings, 1 reply; 3+ messages in thread
From: asbesto @ 2005-08-30 20:44 UTC (permalink / raw)


Compiling vtserver gave me an error:

asbesto at gemini ~/pdp11/vtserver $ cc vtserver.c -o vtserver
/tmp/ccUTkHRZ.o(.text+0x76e): In function \x04o_command':
: undefined reference to \x05rrno'
/tmp/ccUTkHRZ.o(.text+0xad6): In function \x12ead_config':
: undefined reference to \x05rrno'
/tmp/ccUTkHRZ.o(.text+0xb63): In function \x12ead_config':
: undefined reference to \x05rrno'
/tmp/ccUTkHRZ.o(.text+0xd10): In function \x13etraw':
: undefined reference to \x05rrno'
/tmp/ccUTkHRZ.o(.text+0xdc1): In function \x13etraw':
: undefined reference to \x05rrno'
/tmp/ccUTkHRZ.o(.text+0xe7e): more undefined references to \x05rrno' follow
collect2: ld returned 1 exit status
asbesto at gemini ~/pdp11/vtserver $ 

This due to the way errno is now used; errno.h has to be 
included. 

Here's a patch to compile vtserver 2.3a-20010404 under linux:


-------begin-patch-snip-here------
--- vtserver.c	2001-04-04 02:57:38.000000000 +0000
+++ vtserver-linux.c	2005-08-30 20:40:32.000000000 +0000
@@ -74,7 +74,23 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
-char *strerror(int errno);
+
+#ifdef linux
+/* asbesto 30-8-2005 - asbesto at freaknet.org
+   linux need errno.h included. :)
+*/
+#include <errno.h>
+
+/* asbesto 30-8-2005 - asbesto at freaknet.org
+   as errno.h was included, the following line need 
+   to be commented:
+   char *strerror(int errno); 
+*/
+#else
+
+ char *strerror(int errno); 
+ 
+#endif
 
 /* Commands sent in both directions */
 struct vtcmd {

---------------------end-patch-snap-here---------

maybe this can be included in ftp://minnie.tuhs.org/pub/PDP-11/Vtserver
and maybe the version of vtserver has to be changed :)

p.s. i'm not so good in C, i quit programming many years ago, i
hope this can work ok  :)))))

hope all this can help.

-- 
[ asbesto : IW9HGS : freaknet medialab : radiocybernet : poetry ]
[ http://freaknet.org/asbesto http://papuasia.org/radiocybernet ]
[ http://www.emergelab.org :: NON SCRIVERMI USANDO LE ACCENTATE ]
[ *I DELETE* EMAIL > 100K, ATTACHMENTS, HTML, M$-WORD DOC, SPAM ]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20050830/215d559d/attachment.sig>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [TUHS] A patch for compiling vtserver under linux ...
  2005-08-30 20:44 [TUHS] A patch for compiling vtserver under linux asbesto
@ 2005-08-31  7:47 ` Warren Toomey
  2005-08-31 14:45   ` M. Warner Losh
  0 siblings, 1 reply; 3+ messages in thread
From: Warren Toomey @ 2005-08-31  7:47 UTC (permalink / raw)


On Tue, Aug 30, 2005 at 08:44:24PM +0000, asbesto wrote:
> Here's a patch to compile vtserver 2.3a-20010404 under linux:

	[ patch omitted]

Thanks Asbesto and also congratulations on getting your system to
boot.  Fred van Kempen has taken over maintenance of vtserver, but
I don't have a working e-mail address for him. Does anybody know
how to contact him?

Thanks,
	Warren



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [TUHS] A patch for compiling vtserver under linux ...
  2005-08-31  7:47 ` Warren Toomey
@ 2005-08-31 14:45   ` M. Warner Losh
  0 siblings, 0 replies; 3+ messages in thread
From: M. Warner Losh @ 2005-08-31 14:45 UTC (permalink / raw)


In message: <20050831074730.GA21204 at minnie.tuhs.org>
            Warren Toomey <wkt at tuhs.org> writes:
: On Tue, Aug 30, 2005 at 08:44:24PM +0000, asbesto wrote:
: > Here's a patch to compile vtserver 2.3a-20010404 under linux:
: 
: 	[ patch omitted]
: 
: Thanks Asbesto and also congratulations on getting your system to
: boot.  Fred van Kempen has taken over maintenance of vtserver, but
: I don't have a working e-mail address for him. Does anybody know
: how to contact him?

I'm surprised the patch is even necessary.  vtserver builds on my
redhad development environment unchanged...

Warner



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-31 14:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-30 20:44 [TUHS] A patch for compiling vtserver under linux asbesto
2005-08-31  7:47 ` Warren Toomey
2005-08-31 14:45   ` M. Warner Losh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).