[PHP-DEV] Error while compiling CLI from current HEAD

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default [PHP-DEV] Error while compiling CLI from current HEAD

    Hi, all.

    Recently I updated my local version of php-src and tried to build it.
    That's what I got at the end of build process:

    ext/dom/php_dom.lo: In function `zm_startup_dom':
    /tony/CVS/php-src/ext/dom/php_dom.c:585: undefined reference to `php_dom_xpath_class_functions'
    /tony/CVS/php-src/ext/dom/php_dom.c:590: undefined reference to `dom_xpath_document_read'
    collect2: ld returned 1 exit status
    make: *** [sapi/cli/php] Error 1

    libphp5 is built ok, it seems, that error appears only with CLI.

    Used versions:
    libxml-2.5.7
    gcc-2.96
    glibc-2.2.5-37

    If you need additional info - please, ask.

    ---
    WBR,
    Antony Dovgal aka tony2001
    [email]tony2001@phpclub.net[/email]

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]

    Antony Dovgal Guest

  2. Similar Questions and Discussions

    1. infinite loop error... Braking my head
      This one is really banging my head! I have a base movie on level 0 with some loadvars functions, a shared object, and 2 buttons that use...
    2. [PHP-DEV] [PHP-CVS] cvs: php-src / NEWS /ext/standard basic_functions.c head.c head.h
      > As Andi might say: "Why not call this http_headers()?" :) As you can probably guess, my answer to your first question is your second...
    3. error compiling ruby 1.8.0 preview 7 on i386 OpenBSD -current,diff attached
      Hi, From: "Diana Eichert" <deicher@sandia.gov> Subject: error compiling ruby 1.8.0 preview 7 on i386 OpenBSD -current, diff attached Date: Sat,...
    4. [PHP-DEV] Segfault in current HEAD
      Reproducing Script <?php class Foo { const Bar = 'classBar'; } print Foo::Bar; ?>
    5. Injecting code into the <head></head> section
      Hi All, I have a web user control that, among other things, provides Print this page, and Email this page functionality I have this script that...
  3. #2

    Default Re: [PHP-DEV] Error while compiling CLI from current HEAD


    # ./cvsclean && ./buildconf && ./configure ..

    --Jani


    On Tue, 29 Jul 2003, Antony Dovgal wrote:
    >Hi, all.
    >
    >Recently I updated my local version of php-src and tried to build it.
    >That's what I got at the end of build process:
    >
    >ext/dom/php_dom.lo: In function `zm_startup_dom':
    >/tony/CVS/php-src/ext/dom/php_dom.c:585: undefined reference to `php_dom_xpath_class_functions'
    >/tony/CVS/php-src/ext/dom/php_dom.c:590: undefined reference to `dom_xpath_document_read'
    >collect2: ld returned 1 exit status
    >make: *** [sapi/cli/php] Error 1
    >
    >libphp5 is built ok, it seems, that error appears only with CLI.
    >
    >Used versions:
    >libxml-2.5.7
    >gcc-2.96
    >glibc-2.2.5-37
    >
    >If you need additional info - please, ask.
    >
    >---
    >WBR,
    >Antony Dovgal aka tony2001
    >tony2001@phpclub.net
    >
    >
    --
    [url]https://www.paypal.com/xclick/business=sniper@php.net&no_note=1&tax=0&currency_c ode=EUR[/url]



    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]

    Jani Taskinen Guest

  4. #3

    Default Re: [PHP-DEV] Error while compiling CLI from current HEAD

    On Tue, 29 Jul 2003 14:08:35 +0300 (EEST)
    Jani Taskinen <sniper@iki.fi> wrote:
    > # ./cvsclean && ./buildconf && ./configure ..
    ok, thanx.
    # ./cvsclean && ./buildconf && ./configure --with-apxs=/usr/local/apache/apxs
    helps.

    but when I try to load libphp5 with Apache 1.3.27 I got segfault:

    # gdb httpd

    (gdb) run -X
    Starting program: /usr/local/apache/bin/httpd -X
    [New Thread 1024 (LWP 19401)]
    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1024 (LWP 19401)]
    0x4034cb11 in zend_register_functions (scope=0x0, functions=0x4114891c, function_table=0x0, type=1)
    at /root/CVS/php-src/Zend/zend_API.c:1183
    1183 fname_len = strlen(ptr->fname);

    (gdb) bt
    #0 0x4034cb11 in zend_register_functions (scope=0x0, functions=0x4114891c, function_table=0x0, type=1)
    at /root/CVS/php-src/Zend/zend_API.c:1183
    #1 0x4034ce00 in zend_register_module (module=0x4114d0a0) at /root/CVS/php-src/Zend/zend_API.c:1261
    #2 0x402cca89 in php_dl (file=0x80d4f18, type=1, return_value=0xbffff660) at /root/CVS/php-src/ext/standard/dl.c:244
    #3 0x4031e8ee in php_load_function_extension_cb (arg=0x80d4f18) at /root/CVS/php-src/main/php_ini.c:245
    #4 0x40342895 in zend_llist_apply (l=0x4049c75c, func=0x4031e8cc <php_load_function_extension_cb>)
    at /root/CVS/php-src/Zend/zend_llist.c:191
    #5 0x4031ee49 in php_ini_delayed_modules_startup () at /root/CVS/php-src/main/php_ini.c:505
    #6 0x4031b614 in php_module_startup (sf=0x404822c0, additional_modules=0x40482600, num_additional_modules=1)
    at /root/CVS/php-src/main/main.c:1402
    #7 0x40384d3e in php_apache_startup (sapi_module=0x404822c0) at /root/CVS/php-src/sapi/apache/mod_php5.c:266
    #8 0x403859a2 in php_init_handler (s=0x80b0d04, p=0x80b0cdc) at /root/CVS/php-src/sapi/apache/mod_php5.c:892
    #9 0x0806cb76 in ap_init_modules ()
    #10 0x080777c0 in main ()
    #11 0x400cc294 in __libc_start_main () from /lib/libc.so.6

    am I doing smthing extremely wrong?

    thanx in advance.

    ---
    WBR,
    Antony Dovgal aka tony2001
    [email]tony2001@phpclub.net[/email]

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]

    Antony Dovgal Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139