- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file "unix98.o": No such file or directory - 64 bi...
Operating System - HP-UX
1753975
Members
7669
Online
108811
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
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
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
тАО05-17-2011 10:42 AM
тАО05-17-2011 10:42 AM
file "unix98.o": No such file or directory - 64 bit ld error
I have a 64 bit HP-UX B11.31 PA-RISC system. I am trying to build following sample code:-
#include
#include
int main(int argc, char ** argv)
{
return 1;
}
Compile:- g++ -I/usr/include -I/usr/local/include -Wall -DHPUX_64 -DOS_HPUX -D_PSTAT64 -D_V2 -c -fvisibility=default -fPIC try.cpp
Link:- g++ -fPIC -DHPUX_64 -D_PSTAT64 -DOS_HPUX -D_V2 -o try try.o -L/usr/lib -L/usr/lib/pa20_64 -L/opt/hp-gcc64/lib -lstdc++ -lm -lnsl
Error:-
ld: I/O error, file "unix98.o": No such file or directory
Fatal error.
collect2: ld returned 1 exit status
I tried different permutations, like not explicitly linking to libs in pa20_64 and/or opt/hp-gcc64/lib. It made no difference.
Some more investigation. I found unix95.o and unix98.o in /usr/lib. But:-
file /usr/lib/unix98.o gives "PA-RISC1.1 relocatable object". Looks like it is 32 bit. When is this file built and how do I get 64 bit verison of unix98.o - if that is the issue.
file try.o gives:-
ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
End goal is to build 64 bit application. It failed because of same ld error. Hence, I tried a short snippet pasted above. Am looking for helpful tips to resolve this issue.
# g++ -v
Using built-in specs.
Target: hppa64-hp-hpux11.11
Configured with: /tmp/gcc-4.4.3.tar.gz/gcc-4.4.3/configure --host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11 --build=hppa64-hp-hpux11.11 --prefix=/opt/hp-gcc64-4.4.3 --with-gnu-as --without-gnu-ld --enable-threads=posix --enable-languages=c,c++ --with-gmp=/proj/opensrc/be/hppa64-hp-hpux11.11 --with-mpfr=/proj/opensrc/be/hppa64-hp-hpux11.11 SED=/usr/bin/sed
Thread model: posix
gcc version 4.4.3 (GCC)
#include
#include
int main(int argc, char ** argv)
{
return 1;
}
Compile:- g++ -I/usr/include -I/usr/local/include -Wall -DHPUX_64 -DOS_HPUX -D_PSTAT64 -D_V2 -c -fvisibility=default -fPIC try.cpp
Link:- g++ -fPIC -DHPUX_64 -D_PSTAT64 -DOS_HPUX -D_V2 -o try try.o -L/usr/lib -L/usr/lib/pa20_64 -L/opt/hp-gcc64/lib -lstdc++ -lm -lnsl
Error:-
ld: I/O error, file "unix98.o": No such file or directory
Fatal error.
collect2: ld returned 1 exit status
I tried different permutations, like not explicitly linking to libs in pa20_64 and/or opt/hp-gcc64/lib. It made no difference.
Some more investigation. I found unix95.o and unix98.o in /usr/lib. But:-
file /usr/lib/unix98.o gives "PA-RISC1.1 relocatable object". Looks like it is 32 bit. When is this file built and how do I get 64 bit verison of unix98.o - if that is the issue.
file try.o gives:-
ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
End goal is to build 64 bit application. It failed because of same ld error. Hence, I tried a short snippet pasted above. Am looking for helpful tips to resolve this issue.
# g++ -v
Using built-in specs.
Target: hppa64-hp-hpux11.11
Configured with: /tmp/gcc-4.4.3.tar.gz/gcc-4.4.3/configure --host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11 --build=hppa64-hp-hpux11.11 --prefix=/opt/hp-gcc64-4.4.3 --with-gnu-as --without-gnu-ld --enable-threads=posix --enable-languages=c,c++ --with-gmp=/proj/opensrc/be/hppa64-hp-hpux11.11 --with-mpfr=/proj/opensrc/be/hppa64-hp-hpux11.11 SED=/usr/bin/sed
Thread model: posix
gcc version 4.4.3 (GCC)
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2011 09:39 PM
тАО05-17-2011 09:39 PM
Re: file "unix98.o": No such file or directory - 64 bit ld error
>I found unix95.o and unix98.o in /usr/lib.
The +DD64 version is in: /usr/lib/pa20_64/unix98.o
Do you have OS-Core.C-MIN-64ALIB installed?
The +DD64 version is in: /usr/lib/pa20_64/unix98.o
Do you have OS-Core.C-MIN-64ALIB installed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 09:57 AM
тАО05-18-2011 09:57 AM
Re: file "unix98.o": No such file or directory - 64 bit ld error
"The +DD64 version is in: /usr/lib/pa20_64/unix98.o
Do you have OS-Core.C-MIN-64ALIB installed?"
Dennis - Thanks for the reply. I checked in /usr/lib/pa20_64. I don't see unix98.o. Can you pl elaborate slightly on OS-Core.C-MIN-64ALIB? My understanding is that as 32 bit unix98.o is part of standard installation - same would apply to 64 bit OS-Core.C-MIN-64ALIB. I had installed 64 bit HP gcc 4.4.3 successfully - which I assume would happen only if 64 bit OS-Core.C-MIN-64ALIB is installed.
Do you have OS-Core.C-MIN-64ALIB installed?"
Dennis - Thanks for the reply. I checked in /usr/lib/pa20_64. I don't see unix98.o. Can you pl elaborate slightly on OS-Core.C-MIN-64ALIB? My understanding is that as 32 bit unix98.o is part of standard installation - same would apply to 64 bit OS-Core.C-MIN-64ALIB. I had installed 64 bit HP gcc 4.4.3 successfully - which I assume would happen only if 64 bit OS-Core.C-MIN-64ALIB is installed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2011 12:37 AM
тАО05-19-2011 12:37 AM
Re: file "unix98.o": No such file or directory - 64 bit ld error
>Can you elaborate slightly on OS-Core.C-MIN-64ALIB?
swlist OS-Core.C-MIN-64ALIB
(You don't have this optional product installed?)
>My understanding is that as 32 bit unix98.o is part of standard installation - same would apply to 64 bit OS-Core.C-MIN-64ALIB.
I doubt it. Perhaps the default is geared to deploy applications, not develop them. Though being in C-MIN is more apt to be installed.
>I had installed 64 bit HP gcc 4.4.3 successfully - which I assume would happen only if 64 bit OS-Core.C-MIN-64ALIB is installed.
I doubt there is any dependency between the two. aC++ doesn't know about that needed fileset. (Of course if it isn't there, we don't try to use it. :-)
swlist OS-Core.C-MIN-64ALIB
(You don't have this optional product installed?)
>My understanding is that as 32 bit unix98.o is part of standard installation - same would apply to 64 bit OS-Core.C-MIN-64ALIB.
I doubt it. Perhaps the default is geared to deploy applications, not develop them. Though being in C-MIN is more apt to be installed.
>I had installed 64 bit HP gcc 4.4.3 successfully - which I assume would happen only if 64 bit OS-Core.C-MIN-64ALIB is installed.
I doubt there is any dependency between the two. aC++ doesn't know about that needed fileset. (Of course if it isn't there, we don't try to use 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