Unix Technical Forum

All Genius are requested to have a look please . .

This is a discussion on All Genius are requested to have a look please . . within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hi Folks! Can anyone help me on the follwoing issue : cc -o /csweblgn -rv \ -ldld LPATH=/usr/lib/hpux32:/opt/langtools/lib/hpux32 /usr/ccs/bin/ld ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 05:50 AM
sudhansutiwari@gmail.com
 
Posts: n/a
Default All Genius are requested to have a look please . .

Hi Folks!

Can anyone help me on the follwoing issue :

cc -o /csweblgn -rv \
-ldld
LPATH=/usr/lib/hpux32:/opt/langtools/lib/hpux32
/usr/ccs/bin/ld -r -o /csweblgn -ldld
ld: The shared library "/usr/lib/hpux32/libdld.so" cannot be processed
in a relocatable link
Fatal error.
removing /var/tmp/AAAa29466
*** Error exit code 1

Stop.

I am trying to compile this on HP-Itanium.
Any help is highly appreciated... Thanks a lot in advance!! Its urgent
guys, please help.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 05:50 AM
Carl Burch
 
Posts: n/a
Default Re: All Genius are requested to have a look please . .


sudhansutiwari@gmail.com wrote:

> Can anyone help me on the follwoing issue :
>
> cc -o /csweblgn -rv \
> -ldld
> LPATH=/usr/lib/hpux32:/opt/langtools/lib/hpux32
> /usr/ccs/bin/ld -r -o /csweblgn -ldld
> ld: The shared library "/usr/lib/hpux32/libdld.so" cannot be processed
> in a relocatable link


The problem is caused by the "-rv" option in your cc command. The
"-r" part
isn't a cc option, so it gets passed through to the linker - which
interprets it as
a command to perform a relocatable (.o file in -> .o file out) link.
Shared libraries
are nonsensical in a relocatable link, hence the error.

What did you want to happen in response to the "-rv" option?


- Carl Burch

HP WDB Team

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 05:50 AM
sudhansutiwari@gmail.com
 
Posts: n/a
Default Re: All Genius are requested to have a look please . .

On Feb 5, 11:11 pm, "Carl Burch" <c...@cup.hp.com> wrote:
> sudhansutiw...@gmail.com wrote:
> > Can anyone help me on the follwoing issue :

>
> > cc -o /csweblgn -rv \
> > -ldld
> > LPATH=/usr/lib/hpux32:/opt/langtools/lib/hpux32
> > /usr/ccs/bin/ld -r -o /csweblgn -ldld
> > ld: The shared library "/usr/lib/hpux32/libdld.so" cannot be processed
> > in a relocatable link

>
> The problem is caused by the "-rv" option in your cc command. The
> "-r" part
> isn't a cc option, so it gets passed through to the linker - which
> interprets it as
> a command to perform a relocatable (.o file in -> .o file out) link.
> Shared libraries
> are nonsensical in a relocatable link, hence the error.
>
> What did you want to happen in response to the "-rv" option?
>
> - Carl Burch
>
> HP WDB Team


Hi Carl!!

Thanks a lot for your suggestion, I'll definately try it and
get back to youwith the results as soon as possible . . I had included
"r" option to retain relocation information in the output file for
subsequent re-linking. Catch you soon . . bye for now . .

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 05:51 AM
Dennis Handly
 
Posts: n/a
Default Re: All Genius are requested to have a look please . .

sudhansutiwari@gmail.com wrote:
> I had included
> "r" option to retain relocation information in the output file for
> subsequent re-linking.


Then you want to use ld -r and remove any shared libs.
Any reason you want to combine objects?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com