Operating System - HP-UX
1833772 Members
2150 Online
110063 Solutions
New Discussion

compile of vsftpd 2.0.3 on HP-UX 11.11

 
SOLVED
Go to solution
HPP
Regular Advisor

compile of vsftpd 2.0.3 on HP-UX 11.11

Hi,
i am compiling vsftpd 2.0.3 on HP-UX 11.11. I am getting the following error message

sysdeputil.c: In function `vsf_sysdep_check_auth':
sysdeputil.c:289: warning: initialization from incompatible pointer type
sysdeputil.c: In function `vsf_sysutil_setproctitle_internal':
sysdeputil.c:827: warning: assignment discards qualifiers from pointer target type
sysdeputil.c: In function `vsf_insert_uwtmp':
sysdeputil.c:1146: warning: implicit declaration of function `updwtmpx'
sysdeputil.c:1146: error: `WTMPX_FILE' undeclared (first use in this function)
sysdeputil.c:1146: error: (Each undeclared identifier is reported only once
sysdeputil.c:1146: error: for each function it appears in.)
sysdeputil.c: In function `vsf_remove_uwtmp':
sysdeputil.c:1166: error: `WTMPX_FILE' undeclared (first use in this function)
*** Error exit code 1

Stop.

I looked into two threads on ITRC which describes what to do, but it is not working for me.

I am not a programmer. Can someone please help me in this regard.

Thanks
PAd
Be Teachable
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: compile of vsftpd 2.0.3 on HP-UX 11.11

Shalom Padmanabha,

I'm not a great compiler either.

vsftp was designed for Linux. Probably the only way to fix it is to make code changes to accomodate HP-UX.

Did you read the instructions and at least make sure the suitable compilers and libraries (gcc,gtk+) re installed on the system.

You can probably find the pre-requisites in:
http://hpux.connect.org.uk/

If you go to http://software.hp.com

you can get Proftpd, from the Internet Expres s package, and install that without compiling.

HP-UX also comes with the wu-fptd ftp server which works well, though its not the most secure in the world.

You could also use secure shell, which now ships as part of the OS or can be had at software.hp.com and use it as a secure replacement for ftp traffic. There are secure ftp clients available for Windows at no charge.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
rick jones
Honored Contributor

Re: compile of vsftpd 2.0.3 on HP-UX 11.11

Indeed, on my HP-UX 11.11 system I see no define for WTMPX_FILE in any of the include files:

$ find /usr/include -exec grep -l WTMPX_FILE {} \;
$

you might see if the folks at http://hpux.cs.utah.edu/ (a mirror of http://hpux.connect.org.uk/) happen to have a precompiled binary. You might also look at the HP Internet Express bits (software.hp.com) as the stuff may be there (not sure though).

What were the two threads that described what to do?
there is no rest for the wicked yet the virtuous have no pillows
Ermin Borovac
Honored Contributor
Solution

Re: compile of vsftpd 2.0.3 on HP-UX 11.11

In the sysdeputil.c you will find the following section. Add the second last line as noted and recompile.

#ifdef __hpux
#include
#ifdef SF_DISCONNECT
#define VSF_SYSDEP_HAVE_HPUX_SENDFILE
#endif
#include
#include
#ifdef PSTAT_SETCMD
#define VSF_SYSDEP_HAVE_HPUX_SETPROCTITLE
#endif
#undef VSF_SYSDEP_HAVE_UTMPX <<< add this line
#endif
HPP
Regular Advisor

Re: compile of vsftpd 2.0.3 on HP-UX 11.11

Hi All,
Thank you all for the quick response. The response from Ermin was very helpfull.
Compile was successfull for sysdeputil.c.
But i am getting this error now

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 `vsf_sysutil_setproctitle_internal':
sysdeputil.c:828: warning: assignment discards qualifiers from pointer target type
gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o ls.o postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o banner.o filestr.o parseconf.o secutil.o ascii.o oneprocess.o twoprocess.o privops.o standalone.o hash.o tcpwrap.o ipaddrparse.o access.o features.o readwrite.o ssl.o sysutil.o sysdeputil.o -Wl,-s `./vsf_findlibs.sh`
ld: Can't find library for -lpam
Fatal error.
collect2: ld returned 1 exit status
*** Error exit code 1


Shared library libpam.sl exists in /usr/lib.

Thanks
PAd
Be Teachable
HPP
Regular Advisor

Re: compile of vsftpd 2.0.3 on HP-UX 11.11

Hi All,
I was able to successfully compile vsftpd on HP-UX 11.11 with 32 bit gcc.

Thanks to all who responded to my questions. Points will be assigned.

PAd
Be Teachable