make fails

Bug #601245 reported by Nes Lopez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PBXT
Fix Committed
Undecided
Paul McCullagh

Bug Description

Make Fails and I get this string of errors:

discover_xt.cc:1352: error: ‘class THD’ has no member named ‘work_part_info’
discover_xt.cc:1354: error: ‘class THD’ has no member named ‘work_part_info’
discover_xt.cc:1357: error: ‘class THD’ has no member named ‘work_part_info’
discover_xt.cc:1359: error: jump to label ‘noerror’
discover_xt.cc:1348: error: from here
discover_xt.cc:1352: error: crosses initialization of ‘partition_info* part_info’
discover_xt.cc:1362: error: jump to label ‘error’
discover_xt.cc:1329: error: from here
discover_xt.cc:1352: error: crosses initialization of ‘partition_info* part_info’
make[2]: *** [libpbxt_a-discover_xt.o] Error 1

On Fedora 9, 10 and 11.
MySQL 5.41, 5.1.47 and 5.1.48
PBXT 1.0.11-5 Pre-GA and 1.5.01-beta

Related branches

Changed in pbxt:
assignee: nobody → Paul McCullagh (paul-mccullagh)
status: New → Incomplete
Revision history for this message
Paul McCullagh (paul-mccullagh) wrote :

Hi Nes,

This looks like it may be duplicate of bug #595478, so the problem should be fixed in PBXT 1.0.11-5. However the fix is not in PBXT 1.5.01-beta.

With regard to error: ‘class THD’ has no member named ‘work_part_info’

This should only occur in versions of MySQL earlier than 5.1.x GA. In other words, you should not get this error when compiling with 5.1.47 and 5.1.48 (but maybe with 5.1.41).

The code in PBXT 1.0.11-5 look like this:

#if MYSQL_VERSION_ID > 50130
 partition_info *part_info;

 part_info = thd->work_part_info;
 thd->work_part_info = NULL;
#endif
 if (mysql_create_table_no_lock(thd, db, name, &mylex.create_info, &mylex.alter_info, 1, 0))
  goto error;
#if MYSQL_VERSION_ID > 50130
 thd->work_part_info = part_info;
#endif

If 5.1.41 does not have ‘work_part_info’ then this must be changed to:

#if MYSQL_VERSION_ID > 50141

Revision history for this message
Paul McCullagh (paul-mccullagh) wrote :

OK, I think I see the problem.

#ifdef WITH_PARTITION_STORAGE_ENGINE
  partition_info *work_part_info;
#endif

'work_part_info' is only defined if you are compiling with the partition engine.

I will add this flag to the PBXT code.

The other error:

error: crosses initialization of ‘partition_info* part_info’

Should already be fixed in 1.0.11-5

Revision history for this message
Paul McCullagh (paul-mccullagh) wrote :

I have pushed a fix for this bug. The version is PBXT 1.0.11-6.

Could you please confirm if the change fixes your problem.

Thanks!

Changed in pbxt:
status: Incomplete → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.