Boost logo

Boost Users :

From: Michael Garriss (mdg_at_[hidden])
Date: 2004-12-14 11:22:35


i'm trying to get a product of ours to work on HP-UX. we are using gcc.
  it seems to build fine but:

1) when i link to a libboost_*.a i get unresolved symbols like this:

prompt> g++ -I/home/mgarriss/dev/tp-compiled/include/boost-1_31_0 test.cxx
-L/home/mgarriss/dev/tp-compiled/lib/boost-1_31_0 -lboost_regex-gcc -pthread
/usr/bin/ld: Unsatisfied symbols:
    std::allocator<char>::allocate(unsigned long, void const*)(first
referenced in
/home/mgarriss/dev/tp-compiled/lib/boost-1_31_0/libboost_regex-gcc.a(instances.o))

(code)
    std::__default_alloc_template<(bool)1, (int)0>::allocate(unsigned
long)(first referenced in
/home/mgarriss/dev/tp-compiled/lib/boost-1_31_0/libboost_regex-gcc.a(instances.o))

(code)
    std::allocator<char>::deallocate(char*, unsigned long)(first
referenced in
/home/mgarriss/dev/tp-compiled/lib/boost-1_31_0/libboost_regex-gcc.a(instances.o))

(code)
    std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_Rep::_S_create(unsigned long, std::allocator<char> const&)(first
referenced in /home/mgarriss/dev/tp-compiled/lib/boost-1_3
1_0/libboost_regex-gcc.a(instances.o)) (code)
    std::__default_alloc_template<(bool)1, (int)0>::deallocate(void*,
unsigned long)(first referenced in
/home/mgarriss/dev/tp-compiled/lib/boost-1_31_0/libboost_regex-gcc.a(instances.o))

(code)
collect2: ld returned 1 exit status

2) when i link to a .sl (which i get by just renaming the .so, not sure
if that's right), i get this after running the executable:

prompt> g++ -I/home/mgarriss/dev/tp-compiled/include/boost-1_31_0
test.cxx -L/home/mgarriss/dev/tp-compiled/lib/boost-1_31_0
-lboost_regex-gcc -pthread

prompt> ./a.out
/usr/lib/dld.sl: Unresolved symbol: _ZNSs4_Rep9_S_createEmRKSaIcE (code)
  from /home/mgarriss/dev/tp-compiled/lib/boost-1_31_0/libboost_regex-gcc.sl
ABORT instruction (core dumped)

AH! can anyone offer any hints, leads, or advice?

INFO:

prompt> uname -a
HP-UX unknown B.11.11 U 9000/800 180901557 unlimited-user license

prompt> gcc -v
Reading specs from
/opt/gcc-3.3.2/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.2/specs
Configured with: ../gcc-3.3.2/configure --prefix=/opt/gcc-3.3.2
--disable-nls --disable-libgcj --disable-shared --enable-languages=c,c++
--with-gnu-as --with-gnu-ld --with-as=/usr/local/bin/as
--with-ld=/usr/bin/ld --enable-threads=posix
Thread model: posix
gcc version 3.3.2

Thanks in advance,
Mike


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net