Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Build error with ICU 4.6 and Fixing compile time type errors #1

Closed
wants to merge 3 commits into from

Conversation

edv4rd0
Copy link

@edv4rd0 edv4rd0 commented Mar 17, 2011

When building with ICU version 4.6 there is an error involving the ICU version check. Requirements are for 4.2+. With 4.6 it failed and instead of the current version number being output, source code was spammed to the screen. This uses the current FindICU.cmake file from the facebook/hiphop-php repo and fixes the bug.

I included a bug fix from the facebook/hiphop-php repo for MySQL 5.5 support. Reference for what these changes in MySQL were see this revision: http://bazaar.launchpad.net/~mysql/mysql-server/mysql-5.5/revision/[email protected]

There was a bug (2334676 - Fix const pointer type error.) where is would not accept const ClassInfo::ClassInfo *info syntax and complained that it was a constructor and not the name of the type. Changing it to const ClassInfo *info fixed this. This is on x86_64 architecture, Linux (Archlinux) and GCC 4.5.2.

bitpendragon and others added 3 commits March 17, 2011 21:50
CMake/FindICU.cmake with one from facebook/hiphop-php repo.
Summary:
last_used_con was used for replication within libmysqlclient but this
was never enabled or used. MySQL developers killed it all in 5.5.0.

Use an #ifdef for now in case we're using some experimental stuff somewhere.

Test Plan:
Built against MySQL 5.5 and our external version

DiffCamp Revision: 177173
Reviewed By: hzhao
CC: hzhao, hphp-diffs@lists
Revert Plan:
Ok
Explanation:
Const pointer had to name the class for the type, rather than the
constructor.

The error in both files was:  error: "‘HPHP::ClassInfo::ClassInfo’ names the
constructor, not the type".
@edv4rd0 edv4rd0 closed this Apr 21, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants