1826428 Members
4156 Online
109692 Solutions
New Discussion

compile vsftpd

 
feuillet
Advisor

compile vsftpd

Hi all!

I am installing vsftpd on hpux 11iv1, but I encoutered a problem:

sysdeputil.c: In function 'vsf_sysdep_check_auth':
sysdeputil.c:290: warning: initialization from imcompatible pointer type
sysdeputil.c: In function 'do_sendfile':
sysdeputil.c:626: warning: unused variable 'error'
sysdeputil.c: In function 'vsf_sysutil_setproctitle_internal':
sysdeputil.c:828: warning: assignement discards qualifiers from pointer target type
sysdeputil.c: In function 'vsf_sysutil_send_fd':
sysdeputil.c:1049: error: 'struct msghdr' has no member named 'msg_accrights'
sysdeputil.c:1050: error: 'struct msghdr' has no member named 'msg_accrightslen'
sysdeputil.c: In function 'vsf_sysutil_recv_fd':
sysdeputil.c:1072: error: 'struct msghdr' has no member named 'msg_accrights'
sysdeputil.c: error: 'struct msghdr' has no member named 'msg_accrightslen'

Stop.


I follow the instruction spécify on :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=872780

But I have still this problem. The solution on link above is for the version 11iv2 and me I work the version 11iv1.
This is a problem?
Have you got the solution?

Thanks for the informations
Ingrid
8 REPLIES 8
Muthukumar_5
Honored Contributor

Re: compile vsftpd

That problem is based on wtmp file. However, this is based on structure member. structure msghdr is taking from sys/socket.h with elemenets as,

struct msghdr {
caddr_t msg_name; /* optional address */
int msg_namelen; /* size of address */
struct iovec *msg_iov; /* scatter array for data */
int msg_iovlen; /* # of elements in msg_iov */
caddr_t msg_accrights; /* access rights */
int msg_accrightslen; /* size of msg_accrights */
}

Check the header files inclusion and compile again.

-Muthu
Easy to suggest when don't know about the problem!
feuillet
Advisor

Re: compile vsftpd

Hi Muthu

Thanks, your solution helps me ;-) but the problem is still here.
In attached, you find the log of news errors.
Muthukumar_5
Honored Contributor

Re: compile vsftpd

what you did ? sysdeputil.c:199: error: redefinition of 'struct msghdr' is saying that you changd structure??

Plz post your change informations.

-Muthu
Easy to suggest when don't know about the problem!
feuillet
Advisor

Re: compile vsftpd

I search the structure msghdr in my file and I didn't find it so I add this structure in my file.

Is it a bad idea?

feuillet
Advisor

Re: compile vsftpd

Indeed I think that I didn't understand your message!! could you explain that you said please?
Muthukumar_5
Honored Contributor

Re: compile vsftpd

Do you have a line as #include in sysdeputil.c source file. struct msghdr is read from there only. what is there in /usr/include/sys/socket.h file for struct msghdr {}; definition?

-Muthu
Easy to suggest when don't know about the problem!
feuillet
Advisor

Re: compile vsftpd

yes I have a line #include and in attahched you will find the struct msghdr in socket.h file
HPP
Regular Advisor

Re: compile vsftpd

Hi Muthu,
Can u please give us further directions to compile vsftpd on HP-UX 11.23 (11iv2).

I am getting the following error message:

# make
gcc -c sysdeputil.c -O2 -Wall -W -Wshadow -idirafter dummyinc
sysdeputil.c: In function 'vsf_sysdep_check_auth':
sysdeputil.c:290: warning: initialization from incompatible pointer type
sysdeputil.c: In function 'do_sendfile':
sysdeputil.c:626: warning: unused variable 'error'
sysdeputil.c: In function 'vsf_sysutil_setproctitle_internal':
sysdeputil.c:828: warning: assignment discards qualifiers from pointer target type
sysdeputil.c: In function 'vsf_sysutil_send_fd':
sysdeputil.c:1049: error: 'struct msghdr' has no member named 'msg_accrights'
sysdeputil.c:1050: error: 'struct msghdr' has no member named 'msg_accrightslen'
sysdeputil.c: In function 'vsf_sysutil_recv_fd':
sysdeputil.c:1072: error: 'struct msghdr' has no member named 'msg_accrights'
sysdeputil.c:1073: error: 'struct msghdr' has no member named 'msg_accrightslen'
*** Error exit code 1

Stop.

Thanks
PAd
Be Teachable