IRRd-Discuss
Date Prev | Date Next |
Date Index |
Thread Index |
Author Index |
Historical
RE: Compiling IRRd 2.2.3
- From: Olmsted, Brian
- Date: Thu Mar 03 10:19:24 2005
Thanks Javier, that seemed to do the trick by downgrading the flex version to 2.5.4a that was up on SunFreeware from the 2.5.31 version that is up there now.
Here's the last few lines where things are linked together fine now.
-----------------------
Linking: gcc call_pipeline.o auth.o pgpchk.o mailchk.o main.o comdata.o util.o notifyif.o synchkif.o trans_list.o ../hdr_comm/libhdrs.a ../irr_rpsl_check/librpslchk.a ../irr_notify/libnfy.a ../irrd_ops/libirrd_ops.a ../compat/libcompat.a -o irr_rpsl_submit
gcc call_pipeline.o auth.o pgpchk.o mailchk.o main.o comdata.o util.o notifyif.o synchkif.o trans_list.o ../hdr_comm/libhdrs.a ../irr_rpsl_check/librpslchk.a ../irr_notify/libnfy.a ../irrd_ops/libirrd_ops.a ../compat/libcompat.a -o irr_rpsl_submit -lsocket -lnsl -lpthread -lcrypt -L../../lib/
make[3]: Leaving directory `/export/home/olm8980/source/IDC/irrd/irrd2.2.3/src/programs/irr_rpsl_submit'
make[2]: Leaving directory `/export/home/olm8980/source/IDC/irrd/irrd2.2.3/src/programs'
make[1]: Leaving directory `/export/home/olm8980/source/IDC/irrd/irrd2.2.3/src'
[olm8980@t1000 src]%
-----------------------
Now, I just have to see if I can find an easy way to setup IRRd in a chroot/jail cell for improved security, etc. Have you seen any links to this around? I'm following a process similar for another program. At this point I'm having problems with it trying to look up whois.radb.net even though I have a resolv.conf and the NSS libraries in the chroot.
-----------------------
root@t1000# chroot /chroot-jail/irrd /usr/local/sbin/irrd -f /usr/local/etc/irrd.conf -l irrd -g irrd -u -v
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command uii_port %d
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command irr_directory %s
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command irr_port %d
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command irr_mirror_interval %d
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command !
Mar 3 15:15:52 [1] UII command irr_database %s mirror_host %s %d
Mar 3 15:15:52 [1] IRRD CONFIG radb mirror
Mar 3 15:15:52 [1] IRRD ** Unknown error while looking up IP address for whois.radb.net **
Mar 3 15:15:52 [1] IRRD CONFIG Error -- could not resolve whois.radb.net
Mar 3 15:15:52 [1] *ERROR* IRRD CONFIG ERROR at line 31
Mar 3 15:15:52 [1] irr_database radb mirror whois.radb.net 43
root@t1000#
root@t1000# ls -l /chroot-jail/irrd/etc/resolv.conf
-rw-r--r-- 1 root other 80 Feb 7 2004 /chroot-jail/irrd/etc/resolv.conf
root@t1000#
root@t1000# ls -l /chroot-jail/irrd/etc/nsswitch.conf
-rw-r--r-- 1 root sys 784 Feb 7 2004 /chroot-jail/irrd/etc/nsswitch.conf
root@t1000# ls -l /chroot-jail/irrd/usr/lib/nss*
-rwxr-xr-x 1 root bin 26228 Mar 16 2000 /chroot-jail/irrd/usr/lib/nss_compat.so.1
-rwxr-xr-x 1 root bin 24540 Jul 13 2004 /chroot-jail/irrd/usr/lib/nss_dns.so.1
-rwxr-xr-x 1 root bin 44836 Dec 16 17:42 /chroot-jail/irrd/usr/lib/nss_files.so.1
-rwxr-xr-x 1 root bin 91432 Dec 16 17:42 /chroot-jail/irrd/usr/lib/nss_ldap.so.1
-rwxr-xr-x 1 root bin 46180 Dec 16 17:42 /chroot-jail/irrd/usr/lib/nss_nis.so.1
-rwxr-xr-x 1 root bin 54900 Dec 16 17:42 /chroot-jail/irrd/usr/lib/nss_nisplus.so.1
-rwxr-xr-x 1 root bin 13376 Jan 5 2000 /chroot-jail/irrd/usr/lib/nss_user.so.1
-rwxr-xr-x 1 root bin 14564 Jan 5 2000 /chroot-jail/irrd/usr/lib/nss_xfn.so.1
root@t1000#
-----------------------
-----Original Message-----
From: Javier Bermejo [mailto:jbermejo@dit.upm.es]
Sent: Thursday, March 03, 2005 4:09 AM
To: Olmsted, Brian
Cc: irrd-discuss@merit.edu
Subject: Re: Compiling IRRd 2.2.3
Hello Brian,
I had the same problem until I downgraded the version of flex used in the
system to compile IRRD.
You can see in your log that rpslcheck is never compiled, this is why later
you don't find librpslchk.a
To solve the problem, I have tested that using flex-2.5.27 or previous
versions it compiles, but not using newer versions.
I hope this could help you.
Best regards
Javier Bermejo
El Miércoles, 2 de Marzo de 2005 22:11, Olmsted, Brian escribió:
> > /usr/local/bin/flex rpsl.fl
> > gcc -g -O2 -Wall -Wno-char-subscripts -DHAVE_CONFIG_H
> > -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DFUNCPROTO -I../../include -c
> > lex.yy.c rpsl.fl: In function `copy_line':
> > rpsl.fl:911: error: `yytext_ptr' undeclared (first use in this
> > function) rpsl.fl:911: error: (Each undeclared identifier is reported
> > only once rpsl.fl:911: error: for each function it appears in.)
> > rpsl.fl:914: warning: implicit declaration of function `yy_set_bol'
> > make[3]: *** [lex.yy.o] Error 1
|