Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#7073 closed defect (fixed)

Current MySQL5 does not build (with fix)

Reported by: darwinports@… Owned by: jberry@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: mww@…
Port:

Description

When trying to build MySQL

sudo port -cv install mysql5 +server

I get a compile error on the line : if /usr/bin/g++-4.0 -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/opt/local\"" -DDATADIR="\"/opt/local/var/db/mysql5\"" -DSHAREDIR="\"/opt/local/share/mysql5/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/local/include -I../innobase/include -I../include -I../include -I../regex -I. -I/opt/local/include -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -MT unireg.o -MD -MP -MF ".deps/unireg.Tpo" -c -o unireg.o unireg.cc; \ then mv -f ".deps/unireg.Tpo" ".deps/unireg.Po"; else rm -f ".deps/unireg.Tpo"; exit 1; fi unireg.cc:796:1: error: unterminated argument list invoking macro "my_free" unireg.cc: In function 'bool mysql_create_frm(THD*, char*, const char*, const char*, HA_CREATE_INFO*, List<create_field>&, uint, KEY*, handler*)': unireg.cc:115: error: 'my_free' was not declared in this scope unireg.cc:115: error: expected `;' at end of input unireg.cc:115: error: expected `}' at end of input unireg.cc:115: error: expected `}' at end of input unireg.cc:115: error: expected `}' at end of input make[4]: * [unireg.o] Error 1 make[3]: * [all-recursive] Error 1 make[2]: * [all] Error 2 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

This is using a darwinports infrastructure downloaded today, on 10.4.4 with XCode 2.1. Looking at the file complained about, /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_databases_mysql5/work/mysql-5.0.15/sql/unireg.cc on line 115 we see that a closing right ) has been left off the 0 in the line.

I fixed this in the file, and the build went on happily. My guess is that the "real" file I should fix is somewhere higher up, not in the .../work/ directory, but I don't know what that would be. Anyway you guys should fix this bug in your base code (or tell the Swedish guys to fix it, if it is there bug.)

Change History (3)

comment:1 Changed 19 years ago by olegb@…

Cc: mww@… added
Owner: changed from darwinports-bugs@… to jberry@…

assigning to maintainers

comment:2 Changed 19 years ago by jberry@…

Mysql5 5.0.18 is now latest. I'll try to build w/this and see where we are..

comment:3 Changed 19 years ago by jberry@…

Resolution: fixed
Status: newclosed

Updated port to 5.0.18.

Maynard: Can you verify whether that builds for you? I does build for me, but I believe 5.0.15 did also, so we may be missing something here...

Note: See TracTickets for help on using tickets.