Dear HWLOC.
I downloaded 1.4.2 version (tar file).
Performed
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:
/space/home/anatol-g/Grape/release_4.6_FH/core/bin/linux64/rhe6/g++4.4.4/debug/mpi_rcv_waitany
...
/product/grape-data/hwloc-1.4.2/src/.libs/libhwloc.a(topology-xml.o): In
function `hwloc_libxml2_disable_stderrwarnings':
topology-xml.c:(.text+0x2d9): undefined reference to `__xmlGenericError'
topology-xml.c:(.text+0x2f0): undefined reference to
`xmlSetGenericErrorFunc'
/product/grape-data/hwloc-1.4.2/src/.libs/libhwloc.a(topology-xml.o): 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.
Anatoly.
Compiling : 
/home/anatol-g/Grape/release_4.6_FH/core/mpi/mpi_tests/mpi_hwloc_test.cpp       
                                                                          
       ->: 
/space/home/anatol-g/Grape/release_4.6_FH/core/out/linux64/rhe6/g++4.4.4/debug/MPI_GENERIC_TESTS/mpi_hwloc_test.o
 ...
/space/local/mpich2//bin/mpicxx  -c -ftemplate-depth-50 -Wall -Wno-reorder 
-Wno-comment -Wno-unknown-pragmas -Wno-unused  -Wno-non-virtual-dtor  -W 
-D_REENTRANT  -I/home/anatol-g/Grape/release_4.6_FH/core  
-I/home/anatol-g/Grape/release_4.6_FH/core/public_include 
-I/home/anatol-g/Grape/release_4.6_FH/core/../orb_third_party/include 
-DINTRINSICS_LIBRARY_SANITY_CHECKING -fPIC -DINTRINSICS_LIBRARY_SANITY_CHECKING 
 -g -D_WIN32_WINNT=0X0500 -DWIN32_LEAN_AND_MEAN 
-I/home/anatol-g/Grape/release_4.6_FH/core/mpi/mpi_tests -I/usr/include 
-I/space/local/mpich2//include -I/product/grape-data/hwloc-1.4.2/include/ -o 
/space/home/anatol-g/Grape/release_4.6_FH/core/out/linux64/rhe6/g++4.4.4/debug/MPI_GENERIC_TESTS/mpi_hwloc_test.o
 /home/anatol-g/Grape/release_4.6_FH/core/mpi/mpi_tests/mpi_hwloc_test.cpp -MMD

Linking  EXE: 
/space/home/anatol-g/Grape/release_4.6_FH/core/bin/linux64/rhe6/g++4.4.4/debug/mpi_hwloc_test
 ...

LD_LIBRARY_PATH=/space/home/anatol-g/Grape/release_4.6_FH/core/bin/linux64/rhe6/g++4.4.4/debug/:/ace:$LD_LIBRARY_PATH
 && export LD_LIBRARY_PATH &&  /space/local/mpich2//bin/mpicxx   -L/usr/lib64 
-lcurses -lnsl -lpthread -ldl -lrt -rdynamic -o 
/space/home/anatol-g/Grape/release_4.6_FH/core/bin/linux64/rhe6/g++4.4.4/debug/mpi_hwloc_test
 
/space/home/anatol-g/Grape/release_4.6_FH/core/out/linux64/rhe6/g++4.4.4/debug/MPI_GENERIC_TESTS/mpi_hwloc_test.o
 /product/grape-data/hwloc-1.4.2/src/.libs/libhwloc.a
/product/grape-data/hwloc-1.4.2/src/.libs/libhwloc.a(topology-xml.o): In 
function `hwloc_libxml2_disable_stderrwarnings':
topology-xml.c:(.text+0x2d9): undefined reference to `__xmlGenericError'
topology-xml.c:(.text+0x2f0): undefined reference to `xmlSetGenericErrorFunc'
/product/grape-data/hwloc-1.4.2/src/.libs/libhwloc.a(topology-xml.o): In 
function `hwloc_backend_xml_init':
topology-xml.c:(.text+0x34f): undefined reference to `xmlCheckVersion'
topology-xml.c:(.text+0x37c): undefined reference to `xmlReadFile'
topology-xml.c:(.text+0x3aa): undefined reference to `xmlReadMemory'
/product/grape-data/hwloc-1.4.2/src/.libs/libhwloc.a(topology-xml.o): In 
function `hwloc_backend_xml_exit':
topology-xml.c:(.text+0x5d8): undefined reference to `xmlFreeDoc'
/product/grape-data/hwloc-1.4.2/src/.libs/libhwloc.a(topology-xml.o): In 
function `hwloc_look_xml':
topology-xml.c:(.text+0x288f): undefined reference to `xmlGetIntSubset'
topology-xml.c:(.text+0x292d): undefined reference to `xmlDocGetRootElement'
/product/grape-data/hwloc-1.4.2/src/.libs/libhwloc.a(topology-xml.o): In 
function `hwloc__xml_export_new_child':
topology-xml.c:(.text+0x2c65): undefined reference to `xmlNewChild'
/product/grape-data/hwloc-1.4.2/src/.libs/libhwloc.a(topology-xml.o): In 
function `hwloc__xml_export_new_prop':
topology-xml.c:(.text+0x2f2e): undefined reference to `xmlNewProp'
/product/grape-data/hwloc-1.4.2/src/.libs/libhwloc.a(topology-xml.o): In 
function `hwloc__libxml2_prepare_export':
topology-xml.c:(.text+0x3e4e): undefined reference to `xmlCheckVersion'
topology-xml.c:(.text+0x3e60): undefined reference to `xmlNewDoc'
topology-xml.c:(.text+0x3e76): undefined reference to `xmlNewNode'
topology-xml.c:(.text+0x3e8d): undefined reference to `xmlDocSetRootElement'
topology-xml.c:(.text+0x3eae): undefined reference to `xmlCreateIntSubset'
/product/grape-data/hwloc-1.4.2/src/.libs/libhwloc.a(topology-xml.o): In 
function `hwloc_topology_export_xml':
topology-xml.c:(.text+0x40c3): undefined reference to `xmlSaveFormatFileEnc'
topology-xml.c:(.text+0x40d2): undefined reference to `xmlFreeDoc'
/product/grape-data/hwloc-1.4.2/src/.libs/libhwloc.a(topology-xml.o): In 
function `hwloc_topology_export_xmlbuffer':
topology-xml.c:(.text+0x421f): undefined reference to 
`xmlDocDumpFormatMemoryEnc'
topology-xml.c:(.text+0x422b): undefined reference to `xmlFreeDoc'
/product/grape-data/hwloc-1.4.2/src/.libs/libhwloc.a(topology-xml.o): In 
function `hwloc_free_xmlbuffer':
topology-xml.c:(.text+0x428c): undefined reference to `xmlFree'
collect2: ld returned 1 exit status
make: *** 
[/space/home/anatol-g/Grape/release_4.6_FH/core/bin/linux64/rhe6/g++4.4.4/debug/mpi_hwloc_test]
 Error 1
#include "hwloc.h"

void GetProcInfo()
{
    hwloc_topology_t topology;

    hwloc_topology_init(&topology);
}



int main(int argc, char *argv[])
{
    GetProcInfo();
    return 0;
}



Reply via email to