|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2009-11-25 04:56 UTC] lizdeika at gmail dot com
 Description: ------------ Duplicate symbol error Reproduce code: --------------- make output: ld: duplicate symbol _php_gmagick_sc_entry in .libs/gmagick_methods.o and .libs/gmagick_helpers.o collect2: ld returned 1 exit status make: *** [gmagick.la] Error 1 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Thu Oct 30 18:00:02 2025 UTC | 
Sorry, previous patch is wroong. ============= --- php_gmagick.h 1970-01-01 17:13:08.000000000 +0800 +++ php_gmagick.h.ns 2009-12-03 01:17:52.000000000 +0800 @@ -18,7 +18,7 @@ */ #ifndef HAVE_PHP_GMAGICK_H -# define HAVE_PHP_GMAGICK_H +#define HAVE_PHP_GMAGICK_H /* Define Extension Properties */ #define PHP_GMAGICK_EXTNAME "gmagick" @@ -107,12 +107,12 @@ #endif /* Class entries */ -zend_class_entry *php_gmagick_sc_entry; -zend_class_entry *php_gmagickdraw_sc_entry; -zend_class_entry *php_gmagickpixel_sc_entry; -zend_class_entry *php_gmagick_exception_class_entry; -zend_class_entry *php_gmagickdraw_exception_class_entry; -zend_class_entry *php_gmagickpixel_exception_class_entry; +extern zend_class_entry *php_gmagick_sc_entry; +extern zend_class_entry *php_gmagickdraw_sc_entry; +extern zend_class_entry *php_gmagickpixel_sc_entry; +extern zend_class_entry *php_gmagick_exception_class_entry; +extern zend_class_entry *php_gmagickdraw_exception_class_entry; +extern zend_class_entry *php_gmagickpixel_exception_class_entry; /* Forward declarations */ PHP_METHOD(gmagick, __construct); --- gmagick.c 1970-01-01 17:13:08.000000000 +0800 +++ gmagick.c.ns 2009-12-03 01:44:20.000000000 +0800 @@ -27,6 +27,13 @@ static zend_object_handlers gmagickdraw_object_handlers; static zend_object_handlers gmagickpixel_object_handlers; +zend_class_entry *php_gmagick_sc_entry; +zend_class_entry *php_gmagickdraw_sc_entry; +zend_class_entry *php_gmagickpixel_sc_entry; +zend_class_entry *php_gmagick_exception_class_entry; +zend_class_entry *php_gmagickdraw_exception_class_entry; +zend_class_entry *php_gmagickpixel_exception_class_entry; + /* {{{ static void php_gmagick_object_free_storage(void *object TSRMLS_DC) */ static void php_gmagick_object_free_storage(void *object TSRMLS_DC)