[MDEV-4930] CONNECT storage engine does not compile on OSX 10.8 Created: 2013-08-21  Updated: 2013-08-26  Resolved: 2013-08-22

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.4
Fix Version/s: 10.0.5

Type: Bug Priority: Major
Reporter: Vladislav Vaintroub Assignee: Olivier Bertrand
Resolution: Fixed Votes: 0
Labels: None


 Description   

Reported by a user (he has problems creating a JIRA account currently, so he wrote to me directly).

Problem: MariaDB 10.0.4 does not compile on Mac OS X 10.8

Error message:

In file included from /Users/ck/Software/mariadb-10.0.4/sql/item.h:3668:
/Users/ck/Software/mariadb-10.0.4/sql/item_xmlfunc.h:25:9: warning:
unknown pragma
ignored [-Wunknown-pragmas]
#pragma interface /* gcc class implementation */
^
In file included from
/Users/ck/Software/mariadb-10.0.4/storage/connect/ha_connect.cc:129:
In file included from
/Users/ck/Software/mariadb-10.0.4/storage/connect/tabxcl.h:4:
/Users/ck/Software/mariadb-10.0.4/storage/connect/tabutil.h:73:41:
error: cannot
initialize return object of type 'PSZ' (aka 'char *') with an
rvalue of type
'const char *'
virtual PSZ GetServer(void)

{return (Tdbp) ? Tdbp->GetServer() : "?";}

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
make[2]: *** [storage/connect/CMakeFiles/connect.dir/ha_connect.cc.o]
Error 1
make[1]: *** [storage/connect/CMakeFiles/connect.dir/all] Error 2



 Comments   
Comment by Olivier Bertrand [ 2013-08-22 ]

I did see it (as a warning) when compiling on ubuntu and fixed it
yesterday in revno 3798.
(however, I cannot connect to the JIRA site. I'll try again to morrow)

Comment by Olivier Bertrand [ 2013-08-22 ]

I just changed:
PSZ GetServer(void)

{return (Tdbp) ? Tdbp->GetServer() : "?";}

to:
PSZ GetServer(void)

{return (Tdbp) ? Tdbp->GetServer() : (PSZ)"?";}

This eliminates the gcc warning but I could not test if it solves the error on MAC.

Comment by Christian Kirsch (Inactive) [ 2013-08-26 ]

Thanks. I'm the original bug reporter (but at that time I couldn't create an account here because of a botched captcha). The compile time error on Mac OS X 10.8 is gone now.

Christian

Generated at Thu Feb 08 07:00:19 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.