Merit Network
Can't find what you're looking for? Search the Mail Archives.
  About Merit   Services   Network   Resources & Support   Network Research   News   Events   Home

Discussion Communities: Merit Network Email List Archives

IRRd-Discuss


Date Prev | Date Next | Date Index | Thread Index | Author Index | Historical

irrd 2.0 build problems on NetBSD 1.4.2

  • From: Ed Ravin
  • Date: Tue Aug 01 17:10:01 2000

I ran into a handful of configuration errors trying to build the new IRRd
release on NetBSD 1.4.2.  The fixes were:

1. add a couple of include files to call_pipeline.c to prevent gcc from
choking when it hit <arpa/inet.h>

2. add "-lcrypt" to link line in "configure" so irr_submit could link

3. remove /usr/local/lib and /usr/local/include from configure - this
probably wasn't causing any problems, but it's hurt me in the past
since I build in a cross-platform environment where I don't necessarily
want the stuff in /usr/local to get used for the build.

By the way, has the timer bug on non-threaded platforms (such as NetBSD)
been fixed yet?

src# rcsdiff -u configure
===================================================================
RCS file: RCS/configure,v
retrieving revision 1.1
diff -u -r1.1 configure
--- configure   2000/08/01 19:22:58     1.1
+++ configure   2000/08/01 20:46:02
@@ -1060,6 +1060,7 @@
     ;;
     *netbsd* )
         KERNEL_OBJS="bsd.o"
+       LDFLAGS="$LDFLAGS -lcrypt"
     ;;
     *openbsd* )
        cat >> confdefs.h <<\EOF
@@ -1588,14 +1589,15 @@



-
-
-if test -d /usr/local/include; then
-    CPPFLAGS="$CPPFLAGS -I/usr/local/include"
-fi
-if test -d /usr/local/lib; then
-    LDFLAGS="$LDFLAGS -L/usr/local/lib"
-fi
+# ouch! what if you're in a cross-platform environment?
+## ## ## ## ##
+## if test -d /usr/local/include; then
+##     CPPFLAGS="$CPPFLAGS -I/usr/local/include"
+## fi
+## if test -d /usr/local/lib; then
+##     LDFLAGS="$LDFLAGS -L/usr/local/lib"
+## fi
+## ## ## ## ##

 # Extract the first word of "flex", so it can be a program name with args.
 set dummy flex; ac_word=$2
============================================================================
src# cd programs/irr_submit
irr_submit/ # rcsdiff -u call_pipeline.c
===================================================================
RCS file: RCS/call_pipeline.c,v
retrieving revision 1.1
diff -u -r1.1 call_pipeline.c
--- call_pipeline.c     2000/08/01 19:40:29     1.1
+++ call_pipeline.c     2000/08/01 20:33:23
@@ -4,6 +4,8 @@

 #include <stdlib.h>
 #include <sys/socket.h>
+#include <sys/types.h>
+#include <netinet/in.h>
 #include <arpa/inet.h>
 #include <unistd.h>
 #include <errno.h>



[an error occurred while processing this directive]