Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566138 - gnustep-libs/sope-2.3.2 fails to build - /usr/include/mysql/mysql/client_plugin.h:103:38: fatal error: mysql/plugin_auth_common.h: No such file or directory
Summary: gnustep-libs/sope-2.3.2 fails to build - /usr/include/mysql/mysql/client_plug...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-11-18 15:49 UTC by Russell Knighton
Modified: 2016-03-10 10:54 UTC (History)
2 users (show)

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


Attachments
sope-2.3.1-mysql-preamble.patch (sope-2.3.1-mysql-preamble.patch,851 bytes, patch)
2015-11-18 15:53 UTC, Russell Knighton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Russell Knighton 2015-11-18 15:49:48 UTC
First of all, thanks for including sope/sogo into the maintree at last :-)

When compiling with the mysql use flag enabled, the following error occurs:
--------------------------
x86_64-pc-linux-gnu-gcc NSCalendarDate+MySQL4Val.m -c \
      -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -pthread -fPIC -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -m
arch=corei7-avx -O2 -pipe -fno-stack-protector -fgnu-runtime -fconstant-string-class=NSConstantString -I../GDLAccess -I.. -I../.. -I../../sope-core/ -I../../sope-core/NGExtensions -I. -I/va
r/tmp/portage/gnustep-libs/sope-2.3.2/work/GNUstep/Library/Headers -I/usr/local/include -I/usr/include \
       -o obj/MySQL.obj/NSCalendarDate+MySQL4Val.m.o
In file included from /usr/include/mysql/mysql.h:64:0,
                 from MySQL4Values.h:36,
                 from MySQL4Values.m:26:
/usr/include/mysql/mysql/client_plugin.h:103:38: fatal error: mysql/plugin_auth_common.h: No such file or directory
 #include <mysql/plugin_auth_common.h>
                                      ^
compilation terminated.
/usr/share/GNUstep/Makefiles/rules.make:479: recipe for target 'obj/MySQL.obj/MySQL4Values.m.o' failed
gmake[5]: *** [obj/MySQL.obj/MySQL4Values.m.o] Error 1
gmake[5]: *** Waiting for unfinished jobs....
In file included from /usr/include/mysql/mysql.h:64:0,
                 from MySQL4Values.h:36,
                 from MySQL4Adaptor.m:30:
/usr/include/mysql/mysql/client_plugin.h:103:38: fatal error: mysql/plugin_auth_common.h: No such file or directory
 #include <mysql/plugin_auth_common.h>
                                      ^
compilation terminated.
--------------------------

Reproducible: Always
Comment 1 Russell Knighton 2015-11-18 15:52:11 UTC
I used to run my own local copy from a local repo - last was 2.3.1, and I had the exact same error, but I created a patch for it to fix.

It is caused simply by sope-gdl1/MySQL/GNUmakefile.preamble incorrectly determining the location of the MySQL libs. I'll upload my fix now.
Comment 2 Russell Knighton 2015-11-18 15:53:12 UTC
Created attachment 417304 [details, diff]
sope-2.3.1-mysql-preamble.patch

Also applies cleanly on 2.3.2
Comment 3 Bernard Cafarelli gentoo-dev 2016-02-18 09:59:14 UTC
Thanks for the report and patch! I applied it to current versions in tree.

Can you send it upstream too? It is basically a makefile fix when using mysql, and they merged hasufell's pull request quickly:
https://github.com/inverse-inc/sope/pulls
Comment 4 Bernard Cafarelli gentoo-dev 2016-03-10 10:54:42 UTC
Sent upstream: https://github.com/inverse-inc/sope/pull/37
(and patch used in all current versions in tree)