From:             
Operating system: OS X (i386-apple-darwin10.8.0)
PHP version:      5.4SVN-2011-10-10 (snap)
Package:          Compile Failure
Bug Type:         Bug
Bug description:Build fails with apxs and readline

Description:
------------
When compiling on 10.6 with the following configure args the build fails:

./configure  '--prefix=/Users/me/Desktop/php54test' '--disable-all'
'--with-
apxs2=/usr/sbin/apxs' '--with-readline=/usr/local/Cellar/readline/6.2.1'
make

Fails with this error:

Undefined symbols for architecture x86_64:
  "_rl_on_new_line", referenced from:
      _zif_readline_on_new_line in readline.o
  "_history_list", referenced from:
      _zif_readline_list_history in readline.o
  "_rl_mark", referenced from:
      _zif_readline_info in readline.o
  "_rl_pending_input", referenced from:
      _zif_readline_info in readline.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1


I've also tried:

* Using an earler version of readline (6.1) fails with the same error
* Compiling on 10.7 Lion results in the same error
* Using the same configure options using the 5.3 branch builds fine
* Compiling with configure options "--with-libedit" enabled instead of the
"--
with-readline" option builds fine



-- 
Edit bug report at https://bugs.php.net/bug.php?id=60034&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60034&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60034&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60034&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60034&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60034&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60034&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60034&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60034&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60034&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60034&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60034&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60034&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60034&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60034&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60034&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60034&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60034&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60034&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60034&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60034&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60034&r=mysqlcfg

Reply via email to