[xsd-users] Question about xsd

Gregorio Arvilla Gregorio.Arvilla at epvgroup.com
Wed Jan 24 18:35:38 EST 2007


Hello Boris,

The aCC version that I'm using is: aCC: HP ANSI C++ B3910B A.03.37

I finally got passed the Unresolved symbol error when executing the a.out.
I'm at another obstacle, this is what I get when I run it now:

[/users/greg/xsd_codeSynthesis/xsd-2.3.1-hppa-hpux/examples/cxx/tree/hello]
[bilbo][greg] ./a.out hello.xml
Memory fault(coredump)


I used the wdb HP-UX debugger and did a print of the stack:

0  0x77332884 in pthread_mutex_destroy+0x18 () from /usr/lib/libpthread.1
#1  0x77fc0900 in __thread_mutex_free+0x40 () from /usr/lib/libc.2
#2  0x77d313cc in _HPMutexWrapper::~_HPMutexWrapper+0x34 () from /usr/lib/libstd_v2.2
#3  0x1840c in std::basic_string<char,std::char_traits<char>,std::allocator<char>>::_C_unlink (this=0x77ff2670) at /opt/aCC/include_std/string:1002
#4  0x18238 in std::basic_string<char,std::char_traits<char>,std::allocator<char>>::~basic_string<char,std::char_traits<char>,std::allocator<char>> (this=0x77ff2670, #free=2) at /opt/aCC/include_std/string:361
#5  0x1ceb8 in hello_type::parse (this=0x400452c8, e=@0x40099278, f={, , , , , }) at /users/greg/xsd_codeSynthesis/xsd-2.3.1-hppa-hpux/examples/cxx/tree/hello/hello.cxx:136
#6  0x1c750 in hello_type::hello_type () at /users/greg/xsd_codeSynthesis/xsd-2.3.1-hppa-hpux/examples/cxx/tree/hello/hello.cxx:126
#7  0x2a1a8 in hello (#aggretxform#1271=@0x77ff2440, d=@0x4002d730, f={, , , , , }, No.Identifier=@0x77ff2434) at /users/greg/xsd_codeSynthesis/xsd-2.3.1-hppa-hpux/examples/cxx/tree/hello/hello.cxx:407
#8  0x24540 in hello (#aggretxform#1008=@0x77ff2328, u=@0x77ff2324, f={, , , , , }, p=@0x77ff231c) at /users/greg/xsd_codeSynthesis/xsd-2.3.1-hppa-hpux/examples/cxx/tree/hello/hello.cxx:209
#9  0x36c24 in main (argc=2, argv=0x77ff1f0c) at /users/greg/xsd_codeSynthesis/xsd-2.3.1-hppa-hpux/examples/cxx/tree/hello/driver.cxx:25


Stepping thru the code, it always crashes on line 136 of the hello.cxx file, here is the line:

const ::xsd::cxx::xml::dom::element< char > e (p.next_element ());

This line seems to somehow call the destructor of the basic_string class (or template).

Thanks you


Gregorio


-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Wednesday, January 24, 2007 8:48 AM
To: Gregorio Arvilla
Cc: xsd-users
Subject: Re: [xsd-users] Question about xsd


Hi Gregorio,

Gregorio Arvilla <Gregorio.Arvilla at epvgroup.com> writes:

> Please ignore the previous message, the one about the compiler errors.

Great, so you've managed to build the executable. How did you resolve
these compile errors? Also which version of aCC are you using (run
aCC -V to find out)?


> Now I would like to ask you about something else. When I try to run
> the executable this is what I get:
>
> [/users/greg/xsd_codeSynthesis/xsd-2.3.1-hppa-hpux/examples/cxx/tree/hello]
> [bilbo][greg] ./a.out
> /usr/lib/dld.sl: Unresolved symbol: typeid__XT9exception_ (data)  from ../../../../../xerces-c-src_2_7_0/lib/libxerces-c.sl.27

Hm, never seen anything like this. A little bit of googling revealed[1]
that you need to make sure Xerces-C++ is build with the -AA option. Can
you try to reconfigure and recompile it with this command:

$ ./runConfigure -p hp-11 -x aCC -l -AA -z -AA


[1] http://www.oracle.com/technology/documentation/berkeley-db/xml/ref_xml/xml_unix/hpux.html


hth,
-boris




More information about the xsd-users mailing list