Operating System - HP-UX
1832869 Members
8000 Online
110048 Solutions
New Discussion

gdb on 11.11 - compile errors out.

 
Mel Burslan
Honored Contributor

gdb on 11.11 - compile errors out.

I was unable to find a 11.i specific depot for gdb on the hpux software porting archive, so I decided to download the source and compile it myself.

first I had to over come internationalization library deficiencies by installing libiconv depot then installed get-text. After this moment, I was able to run configure without any problem.

then I downloaded gmake v3.80 from the porting archive and used it to compile/make the gdb binary. After a lengthy process, spewing out few hundred lines of screen output, which I was not able to capture, the process came to an erroneous halt with the following lines at the end:

In file included from gdb_locale.h:29,
from defs.h:42,
from gdbtypes.c:23:
../intl/libintl.h:48:1: warning: this is the location of the previous definition
gdbtypes.c: In function 'recursive_dump_type':
gdbtypes.c:2961: error: invalid lvalue in increment
gmake[1]: *** [gdbtypes.o] Error 1
gmake[1]: Leaving directory `/tmp/gdb/gdb-5.3/gdb'
gmake: *** [all-gdb] Error 2

I am in uncharted territory on this one as it is not my usual daily routine to compile install packages.

If anyone can help me overcome this hurdle, I'll really appreciate.

Thanks in advance.
________________________________
UNIX because I majored in cryptology...
8 REPLIES 8
Sameer_Nirmal
Honored Contributor

Re: gdb on 11.11 - compile errors out.

Hi,

I would better use HP WDB which is based on GDB. Current version is 5.2


Refer these links
http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1669,00.html

http://docs.hp.com/en/5991-1264/index.html

Mel Burslan
Honored Contributor

Re: gdb on 11.11 - compile errors out.

Unfortunately, the choice is not mine to dictate which debugger to use. The developers want gdb, all across the board as their debugging platform.

Another question to those with previous gdb experience: Is the depot available for hpux 11.0 safe to be installed and run on 11.11 systems ?

Thanks again.
________________________________
UNIX because I majored in cryptology...
Arunvijai_4
Honored Contributor

Re: gdb on 11.11 - compile errors out.

Hi Mel,

You can install GDB 5.3 from , http://hpux.connect.org.uk/hppd/hpux/Gnu/gdb-5.3/

It will work on 11.0 as well, or if you want to port it to yourself, just be sure to read

http://hpux.connect.org.uk/hppd/hpux/Gnu/gdb-5.3/readme.html

-Arun

"A ship in the harbor is safe, but that is not what ships are built for"
H.Merijn Brand (procura
Honored Contributor

Re: gdb on 11.11 - compile errors out.

gdb is included in my gcc distributions on my site:

â Software Depot's
â gcc 4.0.2 + binutils 2.16.1 + gdb-6.3
â gcc 4.0.1 + binutils 2.16.1 + gdb-6.3
â gcc 4.0.0 + binutils 2.15 + gdb-6.3
â gcc 3.4.5 + binutils 2.16.1 + gdb-6.3
â gcc 3.4.4 + binutils 2.15 + gdb-6.3

http://mirrors.develooper.com/hpux/downloads.html

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
lizzy_1
New Member

Re: gdb on 11.11 - compile errors out.

To procura:

I've downloaded 11.11/32 & 64 gcc 4.02 + binutils 2.161 + gdb-6.3 for my HP 11.11.

The filename was gcc-4.0.2-11.11.sd.bz. How can I decompress? I just need the gdb to debug an executable that was built using gcc/g++ 4.0.2.

Also, do I need to build the gdb or it comes already built?

Thanks,
Elizabeth
lizzy_1
New Member

Re: gdb on 11.11 - compile errors out.

procura: I've downloaded winrar and it decompressed the gcc-4.0.2-11.11.sd.bz into gcc-4.0.2-11.11.sd. My question is what's next, according to a google search, an sd file extention is a sound file?

Any help will be greatly appreciated.
Mel Burslan
Honored Contributor

Re: gdb on 11.11 - compile errors out.

Elizabeth,

.sd extension, together with not being a standard, refers to a (s)oftware (d)epot. Assuming you have done the unrar operation on your pc, first upload the file to the hpux server in question, into the /tmp directory. Then just run the command

# swinstall -s /tmp/gcc-4.0.2-11.11.sd

you will see the product to be installed displayed for you, once the swinstall gui gets launched. What is after this the usual practice. Select the product, by clicking on it, then from the action menu, select install and follow the on-screen instructions.
________________________________
UNIX because I majored in cryptology...
lizzy_1
New Member

Re: gdb on 11.11 - compile errors out.

Thanks Mel. I'll try it.