Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347521 - net-print/cups-1.4.5 failed to build with USE="php"
Summary: net-print/cups-1.4.5 failed to build with USE="php"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-02 08:06 UTC by Marian Kyral
Modified: 2011-04-30 15:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (cups.build.log,43.39 KB, text/plain)
2010-12-02 11:30 UTC, Marian Kyral
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Kyral 2010-12-02 08:06:54 UTC
Making all in conf...
Making all in data...
Making all in doc...
Making all in examples...
Making all in fonts...
Making all in templates...
 * Using ExtUtils::MakeMaker
 * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/net-print/cups-1.4.5/image/
Writing Makefile for CUPS
make -j3 'OTHERLDFLAGS=-Wl,-O1 -Wl,--as-needed' 
/usr/bin/perl5.12.2 /usr/lib64/perl5/vendor_perl/5.12.2/ExtUtils/xsubpp  -typemap /usr/lib64/perl5/5.12.2/ExtUtils/typemap  CUPS.xs > CUPS.xsc && mv CUPS.xsc CUPS.c
Running Mkbootstrap for CUPS ()
cp CUPS.pm blib/lib/CUPS.pm
AutoSplitting blib/lib/CUPS.pm (blib/lib/auto/CUPS)
chmod 644 CUPS.bs
cp CUPS.bs blib/arch/auto/CUPS/CUPS.bs
chmod 644 blib/arch/auto/CUPS/CUPS.bs
Please specify prototyping behavior for CUPS.xs (see perlxs manual)
x86_64-pc-linux-gnu-gcc -c  -I../../ -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=native -O2 -pipe   -DVERSION=\"1.2\" -DXS_VERSION=\"1.2\" -fPIC "-I/usr/lib64/perl5/5.12.2/x86_64-linux/CORE"   CUPS.c
rm -f blib/arch/auto/CUPS/CUPS.so
LD_RUN_PATH="/usr/lib64" x86_64-pc-linux-gnu-gcc  -shared -march=native -O2 -pipe -fstack-protector -Wl,-O1 -Wl,--as-needed CUPS.o -Wl,-O1 -Wl,--as-needed -o blib/arch/auto/CUPS/CUPS.so       \
   -lcups       \
  
chmod 755 blib/arch/auto/CUPS/CUPS.so
make -j3 
Compiling phpcups.c...
/bin/sh: --includes: command not found
phpcups.c:33:17: error: php.h: No such file or directory
phpcups.c:34:21: error: php_ini.h: No such file or directory
phpcups.c:35:31: error: ext/standard/info.h: No such file or directory
In file included from phpcups.c:36:
phpcups.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'phpcups_module_entry'
phpcups.h:55: warning: data definition has no type or storage class
phpcups.h:55: warning: type defaults to 'int' in declaration of 'PHP_MINIT_FUNCTION'
phpcups.h:55: warning: parameter names (without types) in function declaration
phpcups.h:57: warning: data definition has no type or storage class
phpcups.h:57: warning: type defaults to 'int' in declaration of 'PHP_FUNCTION'
phpcups.h:57: warning: parameter names (without types) in function declaration
phpcups.h:58: warning: data definition has no type or storage class
phpcups.h:58: warning: type defaults to 'int' in declaration of 'PHP_FUNCTION'
phpcups.h:58: warning: parameter names (without types) in function declaration
phpcups.h:59: warning: data definition has no type or storage class
phpcups.h:59: warning: type defaults to 'int' in declaration of 'PHP_FUNCTION'
phpcups.h:59: warning: parameter names (without types) in function declaration
phpcups.h:60: warning: data definition has no type or storage class
phpcups.h:60: warning: type defaults to 'int' in declaration of 'PHP_FUNCTION'
phpcups.h:60: warning: parameter names (without types) in function declaration
phpcups.h:61: warning: data definition has no type or storage class
phpcups.h:61: warning: type defaults to 'int' in declaration of 'PHP_FUNCTION'
phpcups.h:61: warning: parameter names (without types) in function declaration
phpcups.h:62: warning: data definition has no type or storage class
phpcups.h:62: warning: type defaults to 'int' in declaration of 'PHP_FUNCTION'
phpcups.h:62: warning: parameter names (without types) in function declaration
phpcups.h:63: warning: data definition has no type or storage class
phpcups.h:63: warning: type defaults to 'int' in declaration of 'PHP_FUNCTION'
phpcups.h:63: warning: parameter names (without types) in function declaration
phpcups.c:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'phpcups_functions'
phpcups.c:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'phpcups_module_entry'
phpcups.c:82: warning: return type defaults to 'int'
phpcups.c: In function 'ZEND_GET_MODULE':
phpcups.c:84: error: expected ')' before '*' token
phpcups.c:136: error: expected declaration specifiers before 'PHP_MINIT_FUNCTION'
phpcups.c:218: error: expected declaration specifiers before 'PHP_FUNCTION'
phpcups.c:239: error: expected declaration specifiers before 'PHP_FUNCTION'
phpcups.c:307: error: expected declaration specifiers before 'PHP_FUNCTION'
phpcups.c:374: error: expected declaration specifiers before 'PHP_FUNCTION'
phpcups.c:389: error: expected declaration specifiers before 'PHP_FUNCTION'
phpcups.c:404: error: expected declaration specifiers before 'PHP_FUNCTION'
phpcups.c:440: error: expected declaration specifiers before 'PHP_FUNCTION'
phpcups.c:482: error: expected '{' at end of input
make: *** [phpcups.o] Error 1
emake failed
 * ERROR: net-print/cups-1.4.5 failed:
 *   emake php failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 7561:  Called die
 * The specific snippet of code:
 *           emake || die "emake php failed";
 * 
 * If you need support, post the output of 'emerge --info =net-print/cups-1.4.5',
 * the complete build log and the output of 'emerge -pqv =net-print/cups-1.4.5'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/log/portage/net-print:cups-1.4.5:20101202-075620.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-print/cups-1.4.5/temp/environment'.
 * S: '/var/tmp/portage/net-print/cups-1.4.5/work/cups-1.4.5'

