php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72923 Unresolved Symbols: recipe for target 'sapi/cli/php' failed
Submitted: 2016-08-22 15:32 UTC Modified: -
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: christian dot tremel at itsv dot at Assigned:
Status: Open Package: Compile Failure
PHP Version: Next Major Version OS: AIX 6.1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-08-22 15:32 UTC] christian dot tremel at itsv dot at
Description:
------------
OS: AIX 6.1
Compiler: IBM XLC/C++ 13.0.1
PHP Version: 7.0.9

########################################################################
build script used:

root@aixbuildhost61: /usr/local/src/gnutoolchain/php-7.0.9 # cat build.sh
#!/usr/bin/ksh

export APPATH="/usr/local/itsvbuild/64"
export INSTPATH="/usr/local/php7"

print "testing C++ compiler..."

xlC_r -o /root/hello /root/hello.cpp >/dev/null 2>&1
if  [ $? -ne 0 ]; then
/root/bin/renew_lic.sh
else
print "C++ compiler OK"
fi

export PATH="/usr/local/src/gnutoolchain/php-7.0.9:$APPATH/bin:$PATH"
export LIBPATH="$APPATH/lib:/usr/lib:/lib:/opt/freeware/lib64:/opt/freeware/lib"
export LD_LIBRARY_PATH="$APPATH/lib:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib"
export OBJECT_MODE=64
export CC="xlc_r"
export CFLAGS="-q64 -qmaxmem=-1 -qcpluscmt -DNDEBUG -DSYSV -D_AIX -D_AIX64 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_ALL_SOURCE -DFUNCPROTO=15 -O2 \
-I$TOOLSPATH/include -I/opt/freeware/include -DHAVE_BUILTIN_CONSTANT_P"
export CXX="xlC_r"
export CXXFLAGS=$CFLAGS
export LDFLAGS="-L$APPATH/lib -L/usr/local/mariadb/lib -L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-blibpath:$INSTPATH/lib:$APPATH/lib:/usr/lib:/lib -Wl,-bexpall -Wl,-bexpfull -Wl,-lC -Wl,-lpthread"

gmake distclean
gmake clean
./configure --prefix=$INSTPATH \
            --exec-prefix=$INSTPATH \
            --enable-opcache=no \
            --with-config-file-path=/usr/local/apache2/conf/php7 \
            --with-config-file-scan-dir=/usr/local/apache2/conf/php7 \
            --enable-mbstring \
            --enable-zip \
            --enable-bcmath \
            --enable-pcntl \
            --enable-ftp \
            --enable-exif \
            --enable-calendar \
            --enable-sysvmsg \
            --enable-sysvsem \
            --enable-sysvshm \
            --enable-wddx \
            --enable-intl \
            --with-curl=$APPATH \
            --with-gmp=$APPATH \
            --with-gd=$APPATH \
            --with-jpeg-dir=$APPATH \
            --with-png-dir=$APPATH \
            --with-xpm-dir=$APPATH \
            --with-freetype-dir=$APPATH \
            --enable-gd-native-ttf \
            --enable-gd-jis-conv \
            --with-openssl=$APPATH \
            --with-pdo-mysql=/usr/local/mariadb \
            --with-zlib=$APPATH \
            --with-bz2=$APPATH \
            --with-iconv=$APPATH \
            --with-zlib-dir=$APPATH \
            --with-openssl=$APPATH \
            --with-zlib=$APPATH \
            --with-libxml-dir=$APPATH \
            --with-bz2=$APPATH \
            --with-apxs2=/usr/local/apache2/bin/apxs \
            --with-mysqli=/usr/local/mariadb/bin/mysql_config
gmake
gmake install
######################################################################

error:

