Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 306547

Summary: =dev-php5/pecl-gearman-0.6.0 does not build with =sys-cluster/gearmand-0.12
Product: Gentoo Linux Reporter: Matthew Schultz <mattsch>
Component: New packagesAssignee: Diego Elio Pettenò (RETIRED) <flameeyes>
Status: RESOLVED FIXED    
Severity: normal CC: pavel.stratil-jun
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://pecl.php.net/package/gearman
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
environment
pecl-gearman-0.6.0.ebuild
pecl-gearman.diff

Description Matthew Schultz 2010-02-23 17:45:59 UTC
pecl gearman 0.6.0 does not build with gearmand 0.12:

/bin/sh /var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/libtool --mode=compile x86_64-pc-linux-gnu-gcc  -I. -I/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0 -DPHP_ATOM_INC -I/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/include -I/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/main -I/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0 -I/usr/lib64/php5/include/php -I/usr/lib64/php5/include/php/main -I/usr/lib64/php5/include/php/TSRM -I/usr/lib64/php5/include/php/Zend -I/usr/lib64/php5/include/php/ext -I/usr/lib64/php5/include/php/ext/date/lib  -DHAVE_CONFIG_H  -march=core2 -O2 -pipe -fomit-frame-pointer -Wall   -c /var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c -o php_gearman.lo                                            
libtool: compile:  x86_64-pc-linux-gnu-gcc -I. -I/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0 -DPHP_ATOM_INC -I/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/include -I/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/main -I/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0 -I/usr/lib64/php5/include/php -I/usr/lib64/php5/include/php/main -I/usr/lib64/php5/include/php/TSRM -I/usr/lib64/php5/include/php/Zend -I/usr/lib64/php5/include/php/ext -I/usr/lib64/php5/include/php/ext/date/lib -DHAVE_CONFIG_H -march=core2 -O2 -pipe -fomit-frame-pointer -Wall -c /var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c  -fPIC -DPIC -o .libs/php_gearman.o                                                                                                           
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:910: error: expected specifier-qualifier-list before ‘gearman_st’                         
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c: In function ‘zm_startup_gearman’:                                                        
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4491: error: ‘GEARMAN_ALLOCATED’ undeclared (first use in this function)                  
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4491: error: (Each undeclared identifier is reported only once                            
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4491: error: for each function it appears in.)                                            
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4500: error: ‘GEARMAN_CON_ALLOCATED’ undeclared (first use in this function)              
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4518: error: ‘GEARMAN_CON_STATE_ADDRINFO’ undeclared (first use in this function)         
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4521: error: ‘GEARMAN_CON_STATE_CONNECT’ undeclared (first use in this function)          
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4524: error: ‘GEARMAN_CON_STATE_CONNECTING’ undeclared (first use in this function)       
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4527: error: ‘GEARMAN_CON_STATE_CONNECTED’ undeclared (first use in this function)        
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4533: error: ‘GEARMAN_CON_SEND_STATE_PRE_FLUSH’ undeclared (first use in this function)   
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4536: error: ‘GEARMAN_CON_SEND_STATE_FORCE_FLUSH’ undeclared (first use in this function) 
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4539: error: ‘GEARMAN_CON_SEND_STATE_FLUSH’ undeclared (first use in this function)       
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4542: error: ‘GEARMAN_CON_SEND_STATE_FLUSH_DATA’ undeclared (first use in this function)  
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4545: error: ‘GEARMAN_CON_RECV_STATE_NONE’ undeclared (first use in this function)        
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4548: error: ‘GEARMAN_CON_RECV_STATE_READ’ undeclared (first use in this function)        
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4554: error: ‘GEARMAN_PACKET_ALLOCATED’ undeclared (first use in this function)           
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4557: error: ‘GEARMAN_PACKET_COMPLETE’ undeclared (first use in this function)            
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4560: error: ‘GEARMAN_PACKET_FREE_DATA’ undeclared (first use in this function)           
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4686: error: ‘GEARMAN_TASK_ALLOCATED’ undeclared (first use in this function)             
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4689: error: ‘GEARMAN_TASK_SEND_IN_USE’ undeclared (first use in this function)           
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4728: error: ‘GEARMAN_JOB_ALLOCATED’ undeclared (first use in this function)              
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4731: error: ‘GEARMAN_JOB_ASSIGNED_IN_USE’ undeclared (first use in this function)
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4734: error: ‘GEARMAN_JOB_WORK_IN_USE’ undeclared (first use in this function)
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4737: error: ‘GEARMAN_JOB_FINISHED’ undeclared (first use in this function)
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4827: error: ‘GEARMAN_WORKER_FUNCTION_PACKET_IN_USE’ undeclared (first use in this function)
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4830: error: ‘GEARMAN_WORKER_FUNCTION_CHANGE’ undeclared (first use in this function)
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4833: error: ‘GEARMAN_WORKER_FUNCTION_REMOVE’ undeclared (first use in this function)
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4836: error: ‘GEARMAN_WORKER_WORK_STATE_GRAB_JOB’ undeclared (first use in this function)
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4839: error: ‘GEARMAN_WORKER_WORK_STATE_FUNCTION’ undeclared (first use in this function)
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4842: error: ‘GEARMAN_WORKER_WORK_STATE_COMPLETE’ undeclared (first use in this function)
/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0/php_gearman.c:4845: error: ‘GEARMAN_WORKER_WORK_STATE_FAIL’ undeclared (first use in this function)
make: *** [php_gearman.lo] Error 1
 * ERROR: dev-php5/pecl-gearman-0.6.0 failed:
 *   Unable to make code
 *
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 3981:  Called php-ext-pecl-r1_src_compile
 *   environment, line 3190:  Called php-ext-source-r1_src_compile
 *   environment, line 3222:  Called die
 * The specific snippet of code:
 *       emake || die "Unable to make code";
 *
 * If you need support, post the output of 'emerge --info =dev-php5/pecl-gearman-0.6.0',
 * the complete build log and the output of 'emerge -pqv =dev-php5/pecl-gearman-0.6.0'.
 * The complete build log is located at '/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/temp/environment'.
 * S: '/var/tmp/portage/dev-php5/pecl-gearman-0.6.0/work/gearman-0.6.0'


Reproducible: Always

Steps to Reproduce:
1. emerge pecl-gearman 0.6.0 with gearmand 0.12

Actual Results:  
pecl-gearman does not emerge

Expected Results:  
pecl-gearman should emerge

emerge --info
Portage 2.1.7.16 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r4 x86_64)
=================================================================                               
System uname: Linux-2.6.32-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9400_@_2.53GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 23 Feb 2010 14:15:03 +0000                                                      
app-shells/bash:     4.0_p35                                                                            
dev-java/java-config: 2.1.10                                                                            
dev-lang/python:     2.6.4                                                                              
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://portage.home http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://mirror.phy.olemiss.edu/mirror/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en ru"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi adns alsa amd64 apache2 audiofile avi bcmath bdf berkdb bluetooth bzip2 cairo calendar caps cdda cddb cdparanoia cdr chardet cjk clamav cli cracklib crypt css ctype cups curl curlwrappers cxx dbus dga directfb dri dts dvb dvd dvdread emu-linux-x86 encode exif fbcon ffmpeg flac foomaticdb fortran ftp fts3 gd gdbm gif gmp gnutls gpm gsm gtk gtk2 gzip hal hash iconv ieee1394 imagemagick imap imlib innodb ipv6 ithreads java java6 javascript jpeg jpeg2k json kde kipi lcms libcaca libnotify lirc logrotate lzo mad matroska mcal mhash mime mjpeg mmx mmxext mng modules mp3 mp4 mpeg mplayer msession msn mudflap multilib mysql mysqli mythtv ncurses network nls nptl nptlonly nsplugin nss offensive ogg openal opengl openmp osc oss pam pcntl pcre pdf pdo pear perl pg-intdatetime php png posix ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection rtc samba sasl sdl seamonkey semantic-desktop session simplexml soap sockets spell spl sql sqlite sse sse2 ssl ssse3 subversion suhosin svg sysfs syslog tcmalloc tcpd theora threads thumbnail tidy tiff tokenizer transcode truetype unicode usb utempter v4l v4l2 vcd vorbis wddx webkit wifi wxwindows x264 xcb xcomposite xforms xine xinerama xml xorg xpm xsl xv xvid xvmc zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Matthew Schultz 2010-02-23 17:47:43 UTC
Created attachment 220869 [details]
build.log

build.log
Comment 2 Matthew Schultz 2010-02-23 17:48:12 UTC
Created attachment 220871 [details]
environment

environment
Comment 3 Matthew Schultz 2010-02-24 17:28:49 UTC
Christoph Haas from Debian just informed me that pecl-gearman-0.6.0 is incompatible with gearmand-0.12.  Looks like the pecl-gearman ebuild needs to depend on <gearmand-0.12.
Comment 4 Matthew Schultz 2010-02-24 17:31:55 UTC
Created attachment 221003 [details]
pecl-gearman-0.6.0.ebuild

Fixes the ebuild to depend on < gearmand-0.12.
Comment 5 Matthew Schultz 2010-02-24 17:33:32 UTC
Created attachment 221005 [details, diff]
pecl-gearman.diff
Comment 6 Pavel Stratil 2010-02-27 02:59:44 UTC
Matthew, thanks for your report & the patch, It will hit the tree tomorrow. The extension's dev has already commited initial porting to gearmand-0.12 in svn so a new release of the extension can be expected soon as well.
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2010-02-27 12:17:06 UTC
Fixed. Thanks for report.