Sponsored Content
Operating Systems HP-UX depot generating hpux 11.11 workstationmain Post 18427 by ortsvorsteher on Thursday 28th of March 2002 08:49:36 AM
Old 03-28-2002
depot generating hpux 11.11 workstationmain

Hello,

we running on a hpux workstation hpux 11.11 ( model B180 L ) latest relaese from december 2001. now we would like to install an tool which will allow us to generate our own depots. this programm names mkpkg ( relaese 3.0 alpha 5 ) and we downloaded it from http://www.hpl.hp.com/personal/Carl_Staelin/ .

In the INSTALL file is described how to install it. After the make command the installation breaks with message

bb: /tmp/mkpkg-3.0alpha5 #make
cc -Ae -O -o getpw getpw.c
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored.
(Bundled) cc: "getpw.c", line 28: error 1705: Function prototypes are an ANSI feature.
*** Error exit code 1

In line 28 in /tmp/*/getpw.c we found this:

main(int ac, char *av[])
{
int c;
uid_t uid;
char *name;
struct passwd *p;
char *usage = "getpw [-n] [-p] [-u] [-g] [-G] [-h] [-s] <uid>|<uname>";

.

We do not understand what really is meaned. Is there anybody who can help us?

THX
 

10 More Discussions You Might Find Interesting

1. HP-UX

VNC depot

Hi All, I'm having a very difficult time compiling VNC for HPUX 11.0. Is there a vnc depot sitting somewhere out there ? Thanks a bunch, KENT (1 Reply)
Discussion started by: kxchen_home
1 Replies

2. HP-UX

configuration of depot file.

Hi all, I am new to hp-ux.I installed depot file.But i don't know how to configure that depot file.If anybody knows the configuration of depot file please help me. It's urgent, because i have to configure that depot file. Thanks & Regards, Balaraju. (2 Replies)
Discussion started by: balarajum
2 Replies

3. HP-UX

Binaries/Depot for Subversion 1.4.3 for HP/UX 11.11

Could anyone help me out by providing binaries/depot for subversion 1.4.3? The hpux version is: HP-UX myhappybox B.11.11 U 9000/800 I am having trouble compiling the sources for hpux, the provided dependancies are extracted, but it continually falls over. We have previously had svn... (3 Replies)
Discussion started by: spud
3 Replies

4. HP-UX

Depot file properties

Hi How can we identify the informations like Author, meta data, dependency and other information from a depot file? (1 Reply)
Discussion started by: sethumadhavan
1 Replies

5. HP-UX

Creating a depot

Hi. I am working on creating a depot that should be relocatable(I should be able to install it to a directory of my choice). The hp-ux help library talks about the variables SW_LOCATION and SW_ROOT_DIRECTORY to accomplish this. I have set the is_relocatable parameter to true in my psf. I... (1 Reply)
Discussion started by: JStone
1 Replies

6. Shell Programming and Scripting

Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.

I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies

7. Infrastructure Monitoring

HPUX 11. net-snmp depot file

Dose any know know where I can find the HPUX net-snmp depot file for HPUX b.11.11 I found the 11.23 version which of course will not install. Any help would be greatly appreciated thanks. (0 Replies)
Discussion started by: krisarmstrong
0 Replies

8. HP-UX

pwage-hpux-T for Trusted HPUX servers

I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email. original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies

9. HP-UX

Regarding Depot in HP Unix

Hi, Can anyone tell me how to know the files on the HP Unix server associated with the installed depot? BR, Prasanth (2 Replies)
Discussion started by: prasanth438
2 Replies

10. HP-UX

DEPOT software

I am using SAM and it is asking for the location of the DEPOT software. I don't know what the DEPOT software is. Can anyone explain and tell me where the default location for the software is? Thanks in advance (3 Replies)
Discussion started by: Randydog
3 Replies
GETPW(3)						     Linux Programmer's Manual							  GETPW(3)

NAME
getpw - Re-construct password line entry SYNOPSIS
#define _GNU_SOURCE #include <sys/types.h> #include <pwd.h> int getpw(uid_t uid, char *buf); DESCRIPTION
The getpw() function reconstructs the password line entry for the given user ID uid in the buffer buf. The returned buffer contains a line of format name:passwd:uid:gid:gecos:dir:shell The passwd structure is defined in <pwd.h> as follows: struct passwd { char *pw_name; /* username */ char *pw_passwd; /* user password */ uid_t pw_uid; /* user ID */ gid_t pw_gid; /* group ID */ char *pw_gecos; /* real name */ char *pw_dir; /* home directory */ char *pw_shell; /* shell program */ }; RETURN VALUE
The getpw() function returns 0 on success; on error, it returns -1, and errno is set to indicate the error. ERRORS
EINVAL buf is NULL. ENOENT No user corresponding to uid. ENOMEM Insufficient memory to allocate passwd structure. FILES
/etc/passwd password database file CONFORMING TO
SVr2. BUGS
The getpw() function is dangerous as it may overflow the provided buffer buf. It is obsoleted by getpwuid(3). SEE ALSO
endpwent(3), fgetpwent(3), getpwent(3), getpwnam(3), getpwuid(3), putpwent(3), setpwent(3), passwd(5) COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. GNU
2007-12-12 GETPW(3)
All times are GMT -4. The time now is 03:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy