php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64762 Can't compile on OSX
Submitted: 2013-05-02 15:36 UTC Modified: 2013-10-15 11:54 UTC
Votes:6
Avg. Score:4.0 ± 0.8
Reproduced:5 of 5 (100.0%)
Same Version:5 (100.0%)
Same OS:5 (100.0%)
From: guewen dot faivre at elao dot com Assigned: jimjag (profile)
Status: No Feedback Package: gnupg (PECL)
PHP Version: 5.4.14 OS: OSX 10.8.3
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-05-02 15:36 UTC] guewen dot faivre at elao dot com
Description:
------------
Hi,

Compilation does not work on OSX 10.8.3

Please look at the reproduce code.

I can phpize and execute ./configure after applying the patch fixing the 
zend_class_entry issue but "make" isn't working.

Please find below the command line executed:

$>phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525

$>./configure
$> make


Actual result:
--------------
3 warnings generated.
/bin/sh /usr/src/gnupg-1.3.2/libtool --mode=link cc -DPHP_ATOM_INC -
I/usr/src/gnupg-1.3.2/include -I/usr/src/gnupg-1.3.2/main -I/usr/src/gnupg-1.3.2 
-I/usr/local/include/php -I/usr/local/include/php/main -
I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -
I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -
I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -o gnupg.la -export-dynamic -
avoid-version -prefer-pic -module -rpath /usr/src/gnupg-1.3.2/modules  gnupg.lo 
gnupg_keylistiterator.lo -Wl,-rpath,/usr/local/include/lib -
L/usr/local/include/lib -lgpgme
cc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/gnupg.so -bundle  
.libs/gnupg.o .libs/gnupg_keylistiterator.o  -L/usr/local/include/lib -lgpgme  -
Wl,-rpath -Wl,/usr/local/include/lib
ld: warning: directory not found for option '-L/usr/local/include/lib'
duplicate symbol _gnupg_keylistiterator_class_entry in:
    .libs/gnupg.o
    .libs/gnupg_keylistiterator.o
duplicate symbol _gnupg_class_entry in:
    .libs/gnupg.o
    .libs/gnupg_keylistiterator.o
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [gnupg.la] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-17 13:02 UTC] jimjag@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: jimjag
 [2013-07-17 13:02 UTC] jimjag@php.net
Fixed in trunk, verified with OSX 10.8.4 and Xcode 4.6.3. Awaiting feedback
 [2013-08-07 16:51 UTC] kris at causecast dot org
With the changes committed to trunk, I was able to successfully compile this 
using Mac OS 10.7.5 and xcode 4.5.2.
 [2013-10-15 11:54 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2014-01-23 19:14 UTC] john at dillick dot us
I'm getting error on OSX 10.8.5, PHP 5.4.23, Xcode 5.0.2 (5A3005), and gpgme 1.4.3 installed using homebrew:

duplicate symbol _gnupg_keylistiterator_class_entry in:
    .libs/gnupg.o
    .libs/gnupg_keylistiterator.o
duplicate symbol _gnupg_class_entry in:
    .libs/gnupg.o
    .libs/gnupg_keylistiterator.o
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [gnupg.la] Error 1
rolling back 85 file operations
ERROR: `make' failed
 [2014-04-22 16:00 UTC] dperedagarcia at gmail dot com
I have the same problem with OSX 10.9.2 XAMP 1.8.3-4

cc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/gnupg.so -bundle  .libs/gnupg.o .libs/gnupg_keylistiterator.o  -L/usr/local/include/lib -lgpgme  -Wl,-rpath -Wl,/usr/local/include/lib
ld: warning: directory not found for option '-L/usr/local/include/lib'
duplicate symbol _gnupg_keylistiterator_class_entry in:
    .libs/gnupg.o
    .libs/gnupg_keylistiterator.o
duplicate symbol _gnupg_class_entry in:
    .libs/gnupg.o
    .libs/gnupg_keylistiterator.o
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 

i'm trying to install using  sudo ./pecl install gnupg.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC