按照这上面做的,http://freeunix.3322.org/docn/FreeBSD_04.html
一个步骤都没放过,在make 的时候出现了以下错误,怎么处理呀!?
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c log.c
- In file included from ../include/conf.h:123,
- from log.c:31:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c bindings.c
- In file included from ../include/conf.h:123,
- from bindings.c:30:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c scoreboard.c
- In file included from ../include/conf.h:123,
- from scoreboard.c:31:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c feat.c
- In file included from ../include/conf.h:123,
- from feat.c:30:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c netio.c
- In file included from ../include/conf.h:123,
- from netio.c:29:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c response.c
- In file included from ../include/conf.h:123,
- from response.c:29:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c ident.c
- In file included from ../include/conf.h:123,
- from ident.c:31:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c data.c
- In file included from ../include/conf.h:123,
- from data.c:32:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c modules.c
- In file included from ../include/conf.h:123,
- from modules.c:31:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c auth.c
- In file included from ../include/conf.h:123,
- from auth.c:31:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c fsio.c
- In file included from ../include/conf.h:123,
- from fsio.c:31:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c mkhome.c
- In file included from ../include/conf.h:123,
- from mkhome.c:30:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- cd modules/ && make modules
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c mod_core.c
- In file included from ../include/conf.h:123,
- from mod_core.c:31:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c mod_xfer.c
- In file included from ../include/conf.h:123,
- from mod_xfer.c:32:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c mod_auth_unix.c
- In file included from ../include/conf.h:123,
- from mod_auth_unix.c:31:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c mod_auth_file.c
- In file included from ../include/conf.h:123,
- from mod_auth_file.c:29:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c mod_auth.c
- In file included from ../include/conf.h:123,
- from mod_auth.c:32:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c mod_ls.c
- In file included from ../include/conf.h:123,
- from mod_ls.c:31:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c mod_log.c
- In file included from ../include/conf.h:123,
- from mod_log.c:31:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c mod_site.c
- In file included from ../include/conf.h:123,
- from mod_site.c:31:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c mod_auth_pam.c
- In file included from ../include/conf.h:123,
- from mod_auth_pam.c:41:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c mod_sql.c
- In file included from ../include/conf.h:123,
- from mod_sql.c:28:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c mod_sql_mysql.c
- In file included from ../include/conf.h:123,
- from mod_sql_mysql.c:138:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c mod_quotatab.c
- In file included from ../include/conf.h:123,
- from mod_quotatab.h:38,
- from mod_quotatab.c:34:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c mod_quotatab_sql.c
- In file included from ../include/conf.h:123,
- from mod_quotatab.h:38,
- from mod_quotatab_sql.c:34:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- mod_quotatab_sql.c: In function `sqltab_create':
- mod_quotatab_sql.c:135: warning: implicit declaration of function `call_module_cmd'
- mod_quotatab_sql.c:135: warning: assignment makes pointer from integer without a cast
- mod_quotatab_sql.c: In function `sqltab_lookup':
- mod_quotatab_sql.c:183: warning: assignment makes pointer from integer without a cast
- mod_quotatab_sql.c: In function `sqltab_write':
- mod_quotatab_sql.c:418: warning: assignment makes pointer from integer without a cast
- srcdir=. ./glue.sh mod_core.o mod_xfer.o mod_auth_unix.o mod_auth_file.o mod_auth.o mod_ls.o mod_log.o mod_site.o mod_auth_pam.o mod_sql.o mod_sql_mysql.o mod_quotatab.o mod_quotatab_sql.o
- gcc -DFREEBSD4_9 -DFREEBSD4 -I.. -I../include -I/usr/local/include/mysql -O2 -Wall -c module_glue.c
- In file included from ../include/conf.h:123,
- from module_glue.c:5:
- /usr/include/sys/socket.h:54: warning: useless keyword or type name in empty declaration
- /usr/include/sys/socket.h:54: warning: empty declaration
- gcc -Llib -o proftpd src/main.o src/timers.o src/sets.o src/pool.o src/regexp.o src/dirtree.o src/support.o src/netaddr.o src/inet.o src/log.o src/bindings.o src/scoreboard.o src/feat.o src/netio.o src/response.o src/ident.o src/data.o src/modules.o src/auth.o src/fsio.o src/mkhome.o modules/mod_core.o modules/mod_xfer.o modules/mod_auth_unix.o modules/mod_auth_file.o modules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_auth_pam.o modules/mod_quotatab_sql.o modules/mod_quotatab.o modules/mod_sql_mysql.o modules/mod_sql.o modules/module_glue.o -lsupp -lcrypt -lutil -lm -lz -lmysqlclient -lpam -L/usr/local/lib/mysql
- modules/mod_quotatab_sql.o: In function `sqltab_create':
- modules/mod_quotatab_sql.o(.text+0x283): undefined reference to `call_module_cmd'
- modules/mod_quotatab_sql.o: In function `sqltab_lookup':
- modules/mod_quotatab_sql.o(.text+0x3a6): undefined reference to `call_module_cmd'
- modules/mod_quotatab_sql.o: In function `sqltab_write':
- modules/mod_quotatab_sql.o(.text+0x96f): undefined reference to `call_module_cmd'
- *** Error code 1
- Stop in /home/proftpd.
复制代码 |