[MacPorts] #36568: mysql @5.5.27 build failure error: incomplete definition of type 'struct st_mysql_lex_string'

MacPorts noreply at macports.org
Thu Oct 11 13:08:00 PDT 2012


#36568: mysql @5.5.27 build failure error: incomplete definition of type 'struct
st_mysql_lex_string'
--------------------------+--------------------------------
 Reporter:  misc@…        |      Owner:  macports-tickets@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.1.2
 Keywords:  mountainlion  |       Port:  MySQL 5.5
--------------------------+--------------------------------
 On Mac OS X 10.8.2 with Xcode 4.5.1 the build of mysql server 5.5 fails.

 Command used to install
 {{{
 sudo port install mysql55-server
 --->  Computing dependencies for mysql55-server
 --->  Dependencies to be installed: mysql55
 --->  Fetching archive for mysql55
 --->  Attempting to fetch mysql55-5.5.27_0.darwin_12.x86_64.tbz2 from
 http://mse.uk.packages.macports.org/sites/packages.macports.org/mysql55
 --->  Attempting to fetch mysql55-5.5.27_0.darwin_12.x86_64.tbz2 from
 http://lil.fr.packages.macports.org/mysql55
 --->  Attempting to fetch mysql55-5.5.27_0.darwin_12.x86_64.tbz2 from
 http://packages.macports.org/mysql55
 --->  Fetching distfiles for mysql55
 --->  Attempting to fetch mysql-5.5.27.tar.gz from
 http://ftp.plusline.de/mysql/Downloads/MySQL-5.5/
 --->  Verifying checksum(s) for mysql55
 --->  Extracting mysql55
 --->  Applying patches to mysql55
 --->  Configuring mysql55
 --->  Building mysql55
 Error: org.macports.build for port mysql55 returned: command execution
 failed
 Error: Failed to install mysql55
 Please see the log file for port mysql55 for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mysql55/mysql55/main.log
 Error: The following dependencies were not installed: mysql55
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 Error: Processing of port mysql55-server failed
 }}}

 Build error that starts with

 {{{
 10: error: incomplete definition of type 'struct st_mysql_lex_string'
   lex_str->str= (char *) c_str;
   ~~~~~~~^
 /opt/local/include/mysql/plugin.h:47:16: note: forward declaration of
 'struct st_mysql_lex_string'
 typedef struct st_mysql_lex_string MYSQL_LEX_STRING;
                ^
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mysql55/mysql55/work/mysql-5.5.27/mysys/array.c:19:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mysql55/mysql55/work/mysql-5.5.27/include/m_string.h:295:10:
 error: incomplete definition of type 'struct st_mysql_lex_string'

 }}}

 See attached log file for complete error message.

 It looks like this could be related to some other similar reported errors
 on other ports:
 [https://trac.macports.org/search?q=incomplete+definition+of+type&noquickjump=1&changeset=on&milestone=on&portsummarysearch=on&ticket=on&wiki=on]

-- 
Ticket URL: <https://trac.macports.org/ticket/36568>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list