View previous topic :: View next topic |
Author |
Message |
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Sun Dec 18, 2011 12:21 pm Post subject: cups fails with 'phpcups_functions' undeclared |
|
|
Hi
despite two weeks battling to get this gentoo back into shape and innumerable revdep-rebuilds and the rest , cups is blocking not finding something.
Code: | Making all in test...
Compiling ipptest.c...
Linking ipptest...
Making all in scripting/php...
Compiling phpcups.c...
phpcups.c:43:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'phpcups_functions'
phpcups.c:64:3: error: 'phpcups_functions' undeclared here (not in a function)
make[1]: *** [phpcups.o] Error 1
make: *** [all] Error 1
emake failed
* ERROR: net-print/cups-1.4.8-r22 failed (compile phase):
* emake failed
*
* Call stack:
* ebuild.sh, line 75: Called src_compile
* environment, line 8580: Called die
* The specific snippet of code:
* emake || die "emake failed";
*
* If you need support, post the output of 'emerge --info =net-print/cups-1.4.8-r22',
|
The shit all started when I updated to png-1.5 , but I've been told it's nothing to do with that update.
idea?
TIA, Gentree. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
asmbuster n00b
Joined: 20 Nov 2007 Posts: 6
|
Posted: Fri Dec 30, 2011 6:12 pm Post subject: |
|
|
same here
Code: | Making all in scripting/php...
Compiling phpcups.c...
phpcups.c:43:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'phpcups_functions'
phpcups.c:64:3: error: 'phpcups_functions' undeclared here (not in a function)
make[1]: *** [phpcups.o] Error 1
make: *** [all] Error 1
emake failed
* ERROR: net-print/cups-1.4.8-r22 failed (compile phase):
* emake failed
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 8414: Called die
* The specific snippet of code:
* emake || die "emake failed";
*
|
emerge --info
Code: | Portage 2.1.10.44 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r1, 3.1.5-gentoo x86_64)
=================================================================
System uname: Linux-3.1.5-gentoo-x86_64-AMD_FX-tm-8120_Eight-Core_Processor-with-gentoo-2.1
Timestamp of tree: Thu, 29 Dec 2011 10:15:01 +0000
app-shells/bash: 4.2_p20
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.2-r3, 3.2.2
dev-util/cmake: 2.8.6-r4
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.1
sys-apps/openrc: 0.9.7
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.68
sys-devel/automake: 1.11.1-r1
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.5.3-r2
sys-devel/gcc-config: 1.5-r2
sys-devel/libtool: 2.4.2
sys-devel/make: 3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.14.1-r1
Repositories: gentoo rubenqba x11 x-priv_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-ggdb -O2 -pipe -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx -floop-interchange -floop-strip-mine -floop-block -ftree-vectorize -mstackrealign"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-ggdb -O2 -pipe -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx -floop-interchange -floop-strip-mine -floop-block -ftree-vectorize -mstackrealign"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --keep-going --load-average=15"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://91.121.124.139/gentoo-distfiles/ ftp://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j9"
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="/var/lib/layman/rubenqba /var/lib/layman/x11 /usr/local/portage/priv_overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex 3dnowext X Xaw3d a52 aac aavm acl acpi acpi4linux alsa amd64 amr ao apache2 apng arts audacious autoipd automount avahi bash-completion berkdb binary-drivers binfilter bluetooth boost bootsplash branding bzip2 bzlib cairo cdb cdda cddb cdparanoia cdr cdrdao cdrom chipcard clearcase cli consolekit contrast cpudetection cpufreq cracklib crypt cups custom-optimization cxx dba dbus declarative deprecated device-mapper dga divx dri dtaus dv dvb dvd dvdnav dvdr eds encode esd exif extensions extras faad fastbuild ffmpeg fortran freesound freetype fuse gd gdbm gdu gensplash gif gimp glade glgd glitz gnome gnome-print gnomecanvas gnomedb gnutella gnutls gpm graphite gstreamer gtk gtk2 gtk3 gudev gui hbci hwdb iconv icq idn imlib2 insecure-savers introspection iproute2 ipv6 jamvm java java6 javascript jp2 jpeg jpeg2k kde lame laptop libburn libkms libnotify lm_sensors lv2 lzo lzw lzw-tiff mad mailwrapper makecheck mdnsresponder-compat microhttpd midi miknod mime mimencode minizip mjpeg mmx mmx2 mmxext mng modules motiv mp3 mpeg mpeg4 mpi msn mudflap multilib multimedia music nas ncurses newspr nfs nfsidmap nfsv3 nfsv4 nfsv41 nls nptl nptlonly ocaml offensive ogg openal openct opengl openmp opensync pam passwordsave pcre pdf perl pertty pg-hier php plasma png policykit postfix postgres ppds pppd profile pulseaudio pyhton python qt-copy qt-dbus qt3support qt4 rar rdesktop readline realmedia regex remix romio rrdtool samba sasl sdl session shared slang slp smp sndfile sockets socks5 soundtouch spell sql sqlite sse sse-filters sse2 ssl subversion svg svgz sysfs sysvipc tcpd theora threads tiff tk tools transcode translator truetype udev unicode upnp usb v4l vala vamp vcd vcdimager vnc voice vorbis webkit wifi x264 xanim xattr xfs xinerama xml xorg xscreensaver xv xvid yahoo yv12 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="nfs plymouth gensplash" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati fbdev vesa radeon radeonhd v4l r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
|
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Fri Dec 30, 2011 8:56 pm Post subject: |
|
|
see this
solution: build cups with USE="-php", it seems to be unmaintained anyway. |
|
Back to top |
|
|
asmbuster n00b
Joined: 20 Nov 2007 Posts: 6
|
Posted: Sat Dec 31, 2011 1:09 pm Post subject: |
|
|
Droped php support ? ok Thanks.. That works now.
Best regards,
Eric |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Sat Dec 31, 2011 1:14 pm Post subject: |
|
|
Incompatible with php-5.4 without any fix in sight (and the module was removed from cups-1.6). |
|
Back to top |
|
|
trainboy n00b
Joined: 18 May 2012 Posts: 2
|
Posted: Fri May 18, 2012 3:12 pm Post subject: |
|
|
If you build against a later version of PHP (one that doesn't include the php3_compat.h header file in the main directory), you may get a compile error in phpcups.c that says:
Code: | phpcups.c:43: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'phpcups_functions' |
This is because the phpcups.c module uses the obsolete "function_entry" attribute for the list of phpcups functions, instead of the currently-used attribute "zend_function_entry". Until recently, the php3_compat.h file defined "function_entry" as "zend_function_entry". Then, the header file went away and the phpcups.c compile became broken.
The fix is to edit the phpcups.c source file and change line 43 to read:
Code: | zend_function_entry phpcups_functions[] =
|
|
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Fri May 18, 2012 6:28 pm Post subject: |
|
|
If the code works for you, you should submit it on bugzilla. The php USE-flag was already dropped from the cups ebuild, though. |
|
Back to top |
|
|
trainboy n00b
Joined: 18 May 2012 Posts: 2
|
Posted: Fri May 18, 2012 10:30 pm Post subject: |
|
|
I'm not sure what you're talking about. CUPS 1.5.3 still has the --with-php flag in configure. And, phpcups.c is still in the scripting directory. As for submitting anything on Bugzilla, the 1.5.3 code has the fix already. The problem only exists with earlier versions of CUPS, when compiled against the later versions of PHP. And, you probably don't even need to compile it unless you are trying to match some of the ancient stuff that is included in various OS distros. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Sat May 19, 2012 6:43 am Post subject: |
|
|
Code: | $ equery l -ip cups
* Searching for cups ...
[-P-] [ ] net-print/cups-1.4.8-r1:0
[-P-] [ ] net-print/cups-1.4.8-r23:0
[-P-] [ ] net-print/cups-1.5.2-r4:0
[IP-] [ ] net-print/cups-1.5.2-r21:0
[-P-] [ -] net-print/cups-9999:0
$ emerge -pv cups
Calculating dependencies... done!
[ebuild R ] net-print/cups-1.5.2-r21 USE="X acl avahi dbus filters jpeg ldap pam png python ssl threads tiff -debug -gnutls -java -kerberos -perl -slp -static-libs -systemd -usb -xinetd" 0 kB
$ less /usr/portage/net-print/cups/ChangeLog
07 Feb 2012; Andreas K. Huettel <dilfridge@gentoo.org> cups-1.5.2-r1.ebuild:
Drop php scripting support; it is unmaintained by upstream, has already been
removed in trunk, and displays build failures with recent php. Bug 388105 |
See what I mean? There's no php USE flag for cups in Gentoo anymore, so the --with-php flag will not be utilized. If someone is interested in the php scripting support for the Gentoo cups ebuild, best thing would be to raise a cups version bump request for 1.5.3 on bugs.gentoo.org and point to the Changelog where it says "php-5.4 compat fixed!" to get the php USE flag back in. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|