Opened 12 years ago
Closed 9 years ago
#35899 closed defect (wontfix)
p5-net-cups @0.610.0_2: 'cups/image.h' file not found, build failure
Reported by: | jjfPCSI1 (Jean-Julien Joseph Fleck) | Owned by: | clot@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | mountainlion | Cc: | pamcp@…, jessenthiesen@…, akimd (Akim Demaille), cooljeanius (Eric Gallager), mojca (Mojca Miklavec), leingang |
Port: | p5-net-cups |
Description
When trying to build auto-multiple-choice port on OSX.8.1 with Xcode 4.4.1, I got stuck on building p5.12-net-cups dependancies with the main error
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-net-cups/p5.12-net-cups/work/Net-CUPS-0.61' /usr/bin/clang -c -pipe -O2 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -fstack-protector -I/opt/local/include -arch x86_64 -O3 -DVERSION=\"0.61\" -DXS_VERSION=\"0.61\" "-I/opt/local/lib/perl5/5.12.4/darwin-thread-multi-2level/CORE" CUPS.c CUPS.xs:10:10: fatal error: 'cups/image.h' file not found #include <cups/image.h> ^ 1 error generated. make: *** [CUPS.o] Error 1
See attached file for full logs
Attachments (2)
Change History (27)
Changed 12 years ago by jjfPCSI1 (Jean-Julien Joseph Fleck)
Attachment: | debug_p5.12-net-cups.txt added |
---|
comment:1 Changed 12 years ago by jjfPCSI1 (Jean-Julien Joseph Fleck)
Cc: | jeanjulien.fleck@… added |
---|
comment:3 Changed 12 years ago by mf2k (Frank Schima)
Cc: | clot@… jeanjulien.fleck@… removed |
---|---|
Owner: | changed from macports-tickets@… to clot@… |
comment:4 Changed 12 years ago by pamcp@…
Can you find the file cups/image.h
somewhere on your system?
locate cups/image.h
comment:5 follow-up: 11 Changed 12 years ago by jjfPCSI1 (Jean-Julien Joseph Fleck)
Sure:
~> locate cups/image.h /Developer/SDKs/MacOSX10.5.sdk/usr/include/cups/image.h /Developer/SDKs/MacOSX10.6.sdk/usr/include/cups/image.h
comment:6 Changed 12 years ago by jmroot (Joshua Root)
It's expecting to have /usr/include/cups/image.h. I don't have 10.8 to check, but that file is certainly gone from the 10.8 SDK (it's present in 10.7).
comment:7 Changed 12 years ago by jmroot (Joshua Root)
Keywords: | mountainlion added |
---|
Upstream bug report seems related: https://rt.cpan.org/Public/Bug/Display.html?id=78583
I don't know if 10.8 has cupsfilters/image.h though.
comment:8 Changed 12 years ago by nortcele
I have the same problem (OS X 10.8.2). Attemp to install p5.12-net-cups fail.
masterbook:~ bgates$ sudo port install p5.12-net-cups ---> Computing dependencies for p5.12-net-cups ---> Fetching archive for p5.12-net-cups ---> Attempting to fetch p5.12-net-cups-0.610.0_2.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/p5.12-net-cups ---> Attempting to fetch p5.12-net-cups-0.610.0_2.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/p5.12-net-cups ---> Attempting to fetch p5.12-net-cups-0.610.0_2.darwin_12.x86_64.tbz2 from http://packages.macports.org/p5.12-net-cups ---> Fetching distfiles for p5.12-net-cups ---> Verifying checksum(s) for p5.12-net-cups ---> Extracting p5.12-net-cups ---> Configuring p5.12-net-cups ---> Building p5.12-net-cups Error: org.macports.build for port p5.12-net-cups returned: command execution failed Please see the log file for port p5.12-net-cups for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-net-cups/p5.12-net-cups/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port p5.12-net-cups failed
Log excerpt:
:info:build /usr/bin/clang -c -pipe -O2 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -fstack-protector -I/opt/local/include -arch x86_64 -O3 -DVERSION=\"0.61\" -DXS_VERSION=\"0.61\" "-I/opt/local/lib/perl5/5.12.4/darwin-thread-multi-2level/CORE" CUPS.c :info:build CUPS.xs:10:10: fatal error: 'cups/image.h' file not found :info:build #include <cups/image.h> :info:build ^ :info:build 1 error generated.
There is a "cups/image.h" file in "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/cups/image.h" (only with 10.7 SDK).
There is also a "/usr/include/cups" folder but no "image.h" file in it, and no "/usr/include/cupsfilters" folder.
comment:10 Changed 12 years ago by jessenthiesen@…
Hi, I have the same problem with installing p5.12-net-cups on mountain lion. The error log is also 'cups/image.h' file not found. Is there a solution or a workaround?
I dont understand the Posting: Upstream bug report seems related: https://rt.cpan.org/Public/Bug/Display.html?id=78583
Shoud I install the patch? When I have to do so, please tell me how.
Kind retreats Holger
comment:11 Changed 12 years ago by tibibi@…
Hi I have the same problem with p5.12-net-cups and 'cups/image.h' file not found I am on X.8.2 Did you get the solution ? Thanks you
Replying to jeanjulien.fleck@…:
Sure:
~> locate cups/image.h /Developer/SDKs/MacOSX10.5.sdk/usr/include/cups/image.h /Developer/SDKs/MacOSX10.6.sdk/usr/include/cups/image.h
comment:12 Changed 12 years ago by nortcele
Actual version of net-cups won't work with Mountain Lion (and CUPS 1.6) as it depends on filters that are no longer available with CUPS 1.6.
comment:14 Changed 12 years ago by akimd (Akim Demaille)
This is blocking packages such as 'auto-multiple-choice'.
comment:17 Changed 11 years ago by donovan.worrell@…
Replying to devans@macports.org:
I created the new ticket #42477 and just saw it was closed ... So my question stands... Forgive me I'm new to this, it's been 18+ months since the ticket you're saying is a duplicate. Why hasn't the patch been applied to the build script or main src yet? The issue may be the same, but the versions of software and build systems are different...
As for it being an upstream issue; from the logs of what I've read, this patch should have been include already. So why is it failing still?
Changed 10 years ago by mojca (Mojca Miklavec)
Attachment: | p5-net-cups-image-10.8.diff added |
---|
comment:18 Changed 10 years ago by mojca (Mojca Miklavec)
To me the module Net::CUPS
seems a bit abandoned and nobody ever replied to the open ticket with the patch.
The port works on 10.7, but I would like to suggest to use the patch from the bugtracker. Any objections to the attached patch which also includes addition of 5.18, 5.20 and adds the new checksums?
comment:19 Changed 10 years ago by mojca (Mojca Miklavec)
Version: | 2.1.2 |
---|
comment:20 Changed 10 years ago by mojca (Mojca Miklavec)
Port: | p5-net-cups added; p5.12-net-cups removed |
---|---|
Summary: | p5.12-net-cups @0.610.0, Revision 2 (perl), 'cups/image.h' file not found, build failure → p5-net-cups @0.610.0_2: 'cups/image.h' file not found, build failure |
comment:22 Changed 10 years ago by mojca (Mojca Miklavec)
I committed the patch in r131646, but it seems to have been an useless commit.
On 10.8, 10.9:
/usr/bin/clang -c -pipe -Os -fno-common -DPERL_DARWIN -I/opt/local/include -fno-strict-aliasing -fstack-protector -I/opt/local/include -arch x86_64 -O3 -DVERSION=\"0.61\" -DXS_VERSION=\"0.61\" "-I/opt/local/lib/perl5/5.20/darwin-thread-multi-2level/CORE" CUPS.c CUPS.xs:15:11: fatal error: 'cupsfilters/image.h' file not found #include <cupsfilters/image.h> ^ 1 error generated. make: *** [CUPS.o] Error 1
On 10.10:
make: Entering directory `/opt/local/var/macports/build/_opt_mports_dports_perl_p5-net-cups/p5.20-net-cups/work/Net-CUPS-0.61' make: *** No rule to make target `all'. Stop. make: Leaving directory `/opt/local/var/macports/build/_opt_mports_dports_perl_p5-net-cups/p5.20-net-cups/work/Net-CUPS-0.61' Command failed: cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-net-cups/p5.20-net-cups/work/Net-CUPS-0.61" && /usr/bin/make -j8 -w all Exit code: 2
I should probably revert the patch.
comment:24 Changed 9 years ago by mojca (Mojca Miklavec)
See #48313. Given that this has been broken for years and that nobody knows how to fix the problem (short of almost rewriting the perl module) we are inclined towards removal of the port from MacPorts unless someone has a better proposal. The upstream package didn't change since 2009 and the original author lost interest.
(The module might still work on up to 10.7.)
comment:25 Changed 9 years ago by mojca (Mojca Miklavec)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
I removed the port in r141751. If anyone manages to figure out how to make it work on > 10.7, we can add it back.
Cc Me!