0

我正在尝试使用 GCC 3.4.6 在 RHEL4 上以非特权模式安装 NETBSD pkgsrc。首先这个设置是不是太老了?

我从http://ftp.netbsd.org/pub/pkgsrc/stable/pkgsrc.tar.gz下载了最新的稳定版本。

使用以下命令运行引导脚本时,出现语法错误:

./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
4

1 回答 1

0

我将导致问题的定义更改为:

#ifndef HAVE_DECL_ISBLANK
int     isblank(int); 
#endif

它似乎已经正确完成,尽管我现在遇到了其他问题。

于 2015-07-27T23:50:47.803 回答