# sapi/cli/php, compiling error

- Thread: https://externals.io/message/56362
- Original archive: https://news-web.php.net/php.internals/56362
- Started by Ivan Enderlin @ Hoa on 2011-11-17T09:38:33+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #56362 — Ivan Enderlin @ Hoa — 2011-11-17T09:38:33+00:00

URL: https://externals.io/message/56362#56362

Hi all,

I was trying to compile PHP trunk on my machine and here is the error I got:

    Undefined symbols for architecture x86_64:
       "_zim_SessionHandler_open", referenced from:
           _php_session_class_functions in session.o
       "_zim_SessionHandler_close", referenced from:
           _php_session_class_functions in session.o
       "_zim_SessionHandler_read", referenced from:
           _php_session_class_functions in session.o
       "_zim_SessionHandler_write", referenced from:
           _php_session_class_functions in session.o
       "_zim_SessionHandler_destroy", referenced from:
           _php_session_class_functions in session.o
       "_zim_SessionHandler_gc", referenced from:
           _php_session_class_functions in session.o
    ld: symbol(s) not found for architecture x86_64
    collect2: ld returned 1 exit status
    make: *** [sapi/cli/php] Error 1

Is it a known issue?
My ./configure was very simple: --prefix and --with-config-file-path 
were the only arguments I used.
The issue doesn't appear with the tag php_5_4_0RC1, so it's a trunk 
related issue.

Best regards.

-- 
Ivan Enderlin
Developer of Hoa
http://hoa.42/ or http://hoa-project.net/

PhD. student at LIFC/DISC (Vesontio) and INRIA (Cassis)
http://lifc.univ-fcomte.fr/ and http://www.inria.fr/

Member of HTML and WebApps Working Group of W3C
http://w3.org/

---

## #56363 — Hannes Magnusson — 2011-11-17T09:41:59+00:00

URL: https://externals.io/message/56362#56363 · In reply to: #56362

On Thu, Nov 17, 2011 at 10:38, Ivan Enderlin @ Hoa
<ivan.enderlin@hoa-project.net> wrote:
> Hi all,
>
> I was trying to compile PHP trunk on my machine and here is the error I got:
>
>   Undefined symbols for architecture x86_64:
>      "_zim_SessionHandler_open", referenced from:
>          _php_session_class_functions in session.o
>      "_zim_SessionHandler_close", referenced from:
>          _php_session_class_functions in session.o
>      "_zim_SessionHandler_read", referenced from:
>          _php_session_class_functions in session.o
>      "_zim_SessionHandler_write", referenced from:
>          _php_session_class_functions in session.o
>      "_zim_SessionHandler_destroy", referenced from:
>          _php_session_class_functions in session.o
>      "_zim_SessionHandler_gc", referenced from:
>          _php_session_class_functions in session.o
>   ld: symbol(s) not found for architecture x86_64
>   collect2: ld returned 1 exit status
>   make: *** [sapi/cli/php] Error 1
>
> Is it a known issue?
> My ./configure was very simple: --prefix and --with-config-file-path were
> the only arguments I used.
> The issue doesn't appear with the tag php_5_4_0RC1, so it's a trunk related
> issue.

You need to clean your build:
./vcsclean
./buildconf --force
./configure

-Hannes

---

## #56364 — Ivan Enderlin @ Hoa — 2011-11-17T11:38:02+00:00

URL: https://externals.io/message/56362#56364 · In reply to: #56363

Hi Hannes,


> On Thu, Nov 17, 2011 at 10:38, Ivan Enderlin @ Hoa
> <ivan.enderlin@hoa-project.net>  wrote:
> > […]
> You need to clean your build:
> ./vcsclean
> ./buildconf --force
> ./configure
Ok it works. Thanks.

#feelridiculous

Best regards.

-- 
Ivan Enderlin
Developer of Hoa
http://hoa.42/ or http://hoa-project.net/

PhD. student at LIFC/DISC (Vesontio) and INRIA (Cassis)
http://lifc.univ-fcomte.fr/ and http://www.inria.fr/

Member of HTML and WebApps Working Group of W3C
http://w3.org/
