2015-07-27 1 views
0

J'essaie d'installer NETBSD pkgsrc en mode non privilégié sur RHEL4 avec GCC 3.4.6. Tout d'abord, cette configuration est-elle trop ancienne?Erreur de syntaxe lors de l'installation de NetBSD pkgsrc sur RHEL 4

J'ai téléchargé la dernière version stable de http://ftp.netbsd.org/pub/pkgsrc/stable/pkgsrc.tar.gz.

Lorsque vous exécutez le script d'amorçage en utilisant la commande suivante je reçois une erreur de syntaxe:

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

La ligne qui est à l'origine du problème est:

#if !HAVE_DECL_ISBLANK 
int  isblank(int); 
#endif 

Répondre

0

j'ai changé le define qui est à l'origine du problème à:

#ifndef HAVE_DECL_ISBLANK 
int  isblank(int); 
#endif 

Et il semble avoir terminé correctement, alors que h J'ai d'autres problèmes maintenant.