gentoo: boost/config.hpp: No such file

Once again, portage is unhappy and complains about this command

tunix calibre # g++ -O2 -march=native -pipe -fPIC -O2 -march=native -pipe -pthread -I/usr/include/python2.7 -I/usr/include -I/usr/include/podofo -c /var/tmp/portage/app-text/calibre-0.9.6/work/calibre/src/calibre/utils/podofo/output.cpp -o /var/tmp/portage/app-text/calibre-0.9.6/work/calibre/build/objects/podofo/output.o
In file included from /usr/include/podofo/podofo-base.h:27:0,
                 from /usr/include/podofo/podofo.h:34,
                 from /var/tmp/portage/app-text/calibre-0.9.6/work/calibre/src/calibre/utils/podofo/global.h:14,
                 from /var/tmp/portage/app-text/calibre-0.9.6/work/calibre/src/calibre/utils/podofo/output.cpp:8:
/usr/include/podofo/base/PdfDefines.h:66:28: fatal error: boost/config.hpp: No such file or directory
compilation terminated.

The reason is a broken symlink

tunix calibre # ls -lA /usr/include/boost
lrwxrwxrwx 1 root root 16 Aug 26 10:48 /usr/include/boost -> boost-1_48/boost
tunix calibre # ls -lA /usr/include/boost/
ls: cannot access /usr/include/boost/: No such file or directory

which can be repaired by

tunix calibre # rm /usr/include/boost && ln -s /usr/include/boost-*/boost /usr/include/boost

You may also like...

Leave a Reply

Your email address will not be published.