Summary: | net-print/cups fails to build with dev-lang/php-5.4.0_rc4 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andreas Sturmlechner <asturm> |
Component: | [OLD] Printing | Assignee: | Printing Team <printing> |
Status: | RESOLVED CANTFIX | ||
Severity: | normal | CC: | ansla80, cornicx, da5id2001, defuebr, dschridde+gentoobugs, gibgibon, hwoarang, jcwren, kripton, manschwetus, mmokrejs, renegabriels |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
full build.log
emerge --info cups-1.5.0-r2 build.log (against php-5.4.0_rc1) build.log cups-1.5.0-r2.diff |
Created attachment 290509 [details]
emerge --info
FYI, CUPS is dropping php support: http://cups.org/str.php?L3932 Isn't this also related to https://bugs.gentoo.org/show_bug.cgi?id=347521 (In reply to comment #3) > Isn't this also related to https://bugs.gentoo.org/show_bug.cgi?id=347521 Ups. Nope. Same cause (php) other impact. Sorry. Created attachment 293089 [details]
cups-1.5.0-r2 build.log (against php-5.4.0_rc1)
The error has changed somewhat with php-5.4.0_rc1:
...
Compiling phpcups.c...
phpcups.c:43:1: error: unknown type name ‘function_entry’
...
phpcups.c:45:3: error: initializer element is not computable at load time
phpcups.c:45:3: error: (near initialization for ‘phpcups_functions[0]’)
Created attachment 293181 [details]
build.log
Probably a similar issue:
---
Compiling phpcups.c...
/bin/sh: --includes: command not found
phpcups.c:33:17: fatal error: php.h: No such file or directory
compilation terminated.
---
Using dev-lang/php-5.4.0_rc1
(In reply to comment #6) > Created attachment 293181 [details] > build.log > > Probably a similar issue: > --- > Compiling phpcups.c... > /bin/sh: --includes: command not found > phpcups.c:33:17: fatal error: php.h: No such file or directory > compilation terminated. > --- > Using dev-lang/php-5.4.0_rc1 The error changed for me to: --- Compiling phpcups.c... phpcups.c:43:1: error: unknown type name ‘function_entry’ --- Maybe the previous problem was a parallel-make issue... Updated summary because, naturally, older versions are not compatible as well as reported in this forum thread: http://forums.gentoo.org/viewtopic-t-905934.html Elevated importance to normal because PHP-5.4 nears its first release and is just ~arch keyworded anymore, people are stumbling over this. Created attachment 297457 [details, diff]
cups-1.5.0-r2.diff
since the error hasn't changed, but I wanted to upload something anyway, here's an easy dependency fix für the cups ebuild.
*** Bug 399627 has been marked as a duplicate of this bug. *** Issue persists, can someone please fix this in the portage tree? I was getting the same error as the original poster, with cups-1.5.0-r4 and php-5.4.0_rc6. However with reading through this post, and noting in Comment #2 that upstream is removing PHP support, I recompiled with USE="-php", and it compiled cleanly for me. If I'm understanding upstream's report correctly, it will be removed in version 1.6. It seems to be functioning for me without PHP compiled in, but I'm not doing anything too fancy. USE="-php" emerge cups -1av cause on my box same errors lease 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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=core2 -O2 -pipe -DVERSION=\"1.2\" -DXS_VERSION=\"1.2\" -fPIC "-I/usr/lib64/perl5/5.12.4/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 -march=core2 -O2 -pipe -Wl,-O1 -Wl,--as-needed CUPS.o -Wl,-O1 -Wl,--as-needed -o blib/arch/auto/CUPS/CUPS.so \ -lcups \ /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcups collect2: ld returned 1 exit status make: *** [blib/arch/auto/CUPS/CUPS.so] Error 1 * ERROR: net-print/cups-1.5.0-r4 failed (compile phase): * emake failed * * If you need support, post the output of 'emerge --info =net-print/cups-1.5.0-r4', * the complete build log and the output of 'emerge -pqv =net-print/cups-1.5.0-r4'. * The complete build log is located at '/var/log/portage/net-print:cups-1.5.0-r4:20120203-182126.log'. * The ebuild environment file is located at '/var/tmp/portage/net-print/cups-1.5.0-r4/temp/environment'. * S: '/var/tmp/portage/net-print/cups-1.5.0-r4/work/cups-1.5.0' !!! When you file a bug report, please include the following information: GENTOO_VM= CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm" JAVACFLAGS="" COMPILER="" and of course, the output of emerge --info >>> Failed to emerge net-print/cups-1.5.0-r4, Log file: >>> '/var/log/portage/net-print:cups-1.5.0-r4:20120203-182126.log' * Messages for package net-print/cups-1.5.0-r4: * Package: net-print/cups-1.5.0-r4 * Repository: gentoo * Maintainer: printing@gentoo.org * USE: X acl amd64 dbus elibc_glibc filters gnutls java jpeg kerberos kernel_linux ldap linguas_de multilib pam perl png python slp ssl threads tiff usb userland_GNU xinetd * FEATURES: preserve-libs sandbox * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux @tman You have a completely different problem, the one covered by this bug is: 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) cc1: warning: unrecognized command line option "-Wno-tautological-compare" make[1]: *** [phpcups.o] Error 1 make: *** [all] Error 1 while the one you are experiencing is: /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcups collect2: ld returned 1 exit status make: *** [blib/arch/auto/CUPS/CUPS.so] Error 1 You should log a different bug. *** Bug 402105 has been marked as a duplicate of this bug. *** "Fixed"... + 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 + *** Bug 401133 has been marked as a duplicate of this bug. *** |
Created attachment 290507 [details] full build.log More a heads-up since php-5.4 is still beta and masked anyway, so of minor importance. 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) cc1: warning: unrecognized command line option "-Wno-tautological-compare" make[1]: *** [phpcups.o] Error 1 make: *** [all] Error 1