Parsing compilation errors and automatic resolving

Parsing compilation errors and automatic resolving

Rabin Yasharzadehe rabin at rabin.io
Sun Apr 26 00:29:22 IDT 2015


I'm not much of a developer, but if the application you are trying to
compile is a C/C++ program (i also used this method to find Perl missing
library's), you can grep through all the .C/.h files for the '#include'
lines and extract the needed library's which are needed for the application
to run. then you can use the distro manager to locate the packages which
provides the necessary files.

In Fedora i use yum/dnf provides "*/xyz.h" and on Debian based distro you
have apt-file search

--
Rabin

On Tue, Apr 21, 2015 at 5:48 PM, Constantine Shulyupin <
const at makelinux.co.il> wrote:

> Hi,
>
> Again I am compiling big OSS project for embedded environment and receive
> a lot of errors like:
> warning: libXXX, needed by YYY, not found
> fatal error: XXX: No such file or directory.
> undefined reference to XX
> etc
>
> Then I look for missing packages with utilities: nm, apt-file search and
> configure compilation.
>
> Question:
>
> Are there utility, which parses errors and proposes obvious solutions?
>
> For example, following code proposes to add missing library to LDFLAGS:
>
> perl -ne '/.*warning: lib(.*?)\..*, needed by .*, not found .*/ && print
> "export LDFLAGS+=\" -l$1\"\n";' < config.log
>
> Thanks
>
> --
> Constantine Shulyupin
> http://www.MakeLinux.co.il/
> Embedded Linux Systems
> Tel Aviv
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20150426/fd21628d/attachment-0001.html>


More information about the Linux-il mailing list