- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Missing files on linux
Categories
Company
Local Language
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
Discussions
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
Community
Resources
Forums
Blogs
- 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-14-2011 08:57 PM
06-14-2011 08:57 PM
Missing files on linux
Thanks in advance
Manish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2011 10:16 PM
06-14-2011 10:16 PM
Re: Missing files on linux
Which files are missing?
> [...] Linux, [...]
Not a very detailed description of anything.
> [...] is failing [...]
Not a very detailed description of anything.
As usual, showing actual commands with their
actual output can be more helpful than vague
descriptions or interpretations.
> [...] These functions are missing on Linux.
> [...]
They are? Evidence?
Is the (mysterious, unidentified) "one
application" failing when you run it, or are
you having trouble building it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2011 12:07 AM
06-15-2011 12:07 AM
Re: Missing files on linux
thanks for your prompt reply.
clio_svc.o: In function `main':
clio_svc.c:(.text+0xaf85): undefined reference to `svc_create'
collect2: ld returned 1 exit status
+ (( 1 ))
+ print -u2 'cc -o ./clio_svc clio_util.o clio_xdr.o clio_svc.o -pthread -lc -lnsl failed'
cc -o ./clio_svc clio_util.o clio_xdr.o clio_svc.o -pthread -lc -lnsl failed
+ return 1
make: *** [all] Error 1
In above error, "svc_create" is undefined reference. but on HP-UX we are not seeing this error and application is running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2011 12:01 AM
06-16-2011 12:01 AM
Re: Missing files on linux
I don't have any experience with RPC programming of any kind, but browsing through "man rpc" on Linux and "man svc_create" on HP-UX suggests that svc_create() is just a way to perform the work of svc
For the purpose of porting the application from HP-UX to Linux, you might create your own svc_create() function. You should make it take exactly the same arguments as HP-UX svc_create(), then make the appropriate svc
On HP-UX, the man page indicates svc_create uses two external sources of arguments for choosing the service type(s) to create: the NETPATH environment variable (if it exists), and the "netconf database". On Linux, the netconf database probably doesn't exist (I have no idea what it might be). So you'll have to make some implementation decisions of your own here.
The svc_create() does not allow you to specify which TCP/UDP port your service(s) should use, but in Linux, you can optionally set up a socket, bind it to the port you want and then use svctcp_create() or svcudp_bufcreate() and then svc_register() on the socket to turn it into a RPC service. Having the RPC services in fixed ports makes it easier to allow access to RPC services through firewalls.
(If you want the old behavior of assigning arbitrary ports for RPC services, use the constant RPC_ANYSOCK as the socket, in which case the svctcp_create() or svcudp_bufcreate() will automatically create a new socket for the service.)
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2011 10:59 PM
06-17-2011 10:59 PM
Re: Missing files on linux
Thanks a lot, it really appreciated for your prompt reply and all it worked for me and now m able to successfully run the application on Linux.
Regards
Manish