php-apm icon indicating copy to clipboard operation
php-apm copied to clipboard

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

Open zming619 opened this issue 8 years ago • 1 comments

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

zming619 avatar Apr 13 '17 16:04 zming619

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

amidevous avatar May 27 '23 23:05 amidevous