Patches
Showing results for 
Search instead for 
Do you mean 

/usr/ccs/bin/ld: Unsatisfied symbols

SOLVED
Go to Solution
Occasional Visitor

/usr/ccs/bin/ld: Unsatisfied symbols

Hello,

Attempting to compile cairo-1.1.6 on my HP-UX B.11.00 A 9000/785 with ld patched to PHSS_32863 ,PHSS_33032 & PHSS_33034.

Cairo is required to compile gtk 2.6. HP does not provides latest gtk for 11.00 .

Please help.


===============
Error message :

/usr/bin/cc -Wl,+h -Wl,libcairo.sl.8 -Wl,+b -Wl,/usr/local/lib -o .libs/libcairo.sl.8.0 .libs/cairo.o .libs/cairo-arc.o .libs/cairo-array.o .libs/cairo-base85-stream.o .libs/cairo-cache.o .libs/cairo-clip.o .libs/cairo-color.o .libs/cairo-debug.o .libs/cairo-fixed.o .libs/cairo-font.o .libs/cairo-font-options.o .libs/cairo-gstate.o .libs/cairo-hash.o .libs/cairo-hull.o .libs/cairo-image-surface.o .libs/cairo-lzw.o .libs/cairo-matrix.o .libs/cairo-operator.o .libs/cairo-path.o .libs/cairo-path-bounds.o .libs/cairo-path-data.o .libs/cairo-path-fill.o .libs/cairo-path-stroke.o .libs/cairo-pen.o .libs/cairo-polygon.o .libs/cairo-region.o .libs/cairo-scaled-font.o .libs/cairo-slope.o .libs/cairo-spline.o .libs/cairo-stroke-style.o .libs/cairo-surface.o .libs/cairo-surface-fallback.o .libs/cairo-traps.o .libs/cairo-pattern.o .libs/cairo-unicode.o .libs/cairo-output-stream.o .libs/cairo-wideint.o .libs/cairo-meta-surface.o .libs/cairo-paginated-surface.o .libs/cairo-analysis-surface.o .libs/cairo-ft-font.o .libs/cairo-pdf-surface.o .libs/cairo-png.o .libs/cairo-font-subset.o .libs/cairo-xlib-surface.o .libs/cairo-xlib-screen.o .libs/libcairo.lax/libpixman.a/pixregion.o .libs/libcairo.lax/libpixman.a/fbpict.o .libs/libcairo.lax/libpixman.a/icblt.o .libs/libcairo.lax/libpixman.a/icbltone.o .libs/libcairo.lax/libpixman.a/iccolor.o .libs/libcairo.lax/libpixman.a/icformat.o .libs/libcairo.lax/libpixman.a/icimage.o .libs/libcairo.lax/libpixman.a/icpixels.o .libs/libcairo.lax/libpixman.a/icrect.o .libs/libcairo.lax/libpixman.a/icstipple.o .libs/libcairo.lax/libpixman.a/ictrap.o .libs/libcairo.lax/libpixman.a/ictransform.o .libs/libcairo.lax/libpixman.a/ictri.o .libs/libcairo.lax/libpixman.a/icutil.o .libs/libcairo.lax/libpixman.a/fbedge.o .libs/libcairo.lax/libpixman.a/fbtrap.o .libs/libcairo.lax/libpixman.a/fbcompose.o .libs/libcairo.lax/libpixman.a/renderedge.o -L/usr/local/lib /usr/local/lib/libXrender.sl -lX11 -L/opt/libpng/lib -lpng12 /usr/local/lib/libfontconfig.sl /usr/local/lib/libfreetype.sl -lz -lm -lc
/usr/ccs/bin/ld: Unsatisfied symbols:
main (Not referenced yet! Probably due to -u option)
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
5 REPLIES
Honored Contributor Honored Contributor

Re: /usr/ccs/bin/ld: Unsatisfied symbols

Hi,

Try to compile with -Aa parameter (ANSI mode)

HTH
Entities are not to be multiplied beyond necessity - RTFM
Occasional Visitor

Re: /usr/ccs/bin/ld: Unsatisfied symbols

Hi,

Thanx for your prompt help victor, but -Aa didn't worked. Still unable to compile. Any other tip .. ?

Regards.
Honored Contributor Honored Contributor

Re: /usr/ccs/bin/ld: Unsatisfied symbols

Hi Shadab,

Try with GCC for 11.0. Opensource products are compatible with GCC than CC.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Occasional Visitor

Re: /usr/ccs/bin/ld: Unsatisfied symbols

Thanx Arun,

Tjough it was very difficult to get gcc compiled on hp-ux, but I somehow managed it. Besides, a little tweakig with flags helped too.

Regards,
Occasional Visitor

Re: /usr/ccs/bin/ld: Unsatisfied symbols

* GCC 4.0.2 was compiled on hp-ux and it helped.