Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

Compiling vsftpd 3.0.2 on HPUX 11.31 (IA 64)

BR769215
Occasional Advisor

Compiling vsftpd 3.0.2 on HPUX 11.31 (IA 64)

Hello.

 

I tried to compile vsftpd 3.0.2 on HPUX environment (HPUX 11.31).

 

I received an error:

 

cc1: warnings being treated as errors
sysutil.c: In function 'vsf_sysutil_accept_timeout':
sysutil.c:1721: warning: passing argument 3 of 'accept' from incompatible pointer type
sysutil.c: In function 'vsf_sysutil_connect_timeout':
sysutil.c:1806: warning: passing argument 5 of 'getsockopt' from incompatible pointer type
sysutil.c: In function 'vsf_sysutil_getsockname':
sysutil.c:1832: warning: passing argument 3 of 'getsockname' from incompatible pointer type
sysutil.c: In function 'vsf_sysutil_getpeername':
sysutil.c:1857: warning: passing argument 3 of 'getpeername' from incompatible pointer type
*** Error exit code 1

 

Any solution?

 

Regards

Wojtek Pilecki

4 REPLIES
Dennis Handly
Acclaimed Contributor

Re: Compiling vsftpd 3.0.2 on HP-UX 11.31 (IA 64)

Looking at accept(2), it appears there are three types for that addrlen, based on the standard.

Laurent Menase
Honored Contributor

Re: Compiling vsftpd 3.0.2 on HP-UX 11.31 (IA 64)

Hi,

What compile options are you using?

and what is the type of pointer passed?

 

Do you compile in 32 or 64 bits?

 

BR769215
Occasional Advisor

Re: Compiling vsftpd 3.0.2 on HP-UX 11.31 (IA 64)

Yes, using compiler in 32bit mode is better in my cause.

Thank You.

 

But I get another error:

 

cc1: warnings being treated as errors

tcpwrap.c: In function 'vsf_tcp_wrapper_ok':

tcpwrap.c:32: warning: implicit declaration of function 'fromhost'

*** Error exit code 1

 

I veryfied all *.h and *.c files in vsftpd pack.

There is no definition of function 'fromhost'.

 

Any ideas?

 

Regards

W.P.

Dennis Handly
Acclaimed Contributor

Re: Compiling vsftpd 3.0.2 on HP-UX 11.31 (IA 64)

>tcpwrap.c: In function 'vsf_tcp_wrapper_ok':

 

Is there conditional compilation that will exclude this code?

 

This explains fromhost:

http://www.opensource.apple.com/source/tcp_wrappers/tcp_wrappers-6/tcp_wrappers/fromhost.c