- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- make w/gcc--need help
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
02-21-2001 10:40 AM
02-21-2001 10:40 AM
make w/gcc--need help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 11:04 AM
02-21-2001 11:04 AM
Re: make w/gcc--need help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 11:46 AM
02-21-2001 11:46 AM
Re: make w/gcc--need help
It looks like everytime there is an * in a declaration, gcc doesn't like it--the following is an excerpt from pam_modules.h
extern int
pam_sm_authenticate(
pam_handle_t *pamh,
int flags,
int argc,
const char **argv);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 12:08 PM
02-21-2001 12:08 PM
Re: make w/gcc--need help
If you are using a Makefile, then try and find a line in it that contains the string "-I /usr/include" and append "-I /usr/include/security" to it.
If you're running gcc from the command line, then try,
# gcc -I /usr/include/security -Wall -fPIC -c pam_radius_auth.c -o pam_radius_auth.o
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 12:15 PM
02-21-2001 12:15 PM
Re: make w/gcc--need help
Can you point out which line is #19 in the pam_modules.h snippet that you included?
I believe that Jim is suggesting that the pam_handle_t typedef isn't being defined prior to it use in pam_modules.h.
So you'll have to find which header file defines pam_handle_t and make sure that it gets included before pam_modules.h.
I wish I could be more help, but I haven't built this package myself.
-sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 12:45 PM
02-21-2001 12:45 PM
Re: make w/gcc--need help
pam_handle_t *pamh,
from the above snippet.
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 12:46 PM
02-21-2001 12:46 PM
Re: make w/gcc--need help
I added the -I/usr/include/security and got the same results.
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 12:59 PM
02-21-2001 12:59 PM
Re: make w/gcc--need help
Modify /usr/include/security/pam_modules.h
by adding on line 5 the following,
#include
*** Caveat, this modification is unlikely to be supported by HP, but I think it should work to get the needed type definitions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 01:11 PM
02-21-2001 01:11 PM
Re: make w/gcc--need help
pam_radius_auth.c: In function `ipstr2long':
pam_radius_auth.c:145: warning: subscript has type `char'
pam_radius_auth.c: In function `good_ipaddr':
pam_radius_auth.c:181: warning: subscript has type `char'
pam_radius_auth.c: In function `host2server':
pam_radius_auth.c:235: warning: subscript has type `char'
pam_radius_auth.c: In function `rad_converse':
pam_radius_auth.c:921: warning: passing arg 3 of `pam_get_item' from incompatibl
e pointer type
pam_radius_auth.c:924: warning: passing arg 2 of pointer to function from incomp
atible pointer type
pam_radius_auth.c: At top level:
pam_radius_auth.c:957: syntax error before `int'
pam_radius_auth.c: In function `pam_sm_authenticate':
pam_radius_auth.c:980: warning: passing arg 2 of `pam_get_user' from incompatibl
e pointer type
pam_radius_auth.c:1008: warning: passing arg 3 of `pam_get_item' from incompatib
le pointer type
pam_radius_auth.c:1022: warning: passing arg 3 of `pam_get_item' from incompatib
le pointer type
pam_radius_auth.c:1064: warning: passing arg 3 of `pam_get_item' from incompatib
le pointer type
pam_radius_auth.c:1067: warning: passing arg 3 of `add_attribute' discards quali
fiers from pointer target type
pam_radius_auth.c: At top level:
pam_radius_auth.c:1161: syntax error before `int'
pam_radius_auth.c: In function `pam_sm_setcred':
pam_radius_auth.c:1168: warning: passing arg 3 of `pam_get_data' from incompatib
le pointer type
pam_radius_auth.c: In function `pam_private_session':
pam_radius_auth.c:1193: warning: passing arg 2 of `pam_get_user' from incompatib
le pointer type
pam_radius_auth.c:1214: warning: passing arg 3 of `pam_get_item' from incompatib
le pointer type
pam_radius_auth.c: At top level:
pam_radius_auth.c:1261: syntax error before `int'
pam_radius_auth.c:1268: syntax error before `int'
pam_radius_auth.c:1279: syntax error before `int'
pam_radius_auth.c: In function `pam_sm_chauthtok':
pam_radius_auth.c:1299: warning: passing arg 2 of `pam_get_user' from incompatib
le pointer type
pam_radius_auth.c:1320: warning: passing arg 3 of `pam_get_item' from incompatib
le pointer type
pam_radius_auth.c:1329: warning: passing arg 3 of `pam_get_item' from incompatib
le pointer type
pam_radius_auth.c:1334: warning: passing arg 3 of `pam_get_item' from incompatib
le pointer type
*** Error exit code 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 01:24 PM
02-21-2001 01:24 PM
Re: make w/gcc--need help
I would imagine that the source code you're trying to compile came with several different README's and maybe an INSTALL file. I would look through these carefully to see if they have any pointers on compiling your source under HP-UX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 01:47 PM
02-21-2001 01:47 PM
Re: make w/gcc--need help
Thanks for trying. Unfortunately, I got the source from freradius.org and they said that the only thing it had been used on was Red Hat and Solaris. No one was interested in HP-UX.
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 11:45 PM
02-21-2001 11:45 PM
Re: make w/gcc--need help
I don't know if it will work, but you can try this.
Change following part in pam_radius_auth.h:
#ifdef sun
#define PAM_EXTERN extern
#define CONST
#else
#define CONST const
#endif
---->
#define PAM_EXTERN
#define CONST
Hope this helps a little bit,
Thomas