Bug #42599 | error: `pthread_setschedprio' was not declared in this scope | ||
---|---|---|---|
Submitted: | 4 Feb 2009 16:02 | Modified: | 17 Jul 2009 3:19 |
Reporter: | Daniel Fischer | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 5.1+ | OS: | Solaris (10 x86) |
Assigned to: | Davi Arnaut | CPU Architecture: | Any |
[4 Feb 2009 16:02]
Daniel Fischer
[4 Feb 2009 17:50]
Valeriy Kravchuk
Thank you for a problem report. What gcc version do you use?
[4 Feb 2009 20:10]
Davi Arnaut
The /opt/csw/gcc3/include/pthread.h header used by gcc does not declare the pthread_setscheprio prototype, but the function is implemented.. which probably causes the autoconf check to succeed.
[5 Mar 2009 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[18 Jun 2009 23:23]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/76624 2960 Davi Arnaut 2009-06-18 Bug#42599: error: `pthread_setschedprio' was not declared in this scope The problem was that a pthread.h header used by gcc did not declare the pthread_setscheprio, yet the function is implemented by the function is implemented, causing a autoconf check to pass and compilation with C++ to fail. The solution is to add a autoconf check to ensure that the function is properly declared. @ configure.in Check that the pthread_setschedprio is declared.
[18 Jun 2009 23:55]
Davi Arnaut
Queued to 5.1-bugteam
[8 Jul 2009 13:30]
Bugs System
Pushed into 5.1.37 (revid:joro@sun.com-20090708131116-kyz8iotbum8w9yic) (version source revid:davi.arnaut@sun.com-20090618232147-i5ytql9whvtnao1z) (merge vers: 5.1.36) (pib:11)
[9 Jul 2009 7:37]
Bugs System
Pushed into 5.1.37 (revid:joro@sun.com-20090708131116-kyz8iotbum8w9yic) (version source revid:davi.arnaut@sun.com-20090618232147-i5ytql9whvtnao1z) (merge vers: 5.1.36) (pib:11)
[10 Jul 2009 11:20]
Bugs System
Pushed into 5.4.4-alpha (revid:anozdrin@bk-internal.mysql.com-20090710111017-bnh2cau84ug1hvei) (version source revid:davi.arnaut@sun.com-20090619000700-ppsfjcfwxki578qq) (merge vers: 5.4.4-alpha) (pib:11)
[17 Jul 2009 3:19]
Paul DuBois
Noted in 5.1.37, 5.4.4 changelogs. configure.in did not properly check for the pthread_setschedprio() function.
[12 Aug 2009 22:42]
Paul DuBois
Noted in 5.4.2 changelog because next 5.4 version will be 5.4.2 and not 5.4.4.
[15 Aug 2009 2:01]
Paul DuBois
Ignore previous comment about 5.4.2.
[26 Aug 2009 13:46]
Bugs System
Pushed into 5.1.37-ndb-7.0.8 (revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (version source revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (merge vers: 5.1.37-ndb-7.0.8) (pib:11)
[26 Aug 2009 13:46]
Bugs System
Pushed into 5.1.37-ndb-6.3.27 (revid:jonas@mysql.com-20090826105955-bkj027t47gfbamnc) (version source revid:jonas@mysql.com-20090826105955-bkj027t47gfbamnc) (merge vers: 5.1.37-ndb-6.3.27) (pib:11)
[26 Aug 2009 13:48]
Bugs System
Pushed into 5.1.37-ndb-6.2.19 (revid:jonas@mysql.com-20090825194404-37rtosk049t9koc4) (version source revid:jonas@mysql.com-20090825194404-37rtosk049t9koc4) (merge vers: 5.1.37-ndb-6.2.19) (pib:11)
[27 Aug 2009 16:32]
Bugs System
Pushed into 5.1.35-ndb-7.1.0 (revid:magnus.blaudd@sun.com-20090827163030-6o3kk6r2oua159hr) (version source revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (merge vers: 5.1.37-ndb-7.0.8) (pib:11)
[8 Oct 2009 2:51]
Paul DuBois
The 5.4 fix has been pushed to 5.4.2.