Journal Noryungi's Journal: Compiling vsftpd 2.0.7 on AIX 5.3
I have to say, I am always impressed by software that is well done. And vsftpd is definitely one.
To get back to the subject at hand: to compile vsftpd on IBM AIX 5.3, here is what you can try.
Download and install the following software on the target machine:
- gcc-4.2.0-3.aix5.3.ppc.rpm
- libgcc-4.2.0-3.aix5.3.ppc.rpm
- coreutils-5.2.1-2.aix5.1.ppc.rpm
- m4-1.4.1-1.aix5.1.ppc.rpm
All of these can be download as RPM packages, courtesy of IBM Corporation, from this page.
Once all of these are installed, using, for instance : rpm --install -vvv --percent, you should find yourself with the GNU make command in
bash-3.00$ ls -alF
/usr/bin/gcc
lrwxrwxrwx 1 root system 26 Sep 17 11:09/usr/bin/gcc@ -> ../../opt/freeware/bin/gcc*
Therefore, simply type the following:
Here is the output:
bash-3.00$ pwd &&
/opt/freeware/bin/make
/home/teamsys/packages/vsftpd-2.0.7
gcc -c main.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c utility.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c prelogin.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ftpcmdio.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c postlogin.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c privsock.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c tunables.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ftpdataio.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c secbuf.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ls.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c postprivparent.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c logging.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c str.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c netstr.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c sysstr.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c strlist.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c banner.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c filestr.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c parseconf.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c secutil.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ascii.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c oneprocess.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c twoprocess.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c privops.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c standalone.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c hash.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c tcpwrap.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ipaddrparse.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c access.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c features.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c readwrite.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c opts.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ssl.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c sysutil.c -O2 -Wall -W -Wshadow -idirafter dummyinc
sysutil.c: In function 'vsf_sysutil_accept_timeout':
sysutil.c:1672: warning: passing argument 3 of 'naccept' from incompatible pointer type
sysutil.c: In function 'vsf_sysutil_getsockname':
sysutil.c:1775: warning: passing argument 3 of 'ngetsockname' from incompatible pointer type
sysutil.c: In function 'vsf_sysutil_getpeername':
sysutil.c:1800: warning: passing argument 3 of 'ngetpeername' from incompatible pointer type
gcc -c sysdeputil.c -O2 -Wall -W -Wshadow -idirafter dummyinc
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 opts.o ssl.o sysutil.o sysdeputil.o -Wl,-s `./vsf_findlibs.sh`
That's all there is to it. Follow the instructions in the INSTALL and you should have a working vsftpd installed on your AIX machine in no time.
As, I said: impressive.
Compiling vsftpd 2.0.7 on AIX 5.3 More Login
Compiling vsftpd 2.0.7 on AIX 5.3
Slashdot Top Deals