Skip to content

STAGE 4A - INSTALL FRR ON ROUTER 1 (BGP CAPABILITY) - frr compilation failed #187

@dovidio

Description

@dovidio

Description

When running ./ffrouting-install.sh following lab instructions, compilation fails with the following message

/usr/local/include/rtrlib/aspa/aspa.h:24:10: fatal error: rtrlib/lib/alloc_utils_private.h: No such file or directory
 #include "rtrlib/lib/alloc_utils_private.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:10688: recipe for target 'bgpd/bgpd_bgpd_rpki_la-bgp_rpki.lo' failed

Workaround

I was able to work around the issue by executing the following script to install rtrlib

# 1. Clean up any existing RTRlib installation
sudo rm -rf /usr/local/include/rtrlib
sudo rm -f /usr/local/lib/librtr*
sudo rm -f /usr/local/lib/pkgconfig/rtrlib.pc
sudo ldconfig

# 2. Rebuild RTRlib with proper installation
cd /tmp
rm -rf rtrlib
git clone https://github.com/rtrlib/rtrlib/
cd rtrlib
git checkout v0.8.0  # Use stable version

mkdir build; cd build
cmake -D CMAKE_BUILD_TYPE=Release \
      -D CMAKE_INSTALL_PREFIX=/usr/local \
      -D BUILD_SHARED_LIBS=ON \
      ..

make
sudo make install
sudo ldconfig

# 3. Manually copy the missing private header if needed
if [ ! -f /usr/local/include/rtrlib/lib/alloc_utils_private.h ]; then
    sudo mkdir -p /usr/local/include/rtrlib/lib/
    sudo cp ../rtrlib/lib/alloc_utils_private.h /usr/local/include/rtrlib/lib/ 2>/dev/null || echo "Header not found in source"
fi

After that I executed ./ffrouting-install.sh again and this time the compilation completed successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions