php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58296 Error saying include file expect.h missing
Submitted: 2008-07-29 11:14 UTC Modified: 2008-07-30 05:17 UTC
From: leelu123 at gmail dot com Assigned:
Status: Not a bug Package: expect (PECL)
PHP Version: 5.2.5 OS: FedoraCore 9 (64 bit m/c)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: leelu123 at gmail dot com
New email:
PHP Version: OS:

 

 [2008-07-29 11:14 UTC] leelu123 at gmail dot com
Description:
------------
[root@leels expect-0.2.4]# make
/bin/sh /home/leelu/PEAR/expect-0.2.4/libtool --mode=compile gcc  -I. -I/home/leelu/PEAR/expect-0.2.4 -DPHP_ATOM_INC -I/home/leelu/PEAR/expect-0.2.4/include -I/home/leelu/PEAR/expect-0.2.4/main -I/home/leelu/PEAR/expect-0.2.4 -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/include  -DHAVE_CONFIG_H  -g -O2   -c /home/leelu/PEAR/expect-0.2.4/expect.c -o expect.lo
mkdir .libs
 gcc -I. -I/home/leelu/PEAR/expect-0.2.4 -DPHP_ATOM_INC -I/home/leelu/PEAR/expect-0.2.4/include -I/home/leelu/PEAR/expect-0.2.4/main -I/home/leelu/PEAR/expect-0.2.4 -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/include -DHAVE_CONFIG_H -g -O2 -c /home/leelu/PEAR/expect-0.2.4/expect.c  -fPIC -DPIC -o .libs/expect.o
In file included from /home/leelu/PEAR/expect-0.2.4/expect.c:21:
/home/leelu/PEAR/expect-0.2.4/php_expect.h:33:20: error: expect.h: No such file or directory
/home/leelu/PEAR/expect-0.2.4/expect.c: In function 'OnSetExpectTimeout':
/home/leelu/PEAR/expect-0.2.4/expect.c:59: error: 'exp_timeout' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c:59: error: (Each undeclared identifier is reported only once
/home/leelu/PEAR/expect-0.2.4/expect.c:59: error: for each function it appears in.)
/home/leelu/PEAR/expect-0.2.4/expect.c: In function 'OnSetExpectLogUser':
/home/leelu/PEAR/expect-0.2.4/expect.c:71: error: 'exp_loguser' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c: In function 'OnSetExpectLogFile':
/home/leelu/PEAR/expect-0.2.4/expect.c:91: error: 'exp_logfile' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c:94: error: 'exp_logfile_all' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c: In function 'zm_startup_expect':
/home/leelu/PEAR/expect-0.2.4/expect.c:116: error: 'exp_glob' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c:117: error: 'exp_exact' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c:118: error: 'exp_regexp' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c:119: error: 'EXP_EOF' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c:120: error: 'EXP_TIMEOUT' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c:121: error: 'EXP_FULLBUFFER' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c: In function 'zif_expect_popen':
/home/leelu/PEAR/expect-0.2.4/expect.c:171: warning: assignment makes pointer from integer without a cast
/home/leelu/PEAR/expect-0.2.4/expect.c: In function 'zif_expect_expectl':
/home/leelu/PEAR/expect-0.2.4/expect.c:188: error: storage size of 'matchedcase' isn't known
/home/leelu/PEAR/expect-0.2.4/expect.c:206: error: invalid application of 'sizeof' to incomplete type 'struct exp_case'
/home/leelu/PEAR/expect-0.2.4/expect.c:222: error: dereferencing pointer to incomplete type
/home/leelu/PEAR/expect-0.2.4/expect.c:223: error: dereferencing pointer to incomplete type
/home/leelu/PEAR/expect-0.2.4/expect.c:223: error: 'exp_glob' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c:236: error: dereferencing pointer to incomplete type
/home/leelu/PEAR/expect-0.2.4/expect.c:244: error: dereferencing pointer to incomplete type
/home/leelu/PEAR/expect-0.2.4/expect.c:253: error: 'exp_exact' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c:253: error: 'exp_regexp' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c:258: error: dereferencing pointer to incomplete type
/home/leelu/PEAR/expect-0.2.4/expect.c:261: error: increment of pointer to unknown structure
/home/leelu/PEAR/expect-0.2.4/expect.c:261: error: arithmetic on pointer to an incomplete type
/home/leelu/PEAR/expect-0.2.4/expect.c:264: error: dereferencing pointer to incomplete type
/home/leelu/PEAR/expect-0.2.4/expect.c:264: error: 'exp_end' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c:268: error: 'exp_match_end' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c:268: error: 'exp_match' undeclared (first use in this function)
/home/leelu/PEAR/expect-0.2.4/expect.c:276: error: invalid use of undefined type 'struct exp_case'
/home/leelu/PEAR/expect-0.2.4/expect.c:276: error: dereferencing pointer to incomplete type
make: *** [expect.lo] Error 1



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-29 11:18 UTC] leelu123 at gmail dot com
While installing the extension, I get this error, and the status of make step is failure. Their is no file called expect.h in downloaded gz file.

In file included from /home/leelu/PEAR/expect-0.2.4/expect.c:21:
/home/leelu/PEAR/expect-0.2.4/php_expect.h:33:20: error: expect.h: No
such file or directory
/home/leelu/PEAR/expect-0.2.4/expect.c: In function
'OnSetExpectTimeout':
 [2008-07-30 05:17 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.

You must have libexpect version >= 5.43.0 installed before building a PHP-expect extension.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 07:01:27 2024 UTC