Opened 18 years ago

Closed 18 years ago

#10862 closed defect (fixed)

BUG: rb-mysql-2.7.1 fails to build against mysql-5.0.26

Reported by: mrgibson@… Owned by: yeled@…
Priority: High Milestone:
Component: ports Version:
Keywords: rb-mysql Cc: markd@…
Port:

Description (last modified by jberry@…)

Build failure:

--->  Building rb-mysql with target all
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_ruby_rb-mysql/work/mysql-ruby-2.7.1" && make all RUBY="/opt/local/bin/ruby -rvendor-specific"" returned error 2
Command output: gcc -I. -I. -I/opt/local/lib/ruby/1.8/powerpc-darwin8.7.0 -I. -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_MYSQL_H -I/opt/local/include/mysql5 -I/usr/local/include -O -pipe -I/opt/local/include -fno-common -O -pipe -I/opt/local/include  -fno-common -pipe -fno-common  -c mysql.c
mysql.c: In function `Init_mysql':
mysql.c:2015: error: `ulong' undeclared (first use in this function)
mysql.c:2015: error: (Each undeclared identifier is reported only once
mysql.c:2015: error: for each function it appears in.)
mysql.c:2015: error: parse error before numeric constant
mysql.c:2018: error: parse error before numeric constant
make: *** [mysql.o] Error 1

Error: Status 1 encountered during processing.

Change History (6)

comment:1 Changed 18 years ago by markd@…

Cc: markd@… jberry@… added
Summary: rb-mysql fails to buildBUG: rb-mysql-2.7.1 fails to build against mysql-5.024a

This is caused by a bug in mysql-50.24a. http://bugs.mysql.com/bug.php?id=22227

The workaround specifies using a my_global.h, but I can't find one on my disk. It has been fixed in 5.0.26 so whenever that gets updated it should fix rb-mysql too.

comment:2 Changed 18 years ago by jberry@…

Resolution: fixed
Status: newclosed

Upgraded mysql5 --> 5.0.26, which should resolve this. r20029.

comment:3 Changed 18 years ago by jberry@…

Description: modified (diff)

Better formatting of console output.

comment:4 Changed 18 years ago by dkcrame@…

Resolution: fixed
Status: closedreopened

Hi I've upgraded to mysql-5.0.26, updated macports on a macbook. Unfortunately still can't build rb-mysql. The output from the failed build:

Building rb-mysql with target all
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_ruby_rb-mysql/work/mysql-ruby-2.7.1" && make all RUBY="/opt/local/bin/ruby -rvendor-specific"" returned error 2
Command output: {standard input}:4106:symbol: "_eMysql" can't be undefined in a subtraction expression
{standard input}:3957:non-relocatable subtraction expression, "_cMysqlTime" minus "L00000000040$pb"
{standard input}:3957:symbol: "_cMysqlTime" can't be undefined in a subtraction expression
{standard input}:3895:non-relocatable subtraction expression, "_eMysql" minus "L00000000040$pb"
{standard input}:3895:symbol: "_eMysql" can't be undefined in a subtraction expression
{standard input}:3824:non-relocatable subtraction expression, "_eMysql" minus "L00000000039$pb"
{standard input}:3824:symbol: "_eMysql" can't be undefined in a subtraction expression
{standard input}:3803:non-relocatable subtraction expression, "_eMysql" minus "L00000000038$pb"
{standard input}:3803:symbol: "_eMysql" can't be undefined in a subtraction expression
{standard input}:3256:non-relocatable subtraction expression, "_cMysqlRowOffset" minus "L00000000023$pb"
{standard input}:3256:symbol: "_cMysqlRowOffset" can't be undefined in a subtraction expression
{standard input}:3226:non-relocatable subtraction expression, "_cMysqlRowOffset" minus "L00000000022$pb"
{standard input}:3226:symbol: "_cMysqlRowOffset" can't be undefined in a subtraction expression
{standard input}:3200:non-relocatable subtraction expression, "_cMysqlRowOffset" minus "L00000000022$pb"
{standard input}:3200:symbol: "_cMysqlRowOffset" can't be undefined in a subtraction expression
{standard input}:2749:non-relocatable subtraction expression, "_eMysql" minus "L00000000019$pb"
{standard input}:2749:symbol: "_eMysql" can't be undefined in a subtraction expression
{standard input}:2595:non-relocatable subtraction expression, "_eMysql" minus "L00000000018$pb"
{standard input}:2595:symbol: "_eMysql" can't be undefined in a subtraction expression
{standard input}:2412:non-relocatable subtraction expression, "_cMysqlStmt" minus "L00000000016$pb"
{standard input}:2412:symbol: "_cMysqlStmt" can't be undefined in a subtraction expression
{standard input}:973:non-relocatable subtraction expression, "_eMysql" minus "L00000000008$pb"
{standard input}:973:symbol: "_eMysql" can't be undefined in a subtraction expression
{standard input}:290:non-relocatable subtraction expression, "_cMysqlField" minus "L00000000004$pb"
{standard input}:290:symbol: "_cMysqlField" can't be undefined in a subtraction expression
{standard input}:232:non-relocatable subtraction expression, "_cMysqlRes" minus "L00000000003$pb"
{standard input}:232:symbol: "_cMysqlRes" can't be undefined in a subtraction expression
{standard input}:190:non-relocatable subtraction expression, "_eMysql" minus "L00000000002$pb"
{standard input}:190:symbol: "_eMysql" can't be undefined in a subtraction expression
make: *** [mysql.o] Error 1

Error: Status 1 encountered during processing.

comment:5 Changed 18 years ago by markd@…

Summary: BUG: rb-mysql-2.7.1 fails to build against mysql-5.024aBUG: rb-mysql-2.7.1 fails to build against mysql-5.0.26

I can confirm this same error on a MacBook also. I had no problems with 5.0.24.

comment:6 Changed 18 years ago by markd@…

Cc: jberry@… removed
Resolution: fixed
Status: reopenedclosed

A patch was committed to rb-mysql that fixed this.

Note: See TracTickets for help on using tickets.