Index: fact/BIASctrl/BIASctrl.cc
===================================================================
--- fact/BIASctrl/BIASctrl.cc	(revision 10905)
+++ fact/BIASctrl/BIASctrl.cc	(revision 11205)
@@ -29,5 +29,6 @@
   siginterrupt(SIGTERM, true);
 
-  system("clear");                   
+  if (system("clear") == -1) printf("Error with system() call\n");
+                   
   printf("\n*** BIASctrl (compiled %s, %s) ***\n\n", __DATE__, __TIME__);
    
Index: fact/BIASctrl/Crate.cc
===================================================================
--- fact/BIASctrl/Crate.cc	(revision 10905)
+++ fact/BIASctrl/Crate.cc	(revision 11205)
@@ -134,5 +134,5 @@
 	FD_ZERO(&SelectDescriptor);   FD_SET(fDescriptor, &SelectDescriptor);
 	if (select(fDescriptor+1, &SelectDescriptor, NULL, NULL, &WaitTime)==-1) {
-	  if (errno = EINTR) goto ExitCommunicate;  // in case program is exiting
+	  if (errno == EINTR) goto ExitCommunicate;  // in case program is exiting
       m->Message(m->FATAL, "Error with select() (%s)", strerror(errno));
 	}
Index: fact/BIASctrl/History.txt
===================================================================
--- fact/BIASctrl/History.txt	(revision 10905)
+++ fact/BIASctrl/History.txt	(revision 11205)
@@ -12,2 +12,3 @@
 			Added 'crate' command. Changed signaling of program exit.
 3/6/2011	Fixed bug in channel addressing from board numbers above 7.
+28/6/2011	Adapted for compilation under ubuntu
Index: fact/BIASctrl/Makefile
===================================================================
--- fact/BIASctrl/Makefile	(revision 10905)
+++ fact/BIASctrl/Makefile	(revision 11205)
@@ -6,5 +6,5 @@
 
 CPPFLAGS = -O3 -Wall $(INCDIRS)
-LDLIBS = -L/usr/lib/termcap -lstdc++ -lpthread -lfl -lreadline -ltermcap $(DIMDIR)/linux/libdim.a
+LDLIBS = -L/usr/lib/termcap -lstdc++ -lpthread -lreadline -ltermcap $(DIMDIR)/linux/libdim.a
 
 BIASctrl: $(OBJECTS)
Index: fact/BIASctrl/User.cc
===================================================================
--- fact/BIASctrl/User.cc	(revision 10905)
+++ fact/BIASctrl/User.cc	(revision 11205)
@@ -114,5 +114,7 @@
   // Shell command
   if(Command[0]=='.') {
-    system(Command.c_str()+1);
+    if (system(Command.c_str()+1) == 1) {
+	  PrintMessage("Error with system() call\n");
+	}
     return;
   }
@@ -620,5 +622,5 @@
 bool User::ConvertToRange(string String, struct User::Range &R) {
 
-  int N, M;
+  int N=0, M=0; // Init to avoid compiler warning
 
   // Full range
