ERRORS: rpm.spec

Elan Ruusamäe glen at pld-linux.org
Tue Jan 10 17:45:54 CET 2017


On 10.01.2017 18:38, Jeffrey Johnson wrote:
> 	What is the issue here?
and some more sources (c++) affected:

/usr/lib64/ccache/x86_64-pld-linux-gcc -DHAVE_CONFIG_H -I.  -I. -I. 
-I./build -I./lib -I./lib -I./rpmdb -I./rpmio -I./misc -I./lua/local 
-I./lua/local -I./lua -I./lua  -DRPM_OS_LINUX=040134 
-I/usr/include/db5.2 -I/usr/include/ossp-uuid -I/usr/include/ossp-uuid 
-fopenmp -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 
-fno-debug-types-section -fvar-tracking-assignments -g2 
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong 
--param=ssp-buffer-size=4 -fPIC -march=x86-64 -gdwarf-4 
-fno-debug-types-section -fvar-tracking-assignments -g2  -D_GNU_SOURCE 
-D_REENTRANT -DIAM_RPMBT -DIAM_RPMDB -DIAM_RPMEIU -DIAM_RPMK -DIAM_RPMQV 
-o rpm.o -c ./rpmqv.cc
In file included from /usr/include/c++/6.3.0/stdlib.h:36:0,
                  from ./system.h:196,
                  from ./rpmqv.cc:1:
/usr/include/c++/6.3.0/cstdlib:143:11: error: '::getenv' has not been 
declared
    using ::getenv;
            ^~~~~~
In file included from ./system.h:196:0,
                  from ./rpmqv.cc:1:
/usr/include/c++/6.3.0/stdlib.h:62:12: error: 'std::getenv' has not been 
declared
  using std::getenv;
             ^~~~~~
make[2]: *** [Makefile:1653: rpm.o] Error 1
make[2]: Leaving directory 
'/home/users/glen/rpm/BUILD/x86_64-linux/rpm-5.4.15'


didn't even know rpm5 requires g++  to compile!

-- 
glen



More information about the pld-devel-en mailing list