I found links about ucred.h and user credentials, but I don't know how to apply 
this information in my system.

http://docs.huihoo.com/darwin/kernel-programming-guide/security/chapter_3_section_4.html

http://manpages.ubuntu.com/manpages/jaunty/man9/crdup.9freebsd.html

I downloaded the ucred.h and I got teh same erros too...
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/head/ucred.h?a=true

I tried (just a test) to install a cpan module, but got this error:

cpan[1]> install Sun::Solaris::Ucred
Checking if your kit is complete...
Looks good
Writing Makefile for Sun::Solaris::Ucred
cp Ucred.pm blib/lib/Sun/Solaris/Ucred.pm
/usr/bin/perl5.8.8 /usr/lib64/perl5/5.8.8/ExtUtils/xsubpp  -typemap 
/usr/lib64/perl5/5.8.8/ExtUtils/typemap -typemap typemap  Ucred.xs > Ucred.xsc 
&& mv Ucred.xsc Ucred.c
x86_64-pc-linux-gnu-gcc -c   -fno-strict-aliasing -pipe 
-Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/include/gdbm -O2 -pipe   -DVERSION=\"1.1\" -DXS_VERSION=\"1.1\" -fPIC 
"-I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE"   Ucred.c
Ucred.xs:12:19: error: ucred.h: Arquivo ou diretório não encontrado (not found)
Ucred.xs:13:18: error: priv.h: Arquivo ou diretório não encontrado(not found)
Ucred.xs:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘Sun__Solaris__Privilege__Privset’
Ucred.xs:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘Sun__Solaris__Ucred__Ucred’
Ucred.xs:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ 
token
Ucred.c: In function ‘XS_Sun__Solaris__Ucred_ucred_get’:
Ucred.c:71: error: ‘Sun__Solaris__Ucred__Ucred’ undeclared (first use in this 
function)
Ucred.c:71: error: (Each undeclared identifier is reported only once
Ucred.c:71: error: for each function it appears in.)
Ucred.c:71: error: ‘RETVAL’ undeclared (first use in this function)
Ucred.c: In function ‘XS_Sun__Solaris__Ucred_ucred_geteuid’:
Ucred.c:88: error: ‘Sun__Solaris__Ucred__Ucred’ undeclared (first use in this 
function)
Ucred.c:88: error: ‘uc’ undeclared (first use in this function)
Ucred.c:89: warning: ISO C90 forbids mixed declarations and code
Ucred.c:93: error: expected expression before ‘)’ token
Ucred.c: In function ‘XS_Sun__Solaris__Ucred_ucred_getruid’:
Ucred.c:120: error: ‘Sun__Solaris__Ucred__Ucred’ undeclared (first use in this 
function)
Ucred.c:120: error: ‘uc’ undeclared (first use in this function)
Ucred.c:121: warning: ISO C90 forbids mixed declarations and code
Ucred.c:125: error: expected expression before ‘)’ token
Ucred.c: In function ‘XS_Sun__Solaris__Ucred_ucred_getsuid’:
Ucred.c:152: error: ‘Sun__Solaris__Ucred__Ucred’ undeclared (first use in this 
function)
Ucred.c:152: error: ‘uc’ undeclared (first use in this function)
Ucred.c:153: warning: ISO C90 forbids mixed declarations and code
Ucred.c:157: error: expected expression before ‘)’ token
Ucred.c: In function ‘XS_Sun__Solaris__Ucred_ucred_getegid’:
Ucred.c:184: error: ‘Sun__Solaris__Ucred__Ucred’ undeclared (first use in this 
function)
Ucred.c:184: error: ‘uc’ undeclared (first use in this function)
Ucred.c:185: warning: ISO C90 forbids mixed declarations and code
Ucred.c:189: error: expected expression before ‘)’ token
Ucred.c: In function ‘XS_Sun__Solaris__Ucred_ucred_getrgid’:
Ucred.c:216: error: ‘Sun__Solaris__Ucred__Ucred’ undeclared (first use in this 
function)
Ucred.c:216: error: ‘uc’ undeclared (first use in this function)
Ucred.c:217: warning: ISO C90 forbids mixed declarations and code
Ucred.c:221: error: expected expression before ‘)’ token
Ucred.c: In function ‘XS_Sun__Solaris__Ucred_ucred_getsgid’:
Ucred.c:248: error: ‘Sun__Solaris__Ucred__Ucred’ undeclared (first use in this 
function)
Ucred.c:248: error: ‘uc’ undeclared (first use in this function)
Ucred.c:249: warning: ISO C90 forbids mixed declarations and code
Ucred.c:253: error: expected expression before ‘)’ token
Ucred.c: In function ‘XS_Sun__Solaris__Ucred_ucred_getpid’:
Ucred.c:280: error: ‘Sun__Solaris__Ucred__Ucred’ undeclared (first use in this 
function)
Ucred.c:280: error: ‘uc’ undeclared (first use in this function)
Ucred.c:281: warning: ISO C90 forbids mixed declarations and code
Ucred.c:285: error: expected expression before ‘)’ token
Ucred.c: In function ‘XS_Sun__Solaris__Ucred_ucred_getzoneid’:
Ucred.c:312: error: ‘Sun__Solaris__Ucred__Ucred’ undeclared (first use in this 
function)
Ucred.c:312: error: ‘uc’ undeclared (first use in this function)
Ucred.c:313: error: ‘zoneid_t’ undeclared (first use in this function)
Ucred.c:313: error: expected ‘;’ before ‘RETVAL’
Ucred.c:317: error: expected expression before ‘)’ token
Ucred.c:322: error: ‘RETVAL’ undeclared (first use in this function)
Ucred.c: In function ‘XS_Sun__Solaris__Ucred_ucred_getpflags’:
Ucred.c:344: error: ‘Sun__Solaris__Ucred__Ucred’ undeclared (first use in this 
function)
Ucred.c:344: error: ‘uc’ undeclared (first use in this function)
Ucred.c:345: error: ‘uint_t’ undeclared (first use in this function)
Ucred.c:345: error: expected ‘;’ before ‘flags’
Ucred.c:346: error: expected ‘;’ before ‘RETVAL’
Ucred.c:347: warning: ISO C90 forbids mixed declarations and code
Ucred.c:351: error: expected expression before ‘)’ token
Ucred.c:356: error: ‘RETVAL’ undeclared (first use in this function)
Ucred.c:356: error: ‘flags’ undeclared (first use in this function)
Ucred.c: In function ‘XS_Sun__Solaris__Ucred_ucred_getprivset’:
Ucred.c:370: error: ‘Sun__Solaris__Ucred__Ucred’ undeclared (first use in this 
function)
Ucred.c:370: error: ‘uc’ undeclared (first use in this function)
Ucred.c:371: warning: ISO C90 forbids mixed declarations and code
Ucred.xs:101: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘*’ token
Ucred.xs:101: error: ‘val’ undeclared (first use in this function)
Ucred.c:375: error: ‘Sun__Solaris__Privilege__Privset’ undeclared (first use in 
this function)
Ucred.c:375: error: ‘RETVAL’ undeclared (first use in this function)
Ucred.c:379: error: expected expression before ‘)’ token
Ucred.c: In function ‘XS_Sun__Solaris__Ucred_getpeerucred’:
Ucred.c:407: error: ‘Sun__Solaris__Ucred__Ucred’ undeclared (first use in this 
function)
Ucred.c:407: error: ‘RETVAL’ undeclared (first use in this function)
Ucred.c: In function ‘XS_Sun__Solaris__Ucred_ucred_getgroups’:
Ucred.c:427: error: ‘Sun__Solaris__Ucred__Ucred’ undeclared (first use in this 
function)
Ucred.c:427: error: ‘uc’ undeclared (first use in this function)
Ucred.xs:126: warning: ISO C90 forbids mixed declarations and code
Ucred.c:435: error: expected expression before ‘)’ token
Ucred.c: In function ‘XS_Sun__Solaris__Ucred__UcredPtr_DESTROY’:
Ucred.c:476: error: ‘Sun__Solaris__Ucred__Ucred’ undeclared (first use in this 
function)
Ucred.c:476: error: ‘uc’ undeclared (first use in this function)
Ucred.c:480: error: expected expression before ‘)’ token
make: ** [Ucred.o] Erro 1
  SUNCPAN/Sun-Solaris-Ucred-1.1.tar.gz
  /usr/bin/make -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 SUNCPAN/Sun-Solaris-Ucred-1.1.tar.gz         : make NO



