Fedict / eid-mw

eID Middleware (main repository)
GNU Lesser General Public License v3.0
202 stars 78 forks source link

../../../libtool: line 1762: g++: command not found #78

Closed rniesen closed 6 years ago

rniesen commented 6 years ago

Hi,

Ik probeer de code te compileren onder opensuse:tumbleweed:20180502. De ./configure werkt zonder meldingen.

Bij de make gaat het fout:

CCLD beid-spr-changepin CC libbeidpkcs11_la-asn1.lo CXX libbeidpkcs11_la-cal.lo ../../../libtool: line 1762: g++: command not found make[1]: [Makefile:1519: libbeidpkcs11_la-cal.lo] Error 1 make[1]: Leaving directory '/tmp/eid-mw/eid-mw/cardcomm/pkcs11/src' make: [Makefile:1856: all-recursive] Error 1

Iemand een idee?

yoe commented 6 years ago

g++ is the C++ compiler. Since part of the middleware is written in C++, you absolutely need a C++ compiler to compile it. OpenSUSE packages this as gcc-c++, so make sure you have that package installed and try again.

However, the configure script does search for it, so it's weird that you didn't get any errors. Can you please attach your config.log to this issue?

rniesen commented 6 years ago

Here is the log

gcc is installed.

config.log

yoe commented 6 years ago

Yes, I know gcc is installed. However, gcc-c++ is not. These are not the same. config.log shows this, too. It turns out that falling back to g++ in case no C++ compiler was found is documented behaviour, so this is normal.

You need to run zypper install gcc-c++. It will work then. Alternatively, after running configure, you can also use the specfile in the rpm directory.

Since everything is working as designed, this is not a bug, so closing.