Menu

#18 Linker errors when building with GCC 10 (workaround provided)

2.3
open
nobody
5
2020-11-13
2020-05-16
No

Hi there.

I'm the current maintainer of the pam_ssh package¹ in the AUR (Archlinux User Repository).

With the upgrade to GCC 10, I've have to explicitly add -fcommon to CFLAGS in order to build the project, otherwise the build fails because of linker errors. This is due to GCC 10 becoming more strict² regarding missing extern in global variables in header files, which apparently leads to some undesirable duplication.

I understand that this is not critical for now, since the workaround is easy to implement, but wanted to let you know in case you find it desirable to refactor the code to make it more compliant, and thus making the workaround redundant.

Also note that I would be glad to help implementing the refactor.

At any rate, thanks a lot for taking the time to keep maintaining pam_ssh!

Greetings,

A happy camper :-)

¹: https://aur.archlinux.org/packages/pam_ssh
²: https://gcc.gnu.org/gcc-10/porting_to.html#common

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.