- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- loader error
Operating System - HP-UX
1754280
Members
3591
Online
108813
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2009 10:58 PM
06-28-2009 10:58 PM
loader error
Hi ,
I am portin a java and C application ( mostly java and very little C ) from Solaris to HPUX and i have hit the below error
/opt/java1.5//bin/IA64N/javac -d . Des.java
cc -g -I/opt/java1.5//include -I/opt/java1.5//include/hp-ux -c DesImp.c
"DesImp.c", line 54: warning #3056-D: returning pointer to local variable
return(ddd);
^
"DesImp.c", line 69: warning #3056-D: returning pointer to local variable
return(ddd);
^
ld -G DesImp.o des.a -o libDes.so
ld: Bad machine type: 2 in file des.a[des.o]
Fatal error.
*** Error exit code 1
Stop.
Can you tell me
1. what this means ?
could it be that the binary is not in elf format ??
2.how can i fix it ?
I am portin a java and C application ( mostly java and very little C ) from Solaris to HPUX and i have hit the below error
/opt/java1.5//bin/IA64N/javac -d . Des.java
cc -g -I/opt/java1.5//include -I/opt/java1.5//include/hp-ux -c DesImp.c
"DesImp.c", line 54: warning #3056-D: returning pointer to local variable
return(ddd);
^
"DesImp.c", line 69: warning #3056-D: returning pointer to local variable
return(ddd);
^
ld -G DesImp.o des.a -o libDes.so
ld: Bad machine type: 2 in file des.a[des.o]
Fatal error.
*** Error exit code 1
Stop.
Can you tell me
1. what this means ?
could it be that the binary is not in elf format ??
2.how can i fix it ?
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2009 11:33 PM
06-28-2009 11:33 PM
Re: loader error
>warning #3056-D: returning pointer to local variable
This code is illegal, what is the type of ddd?
>ld -G DesImp.o des.a -o libDes.so
Why are you invoking ld directly? You should NOT do that. You should use cc to create your shlibs:
cc -b -o libDes.so DesImp.o des.a
(I'm not sure why you have -G?)
>1. what this means? could it be that the binary is not in ELF format?
>2. how can I fix it?
The object file or archive is corrupt. Remove des.a and rebuild it.
This code is illegal, what is the type of ddd?
>ld -G DesImp.o des.a -o libDes.so
Why are you invoking ld directly? You should NOT do that. You should use cc to create your shlibs:
cc -b -o libDes.so DesImp.o des.a
(I'm not sure why you have -G?)
>1. what this means? could it be that the binary is not in ELF format?
>2. how can I fix it?
The object file or archive is corrupt. Remove des.a and rebuild it.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP