Menu

Cannot build CUBRID-PHP API with PHP 5.3.3

Developers
2010-09-07
2013-06-05
  • Esen Sagynov

    Esen Sagynov - 2010-09-07

    Hi everybody,

    This is Esen from CUBRID DBMS Lab.

    Today I downloaded the latest php-src from this cubridinterface SVN. But I cannot build CUBRID API with PHP 5.3.3 on Windows 7. I am using VC++ 6.0 SP6. Also have installed Windows Server 2003 SDK.

    I have manually created the config.w32.h file using
    1. buildconfig.bat
    2. cscript /nologo configure.js

    This created config.w32.h file in the php-src/main folder.

    Also, I created a system environment variable called PHP5_SRC and set php-src folder path to it.

    However, when I try to build using VC++ 6, I get the following error, which is real bug that Microsoft had filed long ago
    http://support.microsoft.com/kb/179271


    Deleting intermediate files and output files for project 'php_cubrid - Win32 Debug_TS'.

    -------------Configuration: php_cubrid - Win32 Debug_TS-------------
    Compiling…
    php_cubrid.c
    c:\php\src\cubrid-php\src\php_cubrid.c(41) : fatal error C1001: INTERNAL COMPILER ERROR
            (compiler file 'msc1.cpp', line 1794)
             Please choose the Technical Support command on the Visual C++
             Help menu, or open the Technical Support help file for more information
    Error executing cl.exe.

    php_cubrid.dll - 1 error(s), 0 warning(s)

    I have tried the suggestions that Microsoft provided on that page. However, I still cannot make CUBRID API built.

    My final goal is to get PHP API to connect to CUBRID using PHP 5.3.3 and Apache 2.2.16.

    If anyone can help me build it, please, let me know.

     
  • Esen Sagynov

    Esen Sagynov - 2010-09-07

    Also I use CUBRID 3.0.

     
  • Esen Sagynov

    Esen Sagynov - 2010-09-09

    I am still waiting for the guide. Is there any solution?

     
  • thorny-road

    thorny-road - 2010-09-09

    Sorry, I saw this message yesterday, and I haven't find a win7 to test it.

    This problem seems to be VC6's bug. And according to other developer's experience, the following method may be helpful:

    Don't use "Precompiled Headers". In "Project->C/C++->Precompiled Headers", choose "Not using precompiled headers"

    I haven't test this method, and I will work on this problem soon.

     
  • Esen Sagynov

    Esen Sagynov - 2010-09-09

    The same solution was suggested by MS, however, that didn't work.

    While you are trying to replicate this problem, could you please send me the VC++6.0 compiled libraries for PHP 5.3.3 for both CUBRID 2.2 and 3.0. I have to send them to CUBRID users.

    Thank you in advance!

    Esen.

     
  • thorny-road

    thorny-road - 2010-09-10

    OK, I will try to finish this work today. And I suggest that you can try compiling the library on Windows XP.

     
  • thorny-road

    thorny-road - 2010-09-10

    Building library for CUBRID 8.3.0 is easy, and of cause, it will take some time to test it.

    But the library for CUBRID 8.2.2 seems not easy to build. If I build the library from source codes at cubridinterface svn, I need to take some to make some changes. This work will not take much time.

    Maybe I should build library for CUBRID 8.2.2 from codes at https://dev.naver.com/svn/cubrid/branches/RB-8.2.2/contrib/php?

     
  • thorny-road

    thorny-road - 2010-09-10

    This work has been done. The VC6 libraries built with PHP 5.3.3 for CUBRID 8.2.2 and  CUBRID 8.3.0 have been created and initially tested.

    Although CUBRID 8.2.2.0261 CCI Library has api cci_connect_with_url and cci_get_err_msg, the tow api can't be find in  cascci.dll. So I remove cubrid_connect_with_url, and use cci_get_error_msg to replace cci_get_err_msg.

     

Log in to post a comment.