This web mail archive is frozen.
This page is part of a frozen web archive of this mailing list.
You can still navigate around this archive, but know that no new mails
have been added to it since July of 2016.
Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.
You likely need to add libxml2.a to your link command-line. And some
others may be missing later.
Instead of linking with src/.libs/libhwloc.a, you should run "make
install" and use libhwloc.a from there (use
--prefix=</where/you/want/to/install> to tell configure where to install).
Once hwloc is installed, pkg-config can tell you which dependency libs
are needed for static linking:
$ pkg-config --static --libs hwloc
-lhwloc -lxml2 -lz -lm -lpci
If you don't install hwloc in prefix=/usr, you may need PKG_CONFIG_PATH
to tell pkg-config where to look.
Anyway, the above list (-lxml2 -lz -lm -lpci) should be correct.
Le 20/05/2012 15:14, Anatoly G a écrit :
> Dear HWLOC.
> I downloaded 1.4.2 version (tar file).
> 1) *./configure --enable-static*
> 2) *make*
> 3) *Wrote program*
> #include "hwloc.h"
> link with ($hwloc_dir)/src/.libhwloc.a
> 4) *In link stage I get following errors:*
> Linking EXE:
> In function `hwloc_libxml2_disable_stderrwarnings':
> topology-xml.c:(.text+0x2d9): undefined reference to `__xmlGenericError'
> topology-xml.c:(.text+0x2f0): undefined reference to
> In function `hwloc_backend_xml_init':
> topology-xml.c:(.text+0x34f): undefined reference to `xmlCheckVersion'
> topology-xml.c:(.text+0x37c): undefined reference to `xmlReadFile'
> Attached program file + error report.
> I use
> OS: Red Hat 6.0 Santiago
> gcc 4.4.4-13
> Can you please help me?
> Sorry if my question looks stupid.
> hwloc-users mailing list