Build OK with USE="-php"



Reproducible: Always

Steps to Reproduce:
1. emerge -uav cups


Actual Results:  
Compilation fail

Expected Results:  
Compilation finishing successfully.

# emerge --info
Portage 2.2.0_alpha4 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.12.1-r3, 2.6.36-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 02 Dec 2010 06:45:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r2
dev-lang/python:     2.6.6-r1, 3.1.3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.6
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5, 4.5.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo kde sunrise arcon mozilla mysql proaudio overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz/ http://gentoo.supp.name/"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--quiet"
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/kde /var/lib/layman/sunrise /var/lib/layman/arcon /var/lib/layman/mozilla /var/lib/layman/mysql /var/lib/layman/pro-audio /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif faad fam ffmpeg firefox flac fortran gdbm gif git gpm gstreamer iconv imagemagick ipv6 jpeg jpeg2k kde kde4 lame lcms ldap libnotify logrotate lzma lzo mad matroska mikmod mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer msql mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl phonon plasma png ppds pppd python qt3support qt4 quicktime raw readline samba sdl semantic-desktop session smp spell sqlite sqlite3 sse sse2 ssl ssse3 startup-notification subversion svg sysfs tcpd theora threads thumbnail thunderbird tiff truetype unicode unzip usb vim-syntax vorbis webkit wmf wmp x264 xcb xine xinerama xml xorg xulrunner xv xvid 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 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="oki3200" 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 synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Marek Bartosiewicz 2010-12-02 09:27:51 UTC
Linking ipptest...
Making all in conf...
Making all in data...
Making all in doc...
Making all in examples...
Making all in fonts...
Making all in templates...
 * Using ExtUtils::MakeMaker
 * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/net-print/cups-1.4.5/image/
Writing Makefile for CUPS
make -j3 'OTHERLDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed'
/usr/bin/perl5.12.2 /usr/lib64/perl5/5.12.2/ExtUtils/xsubpp  -typemap /usr/lib64/perl5/5.12.2/ExtUtils/typemap  CUPS.xs > CUPS.xsc && mv CUPS.xsc CUPS.c
Running Mkbootstrap for CUPS ()
chmod 644 CUPS.bs
cp CUPS.pm blib/lib/CUPS.pm
AutoSplitting blib/lib/CUPS.pm (blib/lib/auto/CUPS)
cp CUPS.bs blib/arch/auto/CUPS/CUPS.bs
chmod 644 blib/arch/auto/CUPS/CUPS.bs
Please specify prototyping behavior for CUPS.xs (see perlxs manual)
x86_64-pc-linux-gnu-gcc -c  -I../../ -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=native -msse3 -msse4a -pipe -mfpmath=sse   -DVERSION=\"1.2\" -DXS_VERSION=\"1.2\" -fPIC "-I/usr/lib64/perl5/5.12.2/x86_64-linux-thread-multi/CORE"   CUPS.c
rm -f blib/arch/auto/CUPS/CUPS.so
LD_RUN_PATH="/usr/lib64" x86_64-pc-linux-gnu-gcc  -shared -O2 -march=native -msse3 -msse4a -pipe -mfpmath=sse -fstack-protector -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed CUPS.o -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o blib/arch/auto/CUPS/CUPS.so     \
   -lcups       \

chmod 755 blib/arch/auto/CUPS/CUPS.so
make -j3
Compiling phpcups.c...
/bin/sh: --includes: command not found
phpcups.c:33:17: fatal error: php.h: No such file or directory
compilation terminated.
make: *** [phpcups.o] Error 1
emake failed
 * ERROR: net-print/cups-1.4.5 failed:
 *   emake php failed
 *
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 7554:  Called die
 * The specific snippet of code:
 *           emake || die "emake php failed";
 *
 * If you need support, post the output of 'emerge --info =net-print/cups-1.4.5',
 * the complete build log and the output of 'emerge -pqv =net-print/cups-1.4.5'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/net-print/cups-1.4.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-print/cups-1.4.5/temp/environment'.
 * S: '/var/tmp/portage/net-print/cups-1.4.5/work/cups-1.4.5'
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-12-02 09:46:42 UTC
Hi, can you please attach an full build.log? thanks.
Comment 3 Marian Kyral 2010-12-02 11:30:25 UTC
Created attachment 256147 [details]
Build log
Comment 4 Marian Kyral 2010-12-02 11:32:26 UTC
I thing, the problem is:

Compiling phpcups.c...
/bin/sh: --includes: command not found

Comment 5 Rafał Mużyło 2010-12-02 12:50:38 UTC
That probably should be 'php-config --includes'.
Recently php got slotted, any chance eselect helps ?
Comment 6 Marek Bartosiewicz 2010-12-02 13:31:34 UTC
Yes, eselect helps.
Solved for me.
Comment 7 Marian Kyral 2010-12-02 13:36:51 UTC
(In reply to comment #6)
> Yes, eselect helps.
> Solved for me.
> 

Yes, can confirm as well.
Thanks
Comment 8 Markos Chandras (RETIRED) gentoo-dev 2010-12-03 08:29:28 UTC
Which eselect command did you use? I can't make this work
Comment 9 Marian Kyral 2010-12-03 10:53:33 UTC
(In reply to comment #8)
> Which eselect command did you use? I can't make this work
> 

$ eselect php list cli
  [1]   php5.3 * 

$ eselect php set cli 1 
Comment 10 Markos Chandras (RETIRED) gentoo-dev 2010-12-03 11:01:25 UTC
Good thank you!
Comment 11 Fabian Di Milia 2010-12-07 09:45:56 UTC
Same here but eselect doesn't work for me...

gentoo ~ # eselect php list cli
  (none found)              
gentoo ~ # 
Comment 12 Timo Gurr (RETIRED) gentoo-dev 2011-01-13 02:18:19 UTC
(In reply to comment #11)
> Same here but eselect doesn't work for me...

Please be sure to upgrade to app-admin/eselect-php-0.6.2 especially if you happen to run a sparc, see bug #350092. Also try reinstalling php and see if the eselect module works afterwards. If it still shows nothing, emerge --info and attach the build.log of php.
Comment 13 Tomáš Chvátal (RETIRED) gentoo-dev 2011-04-30 15:13:21 UTC
This is not a cups valid bug as it was issue with eselect-php, hopefully now fixed, otherwise just open new bug for eselect-php and assign it to its maintainers.

Thanks