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

Re: Problems compiling irrd2.0a-Aug1-2000 on FreeBSD V4.1

  • From: Paul Libauer
  • Date: Sun Aug 20 23:31:51 2000

Jerry,

Let me know whether the fix below is satisfactory - irrd seems to be
running OK with it;



The first fix was made by adding a library path to the
../src/programs/IRRd/Makefile;


#diff Makefile  <path>/src/programs/IRRd/Makefile 
11c11
< IRRD_LIBS = /compat/linux/usr/lib/libc.a
---
> IRRD_LIBS =

The library above comes from the linux_devtools-6.1 package.




The second problem occured with the order of include files in
../src/programs/irr_submit/call_pipeline.c. The original file looked like;

/*
 * $Id: call_pipeline.c,v 1.9 2000/08/01 23:36:15 labovit Exp $
 */

#include <stdlib.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/types.h>  // added for netbsd builds - chl
#include <netinet/in.h> // added for netbsd builds - chl
...




which was changed to,




/*
 * $Id: call_pipeline.c,v 1.9 2000/08/01 23:36:15 labovit Exp $
 */

#include <stdlib.h>
#include <sys/types.h>  // added for netbsd builds - chl
#include <netinet/in.h> // added for netbsd builds - chl
#include <sys/socket.h>
#include <arpa/inet.h>



Could you let me know if the first of the above changes is suitable.

Regards,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Paul Libauer (Network Engineer)		paull@telstra.net
NTG Core Platforms			
Telstra Internet (Big Pond Direct)	

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On Fri, 18 Aug 2000, Gerald Andrew Winters wrote:

> Date: Fri, 18 Aug 2000 09:44:02 -0400 (EDT)
> From: Gerald Andrew Winters <gerald@merit.edu>
> To: Paul Libauer <paull@telstra.net>
> Cc: irrd-discuss@merit.edu
> Subject: Re: Problems compiling irrd2.0a-Aug1-2000 on FreeBSD V4.1
> 
> Paul,
> 
> I don't have a solution for you at the moment but
> we are working on this at the moment and will report
> back to you.  Sorry about the problems.
> 
> --jerry
> 
> > 
> > 
> > Helpful people,
> > 
> > I am having difficulty compiling irrd2.0a-Aug1-2000 on a new platform
> > which is running FreeBSD 4.1 (Intel P3 600). It seems to be a problem with
> > libgen.h which is not part of FreeBSD's standard installation (seems to
> > part of the linux library set which I got by installing linux_devtools-6.1
> > from the 'devel' section of packages). This is where I get after running
> > make;
> > 
> > 
> > STUFF DELETED ...
> > 
> > 
> > /include -c uii_commands.c
> > uii_commands.c: In function `show_database':
> > uii_commands.c:38: warning: unused variable `my_tm'
> > gcc -g -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include
> > -DSMALL_ENDIAN -I/usr/local/include -c journal.c
> > gcc -g -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include
> > -DSMALL_ENDIAN -I/usr/local/include -c indicies.c
> > gcc -g -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include
> > -DSMALL_ENDIAN -I/usr/local/include -c rpsl_commands.c
> > gcc -g -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include
> > -DSMALL_ENDIAN -I/usr/local/include -c route.c
> > gcc -g -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include
> > -DSMALL_ENDIAN -I/usr/local/include -c dbm_support.c
> > gcc -g -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include
> > -DSMALL_ENDIAN -I/usr/local/include -c hash_spec.c
> > gcc -g -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include
> > -DSMALL_ENDIAN -I/usr/local/include -c db1_support.c
> > gcc -g -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include
> > -DSMALL_ENDIAN -I/usr/local/include -c templates.c
> > templates.c:167: warning: excess elements in array initializer
> > templates.c:167: warning: (near initialization for `obj_template')
> > gcc -g -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include
> > -DSMALL_ENDIAN -I/usr/local/include -c util.c
> > gcc -g -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include
> > -DSMALL_ENDIAN -I/usr/local/include -c mirrorstatus.c
> > gcc -g -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include
> > -DSMALL_ENDIAN -I/usr/local/include -c statusfile.c
> > echo "Linking: gcc -L/usr/local/lib main.o telnet.o scan.o config.o
> > commands.o database.o update.o mirror.o uii_commands.o journal.o
> > indicies.o rpsl_commands.o route.o dbm_support.o hash_spec.o db1_support.o
> > templates.o util.o mirrorstatus.o statusfile.o ../../lib/libmrt.a
> > ../../lib/libcfg.a -o irrd"
> > Linking: gcc -L/usr/local/lib main.o telnet.o scan.o config.o  commands.o
> > database.o update.o mirror.o uii_commands.o journal.o indicies.o
> > rpsl_commands.o route.o dbm_support.o hash_spec.o db1_support.o
> > templates.o util.o mirrorstatus.o statusfile.o ../../lib/libmrt.a
> > ../../lib/libcfg.a -o irrd
> > gcc -L/usr/local/lib main.o telnet.o scan.o config.o  commands.o
> > database.o update.o mirror.o uii_commands.o journal.o indicies.o
> > rpsl_commands.o route.o dbm_support.o hash_spec.o db1_support.o
> > templates.o util.o mirrorstatus.o statusfile.o ../../lib/libmrt.a
> > ../../lib/libcfg.a -o irrd -lkvm -lc  
> > commands.o: In function `irr_process_command':
> > /home/paull/irrd2.0a-Aug1-2000/src/programs/IRRd/commands.c(.text+0x5a5): warning: mktemp() possibly
> > used unsafely; consider using mkstemp()
> > statusfile.o: In function `WriteStatusFile':
> > /home/paull/irrd2.0a-Aug1-2000/src/programs/IRRd/statusfile.c(.text+0xb87): undefined
> > reference to `dirname'
> > /home/paull/irrd2.0a-Aug1-2000/src/programs/IRRd/statusfile.c(.text+0xbbe): undefined
> > reference to `__xpg_basename'
> > *** Error code 1
> > 
> > Stop in /home/paull/irrd2.0a-Aug1-2000/src/programs/IRRd.
> > *** Error code 1
> > 
> > Stop in /home/paull/irrd2.0a-Aug1-2000/src/programs.
> > *** Error code 1
> > 
> > Stop in /home/paull/irrd2.0a-Aug1-2000/src.
> > *** Error code 1
> > 
> > Stop in /home/paull/irrd2.0a-Aug1-2000/src.
> > 
> > 
> > 
> > 
> > Any suggestions, ideas ?
> > 
> > Regards,
> > 
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Paul Libauer (Network Engineer)		paull@telstra.net
> > NTG Core Platforms			
> > Telstra Internet (Big Pond Direct)	
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > 
> > 
> > 
> 
> 




[an error occurred while processing this directive]