Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 33

Thread: HOWTO: Compile php-gtk2 for Lucid Lynx

  1. #11
    Join Date
    Dec 2004
    Location
    Maine, USA
    Beans
    227
    Distro
    Ubuntu

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    Thanks for posting this and getting me past those annoying build errors. Has anyone tried building using --with-mozembed or --with-html? I see directories for gtkhtml and mozembed in the ext directory, but when I run configure it says gtkhtml not found. I installed libgtkhtml3.14-dev but it still says not found. Does anyone know a solution for this?

    EDIT: found the solution for this myself:

    Install libgtkhtml3.14-dev, then edit php-gtk/configure and change every reference of libgtkhtml-3.8 to libgtkhtml-3.14 and voila!
    Last edited by farruinn; May 17th, 2010 at 06:26 PM.
    Nathan Sprangers

  2. #12
    Join Date
    Sep 2009
    Location
    London, England
    Beans
    5
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    when i try this it works fine until trying to make php-gtk where i get the error

    Code:
    /home/nick/src/php-gtk/main/phpg_support.c: In function ‘phpg_read_property’:
    /home/nick/src/php-gtk/main/phpg_support.c:66: error: too many arguments to function ‘zend_get_std_object_handlers()->read_property’
    /home/nick/src/php-gtk/main/phpg_support.c: In function ‘phpg_write_property’:
    /home/nick/src/php-gtk/main/phpg_support.c:105: error: too many arguments to function ‘zend_get_std_object_handlers()->write_property’
    /home/nick/src/php-gtk/main/phpg_support.c: In function ‘phpg_get_property_ptr_ptr’:
    /home/nick/src/php-gtk/main/phpg_support.c:147: error: too many arguments to function ‘zend_get_std_object_handlers()->get_property_ptr_ptr’
    make: *** [main/phpg_support.lo] Error 1
    i currently using php version 5.3.2-1ubuntu4, is this the right version? any help would be greatly appreaciated

  3. #13
    Join Date
    May 2007
    Beans
    24
    Distro
    Ubuntu Development Release

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    I have the same error.

    I tried following these instructions: http://wiki.birth-online.de/_export/...piling-php-gtk

  4. #14
    Join Date
    Sep 2009
    Location
    London, England
    Beans
    5
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    after chatting to some very helpful people on irc this problem has been solved, the problem was in recent changes made to the source code, but it works again now

  5. #15
    Join Date
    Nov 2008
    Location
    Germany
    Beans
    6
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    hi,

    after following the speps in first post, i'll get:

    Code:
    PHP Warning:  PHP Startup: php-gtk: Unable to initialize module
    Module compiled with module API=20060613
    PHP    compiled with module API=20090626
    These options need to match
     in Unknown on line 0
    it doesn't look like anyone else is getting this,
    so i must have done something wrong, but what?

    Code:
    PHP 5.2.12 (cli) (built: Feb 15 2010 17:04:13) 
    Copyright (c) 1997-2009 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    I would be pleased if someone can help me solving this.

  6. #16
    Join Date
    Sep 2009
    Location
    London, England
    Beans
    5
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    it seems to me that php-gtk is needs a more recent version of php than the one you have

    php-gtk 20060613
    php 20090626

    you say you are using php version 5.2.12, this post is for lucid lynx (ubuntu 10.04 lts) which comes with a newer version (5.3.2-1ubuntu4.2)

    which version of ubuntu are you running?

  7. #17
    Join Date
    Nov 2008
    Location
    Germany
    Beans
    6
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    WTF, my paket-manager is lying to me:

    Code:
    azubi@azubi-desktop:~$ dpkg -l | grep php5
    ii  libapache2-mod-php5                        5.3.2-1ubuntu4.2                                         server-side, HTML-embedded scripting languag
    ii  php5                                       5.3.2-1ubuntu4.2                                         server-side, HTML-embedded scripting languag
    ii  php5-cli                                   5.3.2-1ubuntu4.2                                         command-line interpreter for the php5 script
    ii  php5-common                                5.3.2-1ubuntu4.2                                         Common files for packages built from the php
    ii  php5-curl                                  5.3.2-1ubuntu4.2                                         CURL module for php5
    ii  php5-dev                                   5.3.2-1ubuntu4.2                                         Files for PHP5 module development
    ii  php5-gd                                    5.3.2-1ubuntu4.2                                         GD module for php5
    ii  php5-gtk2                                  0.11                                                     GTK2 support for PHP5.
    ii  php5-mcrypt                                5.3.2-0ubuntu1                                           MCrypt module for php5
    ii  php5-mysql                                 5.3.2-1ubuntu4.2                                         MySQL module for php5
    ii  php5-pgsql                                 5.3.2-1ubuntu4.2                                         PostgreSQL module for php5
    ii  php5-sqlite                                5.3.2-1ubuntu4.2                                         SQLite module for php5
    ii  php5-xdebug                                2.0.5-1ubuntu1                                           Xdebug Module for PHP 5
    azubi@azubi-desktop:~$ php --version
    PHP 5.2.12 (cli) (built: Feb 15 2010 17:04:13) 
    Copyright (c) 1997-2009 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    azubi@azubi-desktop:~$
    dpkg tells me that 5.3.2 is installed, but php itself tells me its 5.2.12

    Reinstalling the package did not changed anything, What now?

    EDIT:

    i've found a solution:

    the binarys under /usr/local/bin/php* were 5.2.12,
    while the binarys under /ust/bin are 5.3.2

    and the binarys unter /usr/local/bin/php* are called, because
    in $PATH /usr/local/bin was before /usr/bin

    linking the binarys from /usr/bin to /usr/local/bin solved the Problem.
    PHP-GTK is now running fine.

    Thanks for the help.
    Last edited by gu4rdi4n; June 1st, 2010 at 12:03 PM. Reason: solved

  8. #18
    Join Date
    May 2007
    Beans
    24
    Distro
    Ubuntu Development Release

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    Quote Originally Posted by nickcloy View Post
    after chatting to some very helpful people on irc this problem has been solved, the problem was in recent changes made to the source code, but it works again now
    Cool, thanks! I'll try again when I get home.

  9. #19
    Join Date
    Apr 2010
    Beans
    1

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    nickcloy,

    how did u get rid of the error ?

  10. #20
    Join Date
    Aug 2006
    Beans
    6

    Re: HOWTO: Compile php-gtk2 for Lucid Lynx

    Followed instructions up to here:

    svn co http://svn.php.net/repository/gtk/php-gtk/trunk php-gtk
    cd php-gtk
    ./buildconf

    I got the following error:

    configure.in:150: warning: LTOPTIONS_VERSION is m4_require'd but not m4_defun'd
    aclocal.m4:2941: LT_INIT is expanded from...
    aclocal.m4:2976: AC_PROG_LIBTOOL is expanded from...
    configure.in:150: the top level
    configure.in:150: warning: LTSUGAR_VERSION is m4_require'd but not m4_defun'd
    configure.in:150: warning: LTVERSION_VERSION is m4_require'd but not m4_defun'd
    configure.in:150: warning: LTOBSOLETE_VERSION is m4_require'd but not m4_defun'd
    configure:11721: error: possibly undefined macro: m4_ifval
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation.
    configure:14749: error: possibly undefined macro: _LT_SET_OPTIONS
    configure:14749: error: possibly undefined macro: LT_INIT
    make[1]: *** [configure] Error 1
    make: *** [all] Error 2

    Then followed this post to add macros:
    http://ubuntuforums.org/showthread.php?t=1377395

    $cat /usr/share/aclocal/ltoptions.m4 /usr/share/aclocal/ltversion.m4 /usr/share/aclocal/ltsugar.m4 /usr/share/aclocal/lt~obsolete.m4 >>aclocal.m4

    Then ./buildconf went well

    I'm running Mint 9, however I have had the same issue on clean ubuntu 10.04.

    I suggest the OP ad this as a possibly necessary step. Thanks for the guide...

Page 2 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •