1753687 Members
5303 Online
108799 Solutions
New Discussion юеВ

using gcc on HP 11.11

 
Alfred P. Bartholomai_1
Occasional Contributor

using gcc on HP 11.11

I am using gcc 3.3.2 and binutils 2.14 on HP 11.11.

I can get code to compile but I am having problems with the linker. Are we supposed
to be using the HP linker (ld) or should
be using a gnu type linker ?

The following is the last few lines of my
link line and the unresolved symbols it complains about:

-lDtWidget -lDtSvc -ltt -lstdc++ -lglib -lMrm -lXm -lXt -
lX11 -lcl -lisamstub -lndbm -lc -lC -lPW -lm -lX11 -lndbm -lcurses -lMrm -lXm -lXt -lX11 -lm -ldld -ltt -lc -lC -lcl -lPW -ltt
ld: Unsatisfied symbols:
_Unwind_SjLj_Register (code)
__divdi3 (code)
_Unwind_SjLj_Resume (code)
_Unwind_SjLj_Unregister (code)
$global$ (data)
__moddi3 (code)
ld: Unsatisfied symbols:
$global$ (data)


Any help, suggestions, comments, etc.
would be much appreciated.

Thank you.

Sincerely,

Fred Bartholomai

 

 

-----------------------------------

 

P.S. This thread has been moved from General to Languages & Scripting - Forum Moderator

3 REPLIES 3
H.Merijn Brand (procura
Honored Contributor

Re: using gcc on HP 11.11

those undefs are most likely from libgcc.a, which is not included in the load (ld) call

Find the location of libgcc.a and then add in the makefile


-L/your/path/to/libgcc -lgcc

probably something like

-L/usr/local/pa20_32/lib/gcc/hppa2.0w-hp-hpux11.00/3.4.1 -lgcc

on HP-UX 11.00 with 32bit gcc-3.4.1

YMMV

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Alfred P. Bartholomai_1
Occasional Contributor

Re: using gcc on HP 11.11

Dear H.Merijn,

I did what you suggested, it cleaned up
most of the symbols but the following remain:

-lDtWidget -lDtSvc -ltt -lstdc++ -lglib -lMrm -lXm -L /us
r/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2 -lXt -lX11 -lcl -lisamstub -lndb
m -lc -lC -lPW -lm -lX11 -lndbm -lcurses -lMrm -lXm -lXt -lX11 -lm -ldld -ltt -l
c -lC -lcl -lPW -ltt -lgcc
ld: Unsatisfied symbols:
$global$ (data)
ld: Unsatisfied symbols:
$global$ (data)

Any ideas ?

I appreciate your help.

Thank you.

Fred Bartholomai
H.Merijn Brand (procura
Honored Contributor

Re: using gcc on HP 11.11

No, I don't have `firm' thoughts about this.

You might wanna try to replace 'ld' with 'gcc' and see what happens.

Or you might want to force load /usr/lib/crt0.o

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn