LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2003, 09:23 AM   #1
bingbang
Member
 
Registered: Nov 2003
Location: Bucuresti
Distribution: slack 12.0 freebsd 6.2
Posts: 45

Rep: Reputation: 15
proftpd installation problem


Hi!
I'm trying to compile proftpd from source and when I type "./cofigure" the configuration aborts and I get this message:

source file './modules/mod_cap.c' cannot be found -- aborting

But in my modules folder I do have a mod_cap.c file.
I'm using RH9, and when I install proftpd from rpm it works just fine. I don't try to waste your time, but after reading some posts on your forum (not all of them ) I realised that no one seems to have this problem, and I just wanted to know what's wrong.

Thanks
 
Old 11-22-2003, 09:51 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Were you in the proper directory when you issued ./configure?

# Guides to software management
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation
 
Old 11-22-2003, 09:53 AM   #3
bingbang
Member
 
Registered: Nov 2003
Location: Bucuresti
Distribution: slack 12.0 freebsd 6.2
Posts: 45

Original Poster
Rep: Reputation: 15
Yes I was (the folder that was created when I extracted the archive)
 
Old 11-22-2003, 12:55 PM   #4
bingbang
Member
 
Registered: Nov 2003
Location: Bucuresti
Distribution: slack 12.0 freebsd 6.2
Posts: 45

Original Poster
Rep: Reputation: 15
I installed some other software and the sequence .
/configure
make
make install
went just well. But I can not understand why in this case the file could not be found . I' ll check the link anyway. Thanks
 
Old 11-22-2003, 01:13 PM   #5
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 457

Rep: Reputation: 41
Could you post a bit more of the error message to give some context. The './modules/mod_cap.c' path indicated is relative to the location the build was at the moment so it might be relevant. Also, I just built and installed proftpd without a hitch, so with some context I might beable to compare your results with mine. I would presume that you used no particular configure options.
 
Old 11-22-2003, 03:27 PM   #6
bingbang
Member
 
Registered: Nov 2003
Location: Bucuresti
Distribution: slack 12.0 freebsd 6.2
Posts: 45

Original Poster
Rep: Reputation: 15
This is the output I get when I type "./configure"


checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
ln: creating symbolic link `README.mod_sql' to `../README.mod_sql': Operation not permitted
./configure: line 1475: cd: /mnt/windows/software: No such file or directory
checking for gcc... gcc
cat: confdefs.h: No such file or directory
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... cat: confdefs.h: No such file or directory
o
checking whether we are using the GNU C compiler... cat: confdefs.h: No such file or directory
yes
checking whether gcc accepts -g... cat: confdefs.h: No such file or directory
yes
checking for gcc option to accept ANSI C... cat: confdefs.h: No such file or directory
none needed
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... cat: confdefs.h: No such file or directory
cat: confdefs.h: No such file or directory
64
checking for _LARGE_FILES value needed for large files... no
checking whether the C compiler accepts -Wall... yes
checking for getopt... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for standalone crypt... no
checking for crypt in -lcrypt... yes
checking for standalone gethostbyname... yes
checking for standalone inet_aton... yes
checking for standalone nsl functions... yes
checking for standalone socket functions... yes
checking for _pw_stayopen variable... no
checking krb.h usability... no
checking krb.h presence... no
checking for krb.h... no
checking prot.h usability... no
checking prot.h presence... no
checking for prot.h... no
checking hpsecurity.h usability... no
checking hpsecurity.h presence... no
checking for hpsecurity.h... no
checking for hpsecurity.h workaround... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for memory.h... (cached) yes
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking for struct spwd.sp_warn... yes
checking for struct spwd.sp_inact... yes
checking for struct spwd.sp_expire... yes
checking security/pam_appl.h usability... no
checking security/pam_appl.h presence... no
checking for security/pam_appl.h... no
checking pam/pam_appl.h usability... no
checking pam/pam_appl.h presence... no
checking for pam/pam_appl.h... no
checking linux/capability.h usability... yes
checking linux/capability.h presence... yes
checking for linux/capability.h... yes
checking whether to enable mod_cap... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for strings.h... (cached) yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for sys/param.h... yes
checking for sys/mount.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for netinet/in_systm.h... yes
checking for netinet/ip.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for sys/stat.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/termios.h usability... yes
checking sys/termios.h presence... yes
checking for sys/termios.h... yes
checking sys/termio.h usability... no
checking sys/termio.h presence... no
checking for sys/termio.h... no
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking vmsdir.h usability... no
checking vmsdir.h presence... no
checking for vmsdir.h... no
checking utmpx.h usability... yes
checking utmpx.h presence... yes
checking for utmpx.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking for size_t... yes
checking for mode_t... yes
checking for off_t... yes
checking type of array argument to getgroups... gid_t
checking for timer_t... yes
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... yes
checking size of long long... 8
checking for off_t... (cached) yes
checking size of off_t... 8
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for umode_t... no
checking for ino_t... yes
checking for socklen_t... yes
checking utmp.h usability... yes
checking utmp.h presence... yes
checking for utmp.h... yes
checking whether your struct utmp has ut_user... yes
checking whether your struct utmp has ut_host... yes
checking whether your struct utmp has ut_exit... yes
checking whether your syslog.h defines LOG_CRON... yes
checking whether your syslog.h defines LOG_FTP... yes
checking for d_fd in DIR structure... no
checking for dd_fd in DIR structure... no
checking for __dd_fd in DIR structure... no
checking for working alloca.h... yes
checking for alloca... yes
checking for alloca in -lucb... no
checking whether gcc needs -traditional... no
checking whether setpgrp takes no argument... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for bcopy... yes
checking for crypt... yes
checking for fgetgrent... yes
checking for fgetpwent... yes
checking for flock... yes
checking for freeaddrinfo... yes
checking for gai_strerror... yes
checking for getaddrinfo... yes
checking for getcwd... yes
checking for gethostbyname2... yes
checking for gethostname... yes
checking for getnameinfo... yes
checking for getopt_long... yes
checking for gettimeofday... yes
checking for hstrerror... yes
checking for inet_aton... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for memcpy... yes
checking for mempcpy... yes
checking for mkdir... yes
checking for mkstemp... yes
checking for mlock... yes
checking for mlockall... yes
checking for munlock... yes
checking for munlockall... yes
checking for rmdir... yes
checking for select... yes
checking for setgroups... yes
checking for socket... yes
checking for statfs... yes
checking for strchr... yes
checking for strcoll... yes
checking for strerror... yes
checking for strsep... yes
checking for strtol... yes
checking for setprotoent... yes
checking for endprotoent... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for setsid... yes
checking for setgroupent... no
checking for seteuid... yes
checking for setegid... yes
checking for siginterrupt... yes
checking for setpgid... yes
checking for regcomp... yes
checking for tzset... yes
checking for pathconf... yes
checking for fpathconf... yes
checking for fgetspent... yes
checking for setpassent... no
checking for struct sockaddr_in.sin_len... no
checking whether struct addrinfo is defined... yes
checking whether struct sockaddr_storage is defined... yes
checking whether ss_family is defined... yes
checking whether ss_len is defined... no
checking whether __ss_len is defined... no
checking whether setgrent returns void... yes
checking for initscr in -lcurses... yes
checking for initscr in -lncurses... yes
checking for setproctitle... no
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking for setproctitle in -lutil... no
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking whether __progname and __progname_full are available... yes
checking which argv replacement method to use... writeable
checking whether printf supports %llu format... yes
source file './modules/mod_cap.c' cannot be found -- aborting

and this is the output "ls" produces:

[root@zgubiliticul proftpd-1.2.9]# ls
acconfig.h* contrib/ modules/ README.mod_sql*
aclocal.m4* copying* news* README.modules*
ChangeLog* credits* proftpd.spec* readme.pam*
confdefs.h* doc/ readme* README.ports*
config.guess* include/ readme.aix* README.Solaris2.5x*
config.h.in* install* README.capabilities* README.Unixware*
config.log* install-sh* README.cygwin* sample-configurations/
config.sub* lib/ README.FreeBSD* src/
configure* Makefile.in* README.IPv6* stamp-h.in*
configure.in* Make.rules.in* README.LDAP* utils/
 
Old 11-22-2003, 07:30 PM   #7
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 457

Rep: Reputation: 41
You have problems right from the beginning:
Quote:
ln: creating symbolic link `README.mod_sql' to `../README.mod_sql': Operation not permitted
./configure: line 1475: cd: /mnt/windows/software: No such file or directory
Are you perhaps building this in a readonly vfat windows location? Try it on an ext3 or other fully functional linux partition.

The error itself occurs in the configure script in a forloop round about line 16584 (I am using proftpd-1.2.9rc3, but the 1475 line appears the same, so the script may not have changed too much. There is a variable $ac_addl_modules which equals for me mod_cap.o. With srcdir=., the forloop assigns mod_cap.o to $module. The command "src=`echo "$module" | sed -e 's/\.o$//'`.c;" makes src=mod_cap.c . The configure script then tests to see if the src file exists " if test -f $srcdir/modules/$src -o -f $srcdir/contrib/$src; then"; if it does not it does the following "echo "source file '$srcdir/modules/$src' cannot be found -- aborting"", which is your error.

Actually, having written this, I am guessing besides not having permissions to write in ./contrib (there is a cd contrib on line 1473 of configure), you also may have a space in the path to the top of your directory tree. Note that it said there is no directory /mnt/windows/software ... if you were trying to build in say "/mnt/windows/software linux/proftpd-1.2", line 1475 cd $olddir would fail. $olddir would equal the right location, but cd would just read up to the space. This you might beable to fix by changing the line to cd "$olddir", but you still have the problems of the potentially readonly filesystem. I tested it by commenting out line 1475, and the configure script works fine until it reaches the point of your final error.

Well, let me know if I guessed right and what your results are. Thanks.
 
Old 11-23-2003, 05:11 AM   #8
bingbang
Member
 
Registered: Nov 2003
Location: Bucuresti
Distribution: slack 12.0 freebsd 6.2
Posts: 45

Original Poster
Rep: Reputation: 15
Talking

I managed to install it fron an ext3 partition . I have very little background in programming so I don't really understand your other explanations (sorry ) .
But anyway, I have a functional ftp server , so thanks for your time and patience.
 
Old 11-23-2003, 01:47 PM   #9
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 457

Rep: Reputation: 41
Glad you made it work!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PROFTPD Installation on RH 7.2 kevinm2 Linux - Newbie 7 09-21-2004 12:17 AM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 10:27 AM
locate proftpd.conf after installation mikage14 Linux - Newbie 3 05-03-2004 02:59 AM
proftpd problem dsgdevil Linux - General 5 10-13-2003 12:02 AM
Proftpd problem kelper Linux - Software 2 08-26-2003 10:08 PM


All times are GMT -5. The time now is 02:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration