Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rniesen opened this issue Aug 28, 2018 · 3 comments
Closed

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

rniesen opened this issue Aug 28, 2018 · 3 comments

Comments

@rniesen
Copy link

rniesen commented Aug 28, 2018

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
Copy link
Member

yoe commented Aug 29, 2018

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
Copy link
Author

rniesen commented Aug 29, 2018

Here is the log

gcc is installed.

config.log

@yoe
Copy link
Member

yoe commented Aug 29, 2018

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.

@yoe yoe closed this as completed Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants