Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP!!! - Solaris Vsftp Problem

Status
Not open for further replies.
Feb 3, 2006
3
US
Hello,

I'm trying to install vsftp on a solaris 9 netra 105. I'm getting the following error when I try to compile.
Does anyone have an idea why this may be happening?
My boss needs this working yesterday. I tried sftp with chrooted dirs and it seemed like it was more trouble than it's worth.

Thanks

[root@ccap77]:/usr/sbin/vsftpd-2.0.4
# make
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 ssl.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c sysutil.c -O2 -Wall -W -Wshadow -idirafter dummyinc
sysutil.c: In function `vsf_sysutil_chroot':
sysutil.c:2443: warning: implicit declaration of function `setenv'
sysutil.c: In function `vsf_sysutil_tzset':
sysutil.c:2481: structure has no member named `tm_gmtoff'
*** Error code 1
make: Fatal error: Command failed for target `sysutil.o'
[root@ccap77]:/usr/sbin/vsftpd-2.0.4
#
 
Hear is the code where (I think) the program is looking for tm_gmtoff... As you can see, this code should be run only if your OS is FreeBSD, OpenBSD or NetBSD... There has to be some type of configuration files you need to set up the declares you OS as Solaris. Then the variable s_timezone will be set by the timezone variable.

if(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
{
time_t the_time = 0;
struct tm* p_tm = localtime(&the_time);
s_timezone = p_tm->tm_gmtoff * -1;
}
else
s_timezone = timezone;
endif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top