Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22571 - mysql build failed (with gcc 3.3 ) fast patch appended
Summary: mysql build failed (with gcc 3.3 ) fast patch appended
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-10 13:25 UTC by Bernd Martin Wollny
Modified: 2004-01-03 19:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Martin Wollny 2003-06-10 13:25:45 UTC
Hello, 

The File sql/mysqld.cc declares to variables allow_severity and deny_severity. 
This two variables are allredy defined in /usr/include/tcpd.h provided by
tcp-wrappers. 

as a fast pacth you can use  this one:
---------------------  snipp ---------------  
diff -Naur orig/sql/mysqld.cc new/sql/mysqld.cc
--- orig/sql/mysqld.cc  2003-06-10 22:22:10.000000000 +0200
+++ new/sql/mysqld.cc   2003-06-10 22:21:38.000000000 +0200
@@ -101,8 +101,8 @@
 #ifdef NEED_SYS_SYSLOG_H
 #include <sys/syslog.h>
 #endif /* NEED_SYS_SYSLOG_H */
-int allow_severity = LOG_INFO;
-int deny_severity = LOG_WARNING;
+//int allow_severity = LOG_INFO;
+//int deny_severity = LOG_WARNING;
 
 #ifdef __STDC__
 #define my_fromhost(A)    fromhost(A)
-------- snipp -------------------
or remove line 104 and line 105 foem sql/mysqld.cc


bye
  bernd
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-19 01:29:01 UTC
I need a GCC3.3 box to test this on, so I'll sort it out then.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-11 10:37:03 UTC
Fixed in CVS.
Comment 3 SpanKY gentoo-dev 2003-12-26 17:52:15 UTC
is this patch still needed ?
with the following packages i was able to emerge with and without the patch:
dev-db/mysql-4.0.17
sys-apps/tcp-wrappers-7.6-r7
sys-devel/gcc-3.3.2-r4
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-03 19:32:37 UTC
I believe tcp-wrappers or something else got a patch that fixed it in a different way.