Building oss from mercurial

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: cesium, dev, kodachi, hannu

Building oss from mercurial

Postby adamk » Thu Jan 01, 2009 1:05 am

I'm trying to build OSS, pulled via mercurial this evening, on an AMD64 installation. It dies with:

Code: Select all
osspartysh
cc -c -O2 -fno-strict-aliasing -pipe  -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include  -I../../kernel/OS/FreeBSD  -I../../kernel/nonfree/include -I../..  -I/usr/src/uts/amd64 osspartysh.c -o ./osspartysh.o
osspartysh.c:35:17: error: pty.h: No such file or directory
*** Error code 1

Stop in /home/adamk/oss/cmd/osspartysh.
*** Error code 1


Any way to get this working?

Adam
adamk
Member
 
Posts: 78
Joined: Fri Jun 11, 2004 1:50 pm

Postby cesium » Thu Jan 01, 2009 2:20 am

Try this patch:
Code: Select all
--- a/cmd/osspartysh/osspartysh.c       Wed Dec 31 00:07:02 2008 +0200
+++ b/cmd/osspartysh/osspartysh.c       Thu Jan 01 04:40:19 2009 +0200
@@ -32,7 +32,11 @@
#include <unistd.h>
#include <termios.h>
#include <fcntl.h>
+#ifdef __FreeBSD__
+#include <libutil.h>
+#else
#include <pty.h>
+#endif
#include <utmp.h>
#include <errno.h>

cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby adamk » Thu Jan 01, 2009 12:59 pm

That worked! Thanks.

Adam
adamk
Member
 
Posts: 78
Joined: Fri Jun 11, 2004 1:50 pm


Return to BSD

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest