[Xorp-users] Builing xorp with --enable-shared vs --with-pic
Pavlin Radoslavov
pavlin at ICSI.Berkeley.EDU
Mon Oct 6 17:33:08 PDT 2008
Jose Manuel dos Santos Calhariz <jose.spam at netvisao.pt> wrote:
> Hi
>
> As I don't understand well the compiling process of xorp 1.5 so I have a
> question.
>
> What is the diference of building xorp using switch --enable-shared vs
> --with-pic in a Linux system.
>
> If building xorp with snmp support it will generate shared libraries
> for mibs that are made with objects compiled without -fPIC. This is a
> problem in Linux and even breaks on x86_84 systems.
>
> What is best? --enable-shared or with-pic
>
> See bug report on Debian for more info
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500325
>
> Jose Calhariz
What is the original issue you are trying to solve?
According to the above Debian bug report, I am guessing XORP failed
to compile on x86_64 machine with SNMP enabled.
Did you try to use the following commands:
./configure --with-snmp --enable-shared
gmake clean
gmake
The original text in xorp/ERRATA cited FreeBSD as one of the example
OS-es that have that problem. I just tried Ubuntu-7.10 on amd64, and
using --enable-shared fixed the problem for me.
Note that I used latest vanilla XORP code from CVS, including the
rev. 1.27 fix to the following file that I just applied:
http://cvsweb.xorp.org/cgi-bin/cvsweb.cgi/xorp/mibs/bgp4_mib_1657_bgp4pathattrtable.cc
Pavlin
More information about the Xorp-users
mailing list