php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59177 Not install package
Submitted: 2010-04-25 12:14 UTC Modified: 2010-10-29 14:22 UTC
From: zydrick at gmail dot com Assigned:
Status: Not a bug Package: expect (PECL)
PHP Version: 5.3.2 OS: Snow Leopard 10.6.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
1 + 3 = ?
Subscribe to this entry?

 
 [2010-04-25 12:14 UTC] zydrick at gmail dot com
Description:
------------
I couldn't install package in Snow Leopard 10.6.3.

Actual result:
--------------
sudo pecl install expect-0.2.6
WARNING: channel "pear.php.net" has updated its protocols, use "pecl channel-update pear.php.net" to update
downloading expect-0.2.6.tgz ...
Starting to download expect-0.2.6.tgz (6,077 bytes)
.....done: 6,077 bytes
6 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
building in /var/tmp/pear-build-root/expect-0.2.6
running: /private/tmp/pear/download/expect-0.2.6/configure
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i386-apple-darwin10.3.0
checking host system type... i386-apple-darwin10.3.0
checking target system type... i386-apple-darwin10.3.0
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for expect support... yes, shared
checking for ld used by cc... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no
checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm output from cc object... rm: conftest.dSYM: is a directory
ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/var/tmp/pear-build-root/expect-0.2.6/libtool --mode=compile cc  -I. -I/private/tmp/pear/download/expect-0.2.6 -DPHP_ATOM_INC -I/private/var/tmp/pear-build-root/expect-0.2.6/include -I/private/var/tmp/pear-build-root/expect-0.2.6/main -I/private/tmp/pear/download/expect-0.2.6 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/download/expect-0.2.6/expect.c -o expect.lo
mkdir .libs
 cc -I. -I/private/tmp/pear/download/expect-0.2.6 -DPHP_ATOM_INC -I/private/var/tmp/pear-build-root/expect-0.2.6/include -I/private/var/tmp/pear-build-root/expect-0.2.6/main -I/private/tmp/pear/download/expect-0.2.6 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/download/expect-0.2.6/expect.c  -fno-common -DPIC -o .libs/expect.o
In file included from /private/tmp/pear/download/expect-0.2.6/expect.c:21:
/private/tmp/pear/download/expect-0.2.6/php_expect.h:33:20: error: expect.h: No such file or directory
/private/tmp/pear/download/expect-0.2.6/expect.c: In function ?OnSetExpectTimeout?:
/private/tmp/pear/download/expect-0.2.6/expect.c:69: error: ?exp_timeout? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c:69: error: (Each undeclared identifier is reported only once
/private/tmp/pear/download/expect-0.2.6/expect.c:69: error: for each function it appears in.)
/private/tmp/pear/download/expect-0.2.6/expect.c: In function ?OnSetExpectLogUser?:
/private/tmp/pear/download/expect-0.2.6/expect.c:81: error: ?exp_loguser? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c: In function ?OnSetExpectLogFile?:
/private/tmp/pear/download/expect-0.2.6/expect.c:101: error: ?exp_logfile? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c:104: error: ?exp_logfile_all? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c: In function ?zm_startup_expect?:
/private/tmp/pear/download/expect-0.2.6/expect.c:126: error: ?exp_glob? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c:127: error: ?exp_exact? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c:128: error: ?exp_regexp? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c:129: error: ?EXP_EOF? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c:130: error: ?EXP_TIMEOUT? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c:131: error: ?EXP_FULLBUFFER? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c: In function ?zif_expect_popen?:
/private/tmp/pear/download/expect-0.2.6/expect.c:183: warning: assignment makes pointer from integer without a cast
/private/tmp/pear/download/expect-0.2.6/expect.c:193: error: ?exp_pid? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c: In function ?zif_expect_expectl?:
/private/tmp/pear/download/expect-0.2.6/expect.c:206: error: storage size of ?matchedcase? isn?t known
/private/tmp/pear/download/expect-0.2.6/expect.c:230: error: invalid application of ?sizeof? to incomplete type ?struct exp_case?
/private/tmp/pear/download/expect-0.2.6/expect.c:246: error: dereferencing pointer to incomplete type
/private/tmp/pear/download/expect-0.2.6/expect.c:247: error: dereferencing pointer to incomplete type
/private/tmp/pear/download/expect-0.2.6/expect.c:247: error: ?exp_glob? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c:260: error: dereferencing pointer to incomplete type
/private/tmp/pear/download/expect-0.2.6/expect.c:268: error: dereferencing pointer to incomplete type
/private/tmp/pear/download/expect-0.2.6/expect.c:277: error: ?exp_exact? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c:277: error: ?exp_regexp? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c:282: error: dereferencing pointer to incomplete type
/private/tmp/pear/download/expect-0.2.6/expect.c:285: error: increment of pointer to unknown structure
/private/tmp/pear/download/expect-0.2.6/expect.c:285: error: arithmetic on pointer to an incomplete type
/private/tmp/pear/download/expect-0.2.6/expect.c:288: error: dereferencing pointer to incomplete type
/private/tmp/pear/download/expect-0.2.6/expect.c:288: error: ?exp_end? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c:292: error: ?exp_match_end? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c:292: error: ?exp_match? undeclared (first use in this function)
/private/tmp/pear/download/expect-0.2.6/expect.c:300: error: invalid use of undefined type ?struct exp_case?
/private/tmp/pear/download/expect-0.2.6/expect.c:300: error: dereferencing pointer to incomplete type
make: *** [expect.lo] Error 1
ERROR: `make' failed

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-29 09:55 UTC] cal3 at clindner dot com
I'm using snow leopard as well and was hitting the same 
exact issue.  I'm a little further along but not getting  a 
successful build yet. Getting past what you are seeing 
involved several steps for me:

1) Re-install mac ports. (my version was older, and as a 
result the architecture types were wrong later on)


2) As part of the mac port re-install, I hit issues that 
essentially were resolved by reinstalling xcode and going to 
the java preferences panel and changing the order of the jvm 
selection (32 bit first).  64 bit was first and causing mac 
port compile issues.

3) For the sake of a comparison, I was able to successfully 
do a pecl install expect of the latest version on ubuntu 
10.10 after installing both php5-devel and the expect-devel 
packages.

4)  I have not found an equivalent of the expect-devel 
packages on macports.  I was able to do a macport install of 
php5-devel, download the latest .tgz, do a phpize on the 
directory, run ./configure, do a make and am now at the 
point where I am seeing the following linker error:

/bin/sh /Users/user/Downloads/expect-0.2.7/expect-
0.2.7/libtool --mode=link cc -DPHP_ATOM_INC -
I/Users/user/Downloads/expect-0.2.7/expect-0.2.7/include -
I/Users/user/Downloads/expect-0.2.7/expect-0.2.7/main -
I/Users/user/Downloads/expect-0.2.7/expect-0.2.7 -
I/usr/local/zend/include/php -
I/usr/local/zend/include/php/main -
I/usr/local/zend/include/php/TSRM -
I/usr/local/zend/include/php/Zend -
I/usr/local/zend/include/php/ext -
I/usr/local/zend/include/php/ext/date/lib  -DHAVE_CONFIG_H  
-g -O2   -o expect.la -export-dynamic -avoid-version -
prefer-pic -module -rpath /Users/user/Downloads/expect-
0.2.7/expect-0.2.7/modules  expect.lo 
expect_fopen_wrapper.lo -lexpect
cc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o 
.libs/expect.so -bundle  .libs/expect.o 
.libs/expect_fopen_wrapper.o  -lexpect 
ld: library not found for -lexpect
collect2: ld returned 1 exit status
make: *** [expect.la] Error 1
$

Makefile has the following:
EXPECT_SHARED_LIBADD = -lexpect

The Makefile on ubuntu is:

EXPECT_SHARED_LIBADD = -Wl,-rpath,/usr/include/lib -
L/usr/include/lib -lexpect

And the interesting this is that on my ubuntu vm the 
/usr/include/lib directory is non-existent, so I'm assuming 
that it is finding expect in some other way and that this 
was made available via the expect-devel packages that I was 
unable to find for macports, otherwise the macport version 
of expect and tcl are both installed and available.  I'm 
just not sure how to go further from this point.
 [2010-10-29 14:22 UTC] spektom at gmail dot com
Sorry, but your problem does not imply a bug in PECL itself.  For a
list of more appropriate places to ask for help using PECL, please
visit http://pecl.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PECL.

Please set LD_LIBRARY_PATH variable to the directory that contains libexpect.so (or libexpect.dylib). Then run "pecl install".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC