Error while compiling with GCC (114 Views)
Reply
Occasional Advisor
Tata Consultants
Posts: 12
Registered: ‎09-13-2010
Message 1 of 4 (114 Views)
Accepted Solution

Error while compiling with GCC

Hi,

I'm getting the below error while compiling my program. Could someone please help me resolve it.

# /opt/hp-gcc64-4.4.3/bin/gcc -Wall vf -o vf.c
ld: Unable to load shared library "/opt/langtools/lib/libcomp.sl"
Fatal error.
collect2: ld returned 1 exit status

As, I googled the problem the most responses I got was to apply patch PHSS_26793. But, that patch is for 11i v1 and my OS is 11iv3.
Acclaimed Contributor
Dennis Handly
Posts: 25,198
Registered: ‎03-06-2006
Message 2 of 4 (114 Views)

Re: Error while compiling with GCC

>gcc -Wall vf -o vf.c

You appear to have your options in the wrong order:
gcc -Wall -o vf vf.c

The correct linker patch on IPF would be PHSS_41179.
Occasional Advisor
Tata Consultants
Posts: 12
Registered: ‎09-13-2010
Message 3 of 4 (114 Views)

Re: Error while compiling with GCC

Thanks Dennis
Occasional Advisor
Tata Consultants
Posts: 12
Registered: ‎09-13-2010
Message 4 of 4 (114 Views)

Re: Error while compiling with GCC

Closed
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.