php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65916 Unable to compile on Mac OS X (duplicate symbol)
Submitted: 2013-10-16 15:04 UTC Modified: 2013-10-16 19:36 UTC
From: nicolas dot charlot at footeo dot com Assigned: ab (profile)
Status: Closed Package: varnish (PECL)
PHP Version: 5.4.20 OS: Mac OS 10.8.5
Private report: No CVE-ID: None
 [2013-10-16 15:04 UTC] nicolas dot charlot at footeo dot com
Description:
------------
duplicate symbol _default_varnish_handlers in:
    .libs/varnish.o
    .libs/adm.o
duplicate symbol _default_varnish_handlers in:
    .libs/varnish.o
    .libs/varnish_lib.o
duplicate symbol _default_varnish_handlers in:
    .libs/varnish.o
    .libs/exception.o
duplicate symbol _default_varnish_handlers in:
    .libs/varnish.o
    .libs/stat.o
duplicate symbol _default_varnish_handlers in:
    .libs/varnish.o
    .libs/log.o
ld: 5 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [varnish.la] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-16 15:31 UTC] ab@php.net
Automatic comment from SVN on behalf of ab
Revision: http://svn.php.net/viewvc/?view=revision&revision=331853
Log: fixed bug #65916 Unable to compile on Mac OS X
 [2013-10-16 15:33 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2013-10-16 15:33 UTC] ab@php.net
I've no Mac to test. But a fix is pushed, could you please test from trunk?
 [2013-10-16 18:59 UTC] nicolas dot charlot at footeo dot com
-Status: Feedback +Status: Open
 [2013-10-16 18:59 UTC] nicolas dot charlot at footeo dot com
I update from trunk. 2 errors are remaining:

duplicate symbol _default_varnish_handlers in:
    .libs/varnish.o
    .libs/varnish_lib.o
duplicate symbol _default_varnish_handlers in:
    .libs/varnish.o
    .libs/exception.o
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [varnish.la] Error 1
 [2013-10-16 19:20 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2013-10-16 19:20 UTC] ab@php.net
Did you do make clean before rebuilding? The old object file would still have that symbols if you didn't. After clean rebuild under linux i see

$ nm .libs/varnish.o | grep handlers
00000068 C default_varnish_handlers
         U zend_get_std_object_handlers
$ nm .libs/varnish_lib.o | grep handlers

so silence. As varnish_lib.c actually doesn't reference that variable anymore.

Thanks.
 [2013-10-16 19:25 UTC] nicolas dot charlot at footeo dot com
-Status: Feedback +Status: Open
 [2013-10-16 19:25 UTC] nicolas dot charlot at footeo dot com
Sorry I didn't cleaned previous build...

I can now see: "Build complete".

Thx!
 [2013-10-16 19:36 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2013-10-16 19:36 UTC] ab@php.net
Great, thanks for your effort :)
 [2021-04-06 10:54 UTC] git@php.net
Automatic comment on behalf of weltling
Revision: https://github.com/php/pecl-caching-varnish/commit/1cb2b2a094200850098ea6e3e615fdd7ac4b0b26
Log: fixed bug #65916 Unable to compile on Mac OS X
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 08 23:03:35 2021 UTC