我正在尝试在RHEL4的非特权模式下安装NETBSD pkgsrc,使用的是GCC 3.4.6。首先,这个设置是否太旧了?
我从http://ftp.netbsd.org/pub/pkgsrc/stable/pkgsrc.tar.gz下载了最新的稳定版本。
使用以下命令运行bootstrap脚本时,我遇到语法错误:
./bootstrap --unprivileged --prefix /the_directory_im_using/pkgtest --varbase /the_directory_im_using/var
/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/libarchive -I/the_directory_im_using/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch -DHAVE_NBCOMPAT_H=1 -I/the_directory_im_using/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat -I/usr/include -I. -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DINET6 -DWITH_SSL -DFTP_COMBINE_CWDS -c ftp.c
In file included from /the_directory_im_using/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat/nbcompat.h:50,
from ftp.c:69:
/the_directory_im_using/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat/nbcompat/ctype.h:44: error: syntax error before ')' token
*** Error code 1导致问题的代码行是:
#if !HAVE_DECL_ISBLANK
int isblank(int);
#endif发布于 2015-07-28 07:50:48
我将导致问题的定义更改为:
#ifndef HAVE_DECL_ISBLANK
int isblank(int);
#endif它似乎已经正确地完成了,尽管我现在有其他问题。
https://stackoverflow.com/questions/31664464
复制相似问题