php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58964 Cant compile on MacOSX Snow
Submitted: 2009-11-25 04:56 UTC Modified: 2009-12-02 13:54 UTC
From: lizdeika at gmail dot com Assigned:
Status: Closed Package: gmagick (PECL)
PHP Version: 5.3.0 OS: MacOSX 10.6.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lizdeika at gmail dot com
New email:
PHP Version: OS:

 

 [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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-28 18:07 UTC] ian at futurekarma dot org
Seeing exact same behavior. 10.6.2
Tried both 1.0.2b2 and 1.0.2b1 with same result.
 [2009-12-02 12:19 UTC] nightsailer at gmail dot com
this is patch:

--- 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);
 [2009-12-02 12:50 UTC] nightsailer at gmail dot com
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)
 [2009-12-02 13:54 UTC] vito@php.net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/gmagick


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 06:01:29 2024 UTC