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

compile whith GCC 8.4.0 #12

Closed
blithe2015 opened this issue Dec 16, 2021 · 5 comments
Closed

compile whith GCC 8.4.0 #12

blithe2015 opened this issue Dec 16, 2021 · 5 comments

Comments

@blithe2015
Copy link

ptlib/unix/ptlib/pmachdep.h:56:13: error: conflicting declaration 'typedef int socklen_t'
bits/alltypes.h:394:18: note: previous declaration as 'typedef unsigned int socklen_t' typedef unsigned socklen_t;

@willamowius
Copy link
Owner

I have seen GCC 8 work at least on some Linux distributions. What OS / version do you see this issue on ?

@blithe2015
Copy link
Author

ubuntu 18.04 , compile openwrt ,package version at : 6411e77

@willamowius
Copy link
Owner

Hmm, my Ubuntu 18.04 ships with GCC 7.4.0 which compiles PTLib fine and I don't see a GCC 8 packet in the Ubuntu repo.
Also, I don't see where https://github.com/openwrt/openwrt is using PTLib.

@blithe2015
Copy link
Author

It seems that the version at that time is indeed not compatible with gcc8.0 and above. Many glibc functions have been abandoned.

@willamowius
Copy link
Owner

Please update to the current version.

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