This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Build issues on HP-UX
On 9 November 2011 23:12, Kai Ruottu <kai.ruottu@wippies.com> wrote:
>> I compiled Xerces and Xalan using aCC (as recommended) while I am
>> using gcc/g++ for building this software, could that be a problem?
>
> Yes!
>
Ok I got that. Thanks Kai, and everybody else.
I used aCC for building Xerces, Xalan and this software. Now it builds
correctly, however it is giving errors during runtime.
$ SHLIB_PATH=/home/obd/HP-UX/lib Release/HP-UX/bl-ovaldi
Segmentation fault (core dumped)
The directory /home/obd/HP-UX/lib contains all the libraries required
to run bl-ovaldi.
On executing gdb I am getting the following call stack:
(gdb) run
Starting program:
/home/njakhar/workspace/ovaldi/ovaldi-5.9.1-src/project/unix/Release/HP-UX/bl-ovaldi
Program received signal SIGSEGV, Segmentation fault.
0x77f3da2c in free+0x12c () from /usr/lib/libc.2
(gdb) where
#0 0x77f3da2c in free+0x12c () from /usr/lib/libc.2
#1 0x77fbe5a4 in __thread_mutex_free+0x8c () from /usr/lib/libc.2
#2 0x77d303cc in _HPMutexWrapper::~_HPMutexWrapper+0x34 () from
/usr/lib/libstd_v2.2
#3 0x18aaa8 in Version::GetBuild (#aggretxform#426=@0x77ff0794) at
../../src/Version.cpp:74
#4 0x139224 in main (argc=1, argv=0x77ff060c) at ../../src/Main.cpp:70
The GetBuild () function (from Version.cpp) is as follows:
#define BUILD 1
string Version::GetBuild() {
string version;
ostringstream bld;
bld << BUILD;
version.append(bld.str());
return(version);
}
As far as I can see, there is nothing that should dump core here.
Further, this code is working on Linux, Solaris and AIX.
PS: Please let me know, if this is not the right platform to ask this question.
-OBD