免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2180 | 回复: 1
打印 上一主题 下一主题

[FTP] freebsd6上编译proftpd出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-13 15:52 |只看该作者 |倒序浏览
在freebsd6上编译proftpd-1.2.8时出错,本人对bsd不熟悉,望兄弟们指点一二,非常感谢.
错误如下:
configure时候出现warnning:
configure: WARNING: sys/mount.h: present but cannot be compiled
configure: WARNING: sys/mount.h: check for missing prerequisite headers?
configure: WARNING: sys/mount.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
这应该不是错误的关键所在,make时候出现下边错误:
60# make
cd lib/ && make lib
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c pr_fnmatch.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c strsep.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c vsnprintf.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c glibc-glob.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c glibc-mkstemp.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c pr-syslog.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c pwgrent.c
ar rc libsupp.a pr_fnmatch.o strsep.o vsnprintf.o glibc-glob.o glibc-mkstemp.o pr-syslog.o pwgrent.o getopt.o getopt1.o
ranlib libsupp.a
cd src/ && make src
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c main.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c timers.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c sets.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c pool.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c regexp.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c dirtree.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c support.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c inet.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c log.c
log.c:380: warning: conflicting types for built-in function 'log'
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c scoreboard.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c feat.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c netio.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c ident.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c data.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c modules.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c auth.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c fsio.c
cd modules/ && make modules
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c mod_core.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c mod_xfer.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c mod_auth.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c mod_ls.c
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c mod_log.c
mod_log.c: In function `get_next_meta':
mod_log.c:776: warning: long int format, int arg (arg 4)
mod_log.c:776: warning: long int format, int arg (arg 5)
mod_log.c:776: warning: long int format, int arg (arg 4)
mod_log.c:776: warning: long int format, int arg (arg 5)
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c mod_site.c
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
gcc  -DFREEBSD6_0 -DFREEBSD6 -I.. -I../include -O2 -Wall -c module_glue.c
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/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/module_glue.o -lsupp -lcrypt  -lutil -lpam
src/bindings.o(.text+0xe1): In function `pr_ipbind_accept_conn':
: undefined reference to `__errno_location'
src/bindings.o(.text+0x1b: In function `pr_ipbind_add_binds':
: undefined reference to `__errno_location'
src/bindings.o(.text+0x1f0): In function `pr_ipbind_add_binds':
: undefined reference to `__errno_location'
src/bindings.o(.text+0x26f): In function `pr_ipbind_add_binds':
: undefined reference to `__errno_location'
src/bindings.o(.text+0x296): In function `pr_ipbind_add_binds':
: undefined reference to `__errno_location'
src/bindings.o(.text+0x3b6): more undefined references to `__errno_location' follow
src/mkhome.o(.text+0x54b): In function `copy_dir':
: undefined reference to `readdir64'
src/mkhome.o(.text+0x66e): In function `copy_dir':
: undefined reference to `__errno_location'
src/mkhome.o(.text+0x6a2): In function `copy_dir':
: undefined reference to `__errno_location'
src/mkhome.o(.text+0x7ce): In function `create_home':
: undefined reference to `__errno_location'
src/mkhome.o(.text+0x806): In function `create_home':
: undefined reference to `__errno_location'
src/mkhome.o(.text+0x8ce): In function `create_home':
: undefined reference to `__errno_location'
src/mkhome.o(.text+0x904): more undefined references to `__errno_location' follow
modules/mod_auth_unix.o(.text+0x2f): In function `p_setpwent':
: undefined reference to `fopen64'
modules/mod_auth_unix.o(.text+0x43): In function `p_setpwent':
: undefined reference to `__errno_location'
modules/mod_auth_unix.o(.text+0xc3): In function `p_setgrent':
: undefined reference to `fopen64'
modules/mod_auth_unix.o(.text+0xd7): In function `p_setgrent':
: undefined reference to `__errno_location'
modules/mod_auth_unix.o(.text+0x62c): In function `_get_pw_info':
: undefined reference to `getspnam'
modules/mod_auth_unix.o(.text+0x730): In function `_get_pw_info':
: undefined reference to `endspent'
modules/mod_auth_unix.o(.text+0x784): In function `_get_pw_info':
: undefined reference to `__errno_location'
modules/mod_auth_unix.o(.text+0x7bd): In function `_get_pw_info':
: undefined reference to `__errno_location'
modules/mod_auth_unix.o(.text+0x7fc): In function `_get_pw_info':
: undefined reference to `__errno_location'
modules/mod_auth_file.o(.text+0x70): In function `af_open_file':
: undefined reference to `fopen64'
modules/mod_auth_file.o(.text+0x219): In function `af_setgrent':
: undefined reference to `__errno_location'
modules/mod_auth_file.o(.text+0x475): In function `af_setpwent':
: undefined reference to `__errno_location'
modules/mod_auth_file.o(.text+0xd73): In function `set_authgroupfile':
: undefined reference to `__strtol_internal'
modules/mod_auth_file.o(.text+0xda3): In function `set_authgroupfile':
: undefined reference to `__strtol_internal'
modules/mod_auth_file.o(.text+0x1167): In function `set_authuserfile':
: undefined reference to `__strtol_internal'
modules/mod_auth_file.o(.text+0x1197): In function `set_authuserfile':
: undefined reference to `__strtol_internal'
modules/mod_auth_pam.o(.text+0x89): In function `pam_exchange':
: undefined reference to `__strdup'
modules/mod_auth_pam.o(.text+0x1dc): In function `modpam_exit':
: undefined reference to `__errno_location'
modules/mod_auth_pam.o(.text+0x212): In function `modpam_exit':
: undefined reference to `__errno_location'
modules/mod_auth_pam.o(.text+0x2d2): In function `modpam_exit':
: undefined reference to `__errno_location'
modules/mod_auth_pam.o(.text+0x614): In function `pam_auth':
: undefined reference to `__errno_location'
modules/mod_auth_pam.o(.text+0x651): In function `pam_auth':
: undefined reference to `__errno_location'
modules/mod_auth_pam.o(.text+0x7c5): more undefined references to `__errno_location' follow
*** Error code 1
谢谢各位!

论坛徽章:
0
2 [报告]
发表于 2006-04-17 13:24 |只看该作者
是从ports安装的吗?
# pkg_add -r ftp://ftp.freebsd.org/pub/FreeBS ... p/proftpd-1.2.8.tgz

读一下源码包解开后的README.FreeBSD文件
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP