- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to build statically linked executables.... (ak...
Operating System - HP-UX
1824216
Members
3582
Online
109669
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
Forums
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
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
тАО09-29-2003 07:31 AM
тАО09-29-2003 07:31 AM
How to build statically linked executables.... (aka build OpenSSH 3.7.1p2)
I'm trying to build OpenSSH 3.7.1p2... Already I am successful with compiling using gcc 3.3.1, the latest Zlib, tcpwrappers and OpenSSL installables from the HPUX Connect web site. I also created a depot form the built executables.. and installed on a different machne... When running ssh , it complains it is missing /usr/local/lib/libcrypto.sl.0.9.7 which is part of the SSL package which I have not installed thinking it will be compiled in...
My question, what compile directives (or link directive) should I use so that my SSH executables will no longer require Zlib, tcpwrappers and SSL libraries to be installed so it will run properly..?
My question, what compile directives (or link directive) should I use so that my SSH executables will no longer require Zlib, tcpwrappers and SSL libraries to be installed so it will run properly..?
Hakuna Matata.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2003 07:53 AM
тАО09-29-2003 07:53 AM
Re: How to build statically linked executables.... (aka build OpenSSH 3.7.1p2)
Refer to shared library objects, like in Solaris. In HP-UX there are only hard and soft links and a hard link is an inode.
And I would include /usr/local/lib/libcrypto.sl.0.9.7 in another way. Does this URL help?:
http://hpux.cict.fr/hppd/hpux/Networking/Admin/openssh-2.5.1p1/
And I would include /usr/local/lib/libcrypto.sl.0.9.7 in another way. Does this URL help?:
http://hpux.cict.fr/hppd/hpux/Networking/Admin/openssh-2.5.1p1/
Support Fatherhood - Stop Family Law
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2003 08:23 AM
тАО09-29-2003 08:23 AM
Re: How to build statically linked executables.... (aka build OpenSSH 3.7.1p2)
My question is is how do I build (gcc or ld directive?) so that an executable is "statically" linked. I think it means an executable will compile-in the necessary objects from an external library so it is totally independent and can stand alone (without that external library being installed first on a machine).
Hakuna Matata.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2003 08:40 AM
тАО09-29-2003 08:40 AM
Re: How to build statically linked executables.... (aka build OpenSSH 3.7.1p2)
I'm not a big fan of gcc but the gcc option is -static (and possibly -static-libgcc). Man gcc for details.
Note: you may have to download the source for some libraries and create an archive (.a) library first.
Note: you may have to download the source for some libraries and create an archive (.a) library first.
If it ain't broke, I can fix that.
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.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP