Can't compile ftp-proxy under Suse 7.2
Hi! I have some problems to compile ftp-proxy 1.7 (1.7.p7). I use Suse 7.2 with kernel 2.4.4. When I first tried : ./configure --with-regex make I got an output that said to delete some includes in proc_ftp.c and to change the makefile. I deleted the specified includes and changed the Makefile in the ./ftp-proxy directory to include the right files from the new kernel. Here are the corresponding lines: proc_ftp.o: proc_ftp.c $(CC) -g -O2 -c -I. -I.. -I/lib/modules/2.4.4-4GB/build/include $< But make still gives many warnings and errors (please see below). Surely I did something wrong. Please give me a more exact help on install under Suse 7.2. I have the originally installed glibc-2.2.2-38 and gcc-2.95.3-52. Any hints? TIA Regards Daniel ---------------------------------------------------------------------------------------------------------------------------------------------------------- falcon1:/usr/src/packages/SOURCES/proxy-suite-1.7 # make ::::::::::::: make 'all' in ./doc make[1]: Entering directory `/usr/src/packages/SOURCES/proxy-suite-1.7/doc' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/packages/SOURCES/proxy-suite-1.7/doc' ::::::::::::: make 'all' in ./common make[1]: Entering directory `/usr/src/packages/SOURCES/proxy-suite-1.7/common' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/packages/SOURCES/proxy-suite-1.7/common' ::::::::::::: make 'all' in ./ftp-proxy make[1]: Entering directory `/usr/src/packages/SOURCES/proxy-suite-1.7/ftp-proxy' gcc -g -O2 -c -I. -I.. -I/lib/modules/2.4.4-4GB/build/include proc_ftp.c proc_ftp.c:84: warning: `struct file' declared inside parameter list proc_ftp.c:84: warning: its scope is only this definition or declaration, which is probably not what you want. proc_ftp.c:84: warning: `struct inode' declared inside parameter list proc_ftp.c:86: warning: `struct file' declared inside parameter list proc_ftp.c:86: warning: `struct inode' declared inside parameter list proc_ftp.c:132: variable `proc_ftp_operations' has initializer but incomplete type proc_ftp.c:133: warning: excess elements in struct initializer proc_ftp.c:133: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:134: warning: excess elements in struct initializer proc_ftp.c:134: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:135: warning: excess elements in struct initializer proc_ftp.c:135: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:136: warning: excess elements in struct initializer proc_ftp.c:136: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:137: warning: excess elements in struct initializer proc_ftp.c:137: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:138: warning: excess elements in struct initializer proc_ftp.c:138: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:139: warning: excess elements in struct initializer proc_ftp.c:139: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:140: warning: excess elements in struct initializer proc_ftp.c:140: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:141: warning: excess elements in struct initializer proc_ftp.c:141: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:142: warning: excess elements in struct initializer proc_ftp.c:142: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:143: warning: excess elements in struct initializer proc_ftp.c:143: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:144: warning: excess elements in struct initializer proc_ftp.c:144: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:145: warning: excess elements in struct initializer proc_ftp.c:145: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:146: warning: excess elements in struct initializer proc_ftp.c:146: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:147: warning: excess elements in struct initializer proc_ftp.c:147: warning: (near initialization for `proc_ftp_operations') proc_ftp.c:150: variable `proc_ftp_inode_operations' has initializer but incomplete type proc_ftp.c:151: warning: excess elements in struct initializer proc_ftp.c:151: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:152: warning: excess elements in struct initializer proc_ftp.c:152: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:153: warning: excess elements in struct initializer proc_ftp.c:153: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:154: warning: excess elements in struct initializer proc_ftp.c:154: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:155: warning: excess elements in struct initializer proc_ftp.c:155: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:156: warning: excess elements in struct initializer proc_ftp.c:156: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:157: warning: excess elements in struct initializer proc_ftp.c:157: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:158: warning: excess elements in struct initializer proc_ftp.c:158: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:159: warning: excess elements in struct initializer proc_ftp.c:159: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:160: warning: excess elements in struct initializer proc_ftp.c:160: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:161: warning: excess elements in struct initializer proc_ftp.c:161: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:162: warning: excess elements in struct initializer proc_ftp.c:162: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:163: warning: excess elements in struct initializer proc_ftp.c:163: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:164: warning: excess elements in struct initializer proc_ftp.c:164: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:165: warning: excess elements in struct initializer proc_ftp.c:165: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:166: warning: excess elements in struct initializer proc_ftp.c:166: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:167: warning: excess elements in struct initializer proc_ftp.c:167: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:168: warning: excess elements in struct initializer proc_ftp.c:168: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:169: warning: excess elements in struct initializer proc_ftp.c:169: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:170: warning: excess elements in struct initializer proc_ftp.c:170: warning: (near initialization for `proc_ftp_inode_operations') proc_ftp.c:173: variable `proc_ftp' has initializer but incomplete type proc_ftp.c:174: warning: excess elements in struct initializer proc_ftp.c:174: warning: (near initialization for `proc_ftp') proc_ftp.c:174: warning: excess elements in struct initializer proc_ftp.c:174: warning: (near initialization for `proc_ftp') proc_ftp.c:174: warning: excess elements in struct initializer proc_ftp.c:174: warning: (near initialization for `proc_ftp') proc_ftp.c:175: `S_IFREG' undeclared here (not in a function) proc_ftp.c:175: `S_IRUSR' undeclared here (not in a function) proc_ftp.c:175: `S_IWUSR' undeclared here (not in a function) proc_ftp.c:175: warning: excess elements in struct initializer proc_ftp.c:175: warning: (near initialization for `proc_ftp') proc_ftp.c:175: warning: excess elements in struct initializer proc_ftp.c:175: warning: (near initialization for `proc_ftp') proc_ftp.c:175: warning: excess elements in struct initializer proc_ftp.c:175: warning: (near initialization for `proc_ftp') proc_ftp.c:175: warning: excess elements in struct initializer proc_ftp.c:175: warning: (near initialization for `proc_ftp') proc_ftp.c:176: warning: excess elements in struct initializer proc_ftp.c:176: warning: (near initialization for `proc_ftp') proc_ftp.c:176: warning: excess elements in struct initializer proc_ftp.c:176: warning: (near initialization for `proc_ftp') proc_ftp.c:177: warning: excess elements in struct initializer proc_ftp.c:177: warning: (near initialization for `proc_ftp') proc_ftp.c:177: warning: excess elements in struct initializer proc_ftp.c:177: warning: (near initialization for `proc_ftp') proc_ftp.c:178: warning: excess elements in struct initializer proc_ftp.c:178: warning: (near initialization for `proc_ftp') proc_ftp.c:179: warning: excess elements in struct initializer proc_ftp.c:179: warning: (near initialization for `proc_ftp') proc_ftp.c:179: warning: excess elements in struct initializer proc_ftp.c:179: warning: (near initialization for `proc_ftp') proc_ftp.c:180: warning: excess elements in struct initializer proc_ftp.c:180: warning: (near initialization for `proc_ftp') proc_ftp.c:181: warning: excess elements in struct initializer proc_ftp.c:181: warning: (near initialization for `proc_ftp') proc_ftp.c:181: warning: excess elements in struct initializer proc_ftp.c:181: warning: (near initialization for `proc_ftp') proc_ftp.c:182: warning: excess elements in struct initializer proc_ftp.c:182: warning: (near initialization for `proc_ftp') proc_ftp.c:183: warning: excess elements in struct initializer proc_ftp.c:183: warning: (near initialization for `proc_ftp') proc_ftp.c:183: warning: excess elements in struct initializer proc_ftp.c:183: warning: (near initialization for `proc_ftp') proc_ftp.c:204: warning: `struct file' declared inside parameter list proc_ftp.c:204: warning: `struct inode' declared inside parameter list proc_ftp.c:206: conflicting types for `proc_ftp_read' proc_ftp.c:84: previous declaration of `proc_ftp_read' proc_ftp.c:239: warning: `struct file' declared inside parameter list proc_ftp.c:239: warning: `struct inode' declared inside parameter list proc_ftp.c:241: conflicting types for `proc_ftp_write' proc_ftp.c:86: previous declaration of `proc_ftp_write' proc_ftp.c: In function `init_module': proc_ftp.c:360: `proc_root' undeclared (first use in this function) proc_ftp.c:360: (Each undeclared identifier is reported only once proc_ftp.c:360: for each function it appears in.) proc_ftp.c:360: dereferencing pointer to incomplete type proc_ftp.c:361: dereferencing pointer to incomplete type proc_ftp.c:370: dereferencing pointer to incomplete type proc_ftp.c:370: dereferencing pointer to incomplete type proc_ftp.c:371: dereferencing pointer to incomplete type proc_ftp.c: In function `cleanup_module': proc_ftp.c:402: invalid use of undefined type `struct proc_dir_entry' proc_ftp.c:403: invalid use of undefined type `struct proc_dir_entry' proc_ftp.c:403: invalid use of undefined type `struct proc_dir_entry' proc_ftp.c:404: invalid use of undefined type `struct proc_dir_entry' make[1]: *** [proc_ftp.o] Error 1 make[1]: Leaving directory `/usr/src/packages/SOURCES/proxy-suite-1.7/ftp-proxy' make: *** [all] Error 1
On Mon, Jul 02, 2001 at 07:26:49PM +0200, "Daniel Erd?s" wrote:
Hi!
Hi!
I have some problems to compile ftp-proxy 1.7 (1.7.p7). I use Suse 7.2 with kernel 2.4.4.
When I first tried :
./configure --with-regex make
I got an output that said to delete some includes in proc_ftp.c and to change the makefile. I deleted the specified includes and changed the Makefile in the ./ftp-proxy directory to include the right files from the new kernel. Here are the corresponding lines:
proc_ftp.o: proc_ftp.c $(CC) -g -O2 -c -I. -I.. -I/lib/modules/2.4.4-4GB/build/include $<
--disable-proc-mods
But make still gives many warnings and errors (please see below). Surely I did something wrong. Please give me a more exact help on install under Suse 7.2.
Use configure switches from spec file (from source-rpm in zq-series or in
ftp://ftp.suse.com/pub/projects/proxy-suite/suse/i386/7.2/proxy-suite.spec
don't forget aclocal ; autoheader ; autoconf!
Gruesse,
Marius Tomaschewski
participants (2)
-
"Daniel Erdös"
-
Marius Tomaschewski