Thanks, Eduardo.





________________________________
De: Eduardo Almeida Costa <[email protected]>
Para: [email protected]
Enviadas: Segunda-feira, 22 de Junho de 2009 17:05:09
Assunto: Re: Insatll Error - authd.c:38: error:    dereferencing pointer       
to incomplete type (Simon Yan)


Hi.

Thanks for your reply.

I got this error in both, Gentoo and Fedora.

Fedora:
Linux hati.nbcgib.uesc.br 2.6.27.24-170.2.68.fc10.i686 #1 SMP Wed May 20 
23:10:16 EDT 2009 i686 i686 i386 GNU/Linux
# ./configure
# make
make  all-am
make[1]: Entrando no diretório `/root/programas/authd-0.2.3'
gcc -DHAVE_CONFIG_H -I. -I.   -O2 -Wall -D_REENTRANT -g -g -O2 -MT auth.o -MD 
-MP -MF .deps/auth.Tpo -c -o auth.o auth.c
mv -f .deps/auth.Tpo .deps/auth.Po
rm -f libauth.a
ar cru libauth.a auth.o 
ranlib libauth.a
gcc -DHAVE_CONFIG_H -I. -I.   -O2 -Wall -D_REENTRANT -g -g -O2 -MT authd.o -MD 
-MP -MF .deps/authd.Tpo -c -o authd.o authd.c
authd.c:34: warning: ‘struct ucred’ declared inside parameter list
authd.c:34: warning: its scope is only this definition or declaration, which is 
probably not what you want
authd.c: In function ‘check_credentials’:
authd.c:38: error: dereferencing pointer to incomplete type
authd.c:38: error: dereferencing pointer to incomplete type
authd.c: In function ‘gen_signature’:
authd.c:62: warning: pointer targets in passing argument 5 of ‘RSA_sign’ differ 
in signedness
authd.c: In function ‘authd_thr’:
authd.c:82: error: invalid application of ‘sizeof’ to incomplete type ‘struct 
ucred’ 
authd.c:83: error: storage size of ‘ucred’ isn’t known
authd.c:87: warning: pointer targets in passing argument 5 of ‘getsockopt’ 
differ in signedness
authd.c:83: warning: unused variable ‘ucred’
make[1]: ** [authd.o] Erro 1
make[1]: Saindo do diretório `/root/programas/authd-0.2.3'
make: ** [all] Erro 2

Gentoo:
Linux fenrir 2.6.30-gentoo-r1 #1 SMP Fri Jun 12 12:11:52 BRT 2009 x86_64 
Intel(R) Xeon(TM) CPU 3.00GHz GenuineIntel GNU/Linux
# ./configure
# make
make  all-am
make[1]: Entrando no diretório `/root/programas/authd-0.2.3'
gcc -DHAVE_CONFIG_H -I. -I.   -O2 -Wall -D_REENTRANT -g -g -O2 -MT authd.o -MD 
-MP -MF .deps/authd.Tpo -c -o authd.o authd.c
authd.c:34: warning: ‘struct ucred’ declared inside parameter list
authd.c:34: warning: its scope is only this definition or declaration, which is 
probably not what you want
authd.c: In function ‘check_credentials’:
authd.c:38: error: dereferencing pointer to incomplete type
authd.c:38: error: dereferencing pointer to incomplete type
authd.c: In function ‘gen_signature’:
authd.c:62: warning: pointer targets in passing argument 5 of ‘RSA_sign’ differ 
in signedness
authd.c: In function ‘authd_thr’:
authd.c:82: error: invalid application of ‘sizeof’ to incomplete type ‘struct 
ucred’ 
authd.c:83: error: storage size of ‘ucred’ isn’t known
authd.c:87: warning: pointer targets in passing argument 5 of ‘getsockopt’ 
differ in signedness
authd.c:83: warning: unused variable ‘ucred’
authd.c: In function ‘main’:
authd.c:117: warning: ignoring return value of ‘daemon’, declared with 
attribute warn_unused_result
make[1]: ** [authd.o] Erro 1
make[1]: Saindo do diretório `/root/programas/authd-0.2.3'

Thanks, Eduardo.

 ---
Eduardo Almeida Costa (Duca)
Adm. de Redes e Sistemas - NBCGIB/UESC
Núcleo de Biologia Computacional e Gestão de Informações Biotecnológicas
73 3680-5212
---
Administração/Moderação Underlinux ---http://under-linux.org


Consulte o nosso wiki
---

Linux Counter: User 397804
________________________________
Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - 
Celebridades - Música - Esportes


      Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
------------------------------------------------------------------------------
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to