patrickallaert / php-apm

PHP APM (Alternative PHP Monitor)
http://pecl.php.net/package/APM
Other
310 stars 101 forks source link

make: *** [apm.la] Error 1 #57

Open zming619 opened 7 years ago

zming619 commented 7 years ago

OS

macOS 10.12.4 (16E195)

installation

./configure --enable-apm \
--with-php-config=/usr/local/Cellar/php56/5.6.30_6/bin/php-config 
--with-mysql=/usr/local/Cellar/mysql/5.7.16/

error

/driver_socket.o  -L/usr/local/Cellar/mysql/5.7.16//lib -lmysqlclient -lsqlite3  -Wl,-rpath -Wl,/usr/local/Cellar/mysql/5.7.16//lib
duplicate symbol _apm_globals in:
    .libs/apm.o
    .libs/backtrace.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [apm.la] Error 1
amidevous commented 1 year ago

up please not solved

slc php56-php-5.6.40-38 (5.6.40-36 by remy + openssl3 patch for php 5.6)

mariadb 10.5 (fedora repo)

gcc 13.1.1 (fedora repo)

system fedora 38

build with rpm spec file parameter

%build peclconf() { %configure \ --enable-apm \ --with-sqlite3 \ --with-mysql \ --enable-statsd \ --enable-socket \ --with-libdir=%{_lib} \ --with-php-config=$1 } cd NTS %{_bindir}/phpize peclconf %{_bindir}/php-config make %{?_smp_mflags}

make: *** [Makefile:199: apm.la] Error 1