--- prophet-gpl/src/Utils.cpp 2016-11-30 16:19:08.000000000 -0700 +++ prophet-gpl-64/src/Utils.cpp 2021-02-09 10:00:55.812957291 -0700 @@ -88,6 +88,10 @@ char tmps[1000]; build_args.clear(); int cnt = fscanf(in, "%s", tmps); + if (cnt <= 0) { + std::cerr << "parseArgFile( " << arg_file.c_str() << "," + << tmps << "," << "build_args);" << std::endl; + } assert( cnt > 0); build_dir = tmps; // We need to put extra include directory arguments in to avoid compile error @@ -156,6 +160,7 @@ return ret; } + bool exist_directory(const std::string &dir) { struct stat sb; if ((stat(dir.c_str(), &sb) == 0) && S_ISDIR(sb.st_mode)) @@ -173,16 +178,32 @@ } std::string getFullPath(const std::string &path) { - char tmp[PATH_MAX]; - char * ret = realpath(path.c_str(), tmp); - assert( ret != 0); - return std::string(tmp); + char tmp[PATH_MAX]; + struct stat sb; + int x = lstat(path.c_str(),&sb); + if ((x==0) && (S_ISLNK(sb.st_mode))){ + std::cerr << "path '"<