xml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm  -o sapi/cli/php
nm: ext/zip/lib/zip_utf-.libs/8.o: 0654-200 Cannot open the specified file.
nm: No such file or directory
ld: 0711-224 WARNING: Duplicate symbol: sigsetjmp
ld: 0711-224 WARNING: Duplicate symbol: strcmp
ld: 0711-224 WARNING: Duplicate symbol: .fsav
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF14
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef14
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF15
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef15
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF16
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef16
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF17
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef17
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF18
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef18
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF19
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef19
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF20
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef20
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF21
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef21
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF22
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef22
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF23
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef23
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF24
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef24
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF25
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef25
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF26
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef26
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF27
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef27
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF28
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef28
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF29
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef29
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF30
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef30
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF31
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef31
ld: 0711-224 WARNING: Duplicate symbol: ._savef3
ld: 0711-224 WARNING: Duplicate symbol: .fres
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF14
ld: 0711-224 WARNING: Duplicate symbol: .Srestf14
ld: 0711-224 WARNING: Duplicate symbol: ._restf14
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF15
ld: 0711-224 WARNING: Duplicate symbol: .Srestf15
ld: 0711-224 WARNING: Duplicate symbol: ._restf15
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF16
ld: 0711-224 WARNING: Duplicate symbol: .Srestf16
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF17
ld: 0711-224 WARNING: Duplicate symbol: .Srestf17
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF18
ld: 0711-224 WARNING: Duplicate symbol: .Srestf18
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF19
ld: 0711-224 WARNING: Duplicate symbol: .Srestf19
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF20
ld: 0711-224 WARNING: Duplicate symbol: .Srestf20
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF21
ld: 0711-224 WARNING: Duplicate symbol: .Srestf21
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF22
ld: 0711-224 WARNING: Duplicate symbol: .Srestf22
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF23
ld: 0711-224 WARNING: Duplicate symbol: .Srestf23
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF24
ld: 0711-224 WARNING: Duplicate symbol: .Srestf24
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF25
ld: 0711-224 WARNING: Duplicate symbol: .Srestf25
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF26
ld: 0711-224 WARNING: Duplicate symbol: .Srestf26
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF27
ld: 0711-224 WARNING: Duplicate symbol: .Srestf27
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF28
ld: 0711-224 WARNING: Duplicate symbol: .Srestf28
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF29
ld: 0711-224 WARNING: Duplicate symbol: .Srestf29
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF30
ld: 0711-224 WARNING: Duplicate symbol: .Srestf30
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF31
ld: 0711-224 WARNING: Duplicate symbol: .Srestf31
ld: 0711-224 WARNING: Duplicate symbol: ._restf3
ld: 0711-224 WARNING: Duplicate symbol: siglongjmp
ld: 0711-224 WARNING: Duplicate symbol: .strcpy
ld: 0711-224 WARNING: Duplicate symbol: strcpy
ld: 0711-224 WARNING: Duplicate symbol: __fe_def_env
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-317 ERROR: Undefined symbol: __UnsupportedConditionalExpressionDestruction__FPvl
ld: 0711-317 ERROR: Undefined symbol: .__dl__FPv
ld: 0711-317 ERROR: Undefined symbol: .__vec__delete2
ld: 0711-317 ERROR: Undefined symbol: .__nw__FUl
ld: 0711-317 ERROR: Undefined symbol: .__ReThrowV6
ld: 0711-317 ERROR: Undefined symbol: .__setUncaughtExceptionFlag__3stdFb
ld: 0711-317 ERROR: Undefined symbol: .__ThrowV6
ld: 0711-317 ERROR: Undefined symbol: .__ct__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FPCc
ld: 0711-317 ERROR: Undefined symbol: .unexpected__3stdFv
ld: 0711-317 ERROR: Undefined symbol: .terminate__3stdFv
ld: 0711-317 ERROR: Undefined symbol: ._Tidy__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__Fb
ld: 0711-317 ERROR: Undefined symbol: .assign__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__FRCQ2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__UlT2
ld: 0711-317 ERROR: Undefined symbol: ._Nullstr__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__Fv
ld: 0711-317 ERROR: Undefined symbol: .__DynamicPtrCast
ld: 0711-317 ERROR: Undefined symbol: .__ThrowBadTypeid__3stdFv
ld: 0711-317 ERROR: Undefined symbol: .__vn__FUl
ld: 0711-317 ERROR: Undefined symbol: .__vd__FPv
ld: 0711-317 ERROR: Undefined symbol: .mysql_use_result
ld: 0711-317 ERROR: Undefined symbol: .mysql_store_result
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_init
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_prepare
ld: 0711-317 ERROR: Undefined symbol: .mysql_get_client_info
ld: 0711-317 ERROR: Undefined symbol: .mysql_server_end
ld: 0711-317 ERROR: Undefined symbol: .mysql_server_init
ld: 0711-317 ERROR: Undefined symbol: .mysql_warning_count
ld: 0711-317 ERROR: Undefined symbol: .mysql_errno
ld: 0711-317 ERROR: Undefined symbol: .mysql_sqlstate
ld: 0711-317 ERROR: Undefined symbol: .mysql_error
ld: 0711-317 ERROR: Undefined symbol: .mysql_thread_safe
ld: 0711-317 ERROR: Undefined symbol: .mysql_thread_id
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_sqlstate
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_field_count
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_store_result
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_errno
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_error
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_attr_set
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_result_metadata
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_attr_get
ld: 0711-317 ERROR: Undefined symbol: .mysql_refresh
ld: 0711-317 ERROR: Undefined symbol: .mysql_stat
ld: 0711-317 ERROR: Undefined symbol: .mysql_ssl_set
ld: 0711-317 ERROR: Undefined symbol: .mysql_select_db
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_num_rows
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_reset
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_param_count
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_insert_id
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_free_result
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_data_seek
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_close
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_affected_rows
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_send_long_data
ld: 0711-317 ERROR: Undefined symbol: .mysql_real_escape_string
ld: 0711-317 ERROR: Undefined symbol: .mysql_real_query
ld: 0711-317 ERROR: Undefined symbol: .mysql_field_count
ld: 0711-317 ERROR: Undefined symbol: .mysql_set_server_option
ld: 0711-317 ERROR: Undefined symbol: .mysql_get_server_version
ld: 0711-317 ERROR: Undefined symbol: .mysql_get_character_set_info
ld: 0711-317 ERROR: Undefined symbol: .mysql_set_character_set
ld: 0711-317 ERROR: Undefined symbol: .mysql_fetch_row
ld: 0711-317 ERROR: Undefined symbol: .mysql_free_result
ld: 0711-317 ERROR: Undefined symbol: .mysql_get_client_version
ld: 0711-317 ERROR: Undefined symbol: .mysql_init
ld: 0711-317 ERROR: Undefined symbol: .mysql_real_connect
ld: 0711-317 ERROR: Undefined symbol: .mysql_close
ld: 0711-317 ERROR: Undefined symbol: .mysql_options
ld: 0711-317 ERROR: Undefined symbol: .mysql_change_user
ld: 0711-317 ERROR: Undefined symbol: .mysql_ping
ld: 0711-317 ERROR: Undefined symbol: .mysql_num_rows
ld: 0711-317 ERROR: Undefined symbol: .mysql_num_fields
ld: 0711-317 ERROR: Undefined symbol: .mysql_more_results
ld: 0711-317 ERROR: Undefined symbol: .mysql_next_result
ld: 0711-317 ERROR: Undefined symbol: .mysql_kill
ld: 0711-317 ERROR: Undefined symbol: .mysql_insert_id
ld: 0711-317 ERROR: Undefined symbol: .mysql_info
ld: 0711-317 ERROR: Undefined symbol: .mysql_get_server_info
ld: 0711-317 ERROR: Undefined symbol: .mysql_get_proto_info
ld: 0711-317 ERROR: Undefined symbol: .mysql_field_tell
ld: 0711-317 ERROR: Undefined symbol: .mysql_field_seek
ld: 0711-317 ERROR: Undefined symbol: .mysql_fetch_lengths
ld: 0711-317 ERROR: Undefined symbol: .mysql_fetch_field_direct
ld: 0711-317 ERROR: Undefined symbol: .mysql_fetch_field
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_fetch
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_execute
ld: 0711-317 ERROR: Undefined symbol: .mysql_dump_debug_info
ld: 0711-317 ERROR: Undefined symbol: .mysql_debug
ld: 0711-317 ERROR: Undefined symbol: .mysql_data_seek
ld: 0711-317 ERROR: Undefined symbol: .mysql_character_set_name
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_bind_result
ld: 0711-317 ERROR: Undefined symbol: .mysql_stmt_bind_param
ld: 0711-317 ERROR: Undefined symbol: .mysql_autocommit
ld: 0711-317 ERROR: Undefined symbol: .mysql_affected_rows
ld: 0711-317 ERROR: Undefined symbol: .mysql_get_host_info
ld: 0711-317 ERROR: Undefined symbol: .mysql_fetch_fields
ld: 0711-317 ERROR: Undefined symbol: .mysql_rollback
ld: 0711-317 ERROR: Undefined symbol: .mysql_commit
Makefile:283: recipe for target 'sapi/cli/php' failed
gmake: *** [sapi/cli/php] Error 8





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-02-20 21:18 UTC] nepanuceno at gmail dot com
sudo apt-get install libgd-dev
make clean
make
make install
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 23 03:01:26 2019 UTC