Bug 108537 - print/hplip: Build failure
Summary: print/hplip: Build failure
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Tom McLaughlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-30 05:10 UTC by RJ
Modified: 2008-02-06 15:40 UTC (History)
0 users

See Also:


Attachments
hplip-autotools.diff (3.78 KB, patch)
2008-02-06 04:39 UTC, Tom McLaughlin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description RJ 2007-01-30 05:10:22 UTC
Building port (make install clean) fails with the following error(s):

************************************
cupsext.o -lcups -o build/lib.freebsd-6.1-STABLE-i386-2.4/cupsext.so
Making all in prnt/hpijs
cd . && /bin/sh /usr/ports/print/hplip/work/hplip-1.7.1/missing --run aclocal-1.9 
aclocal-1.9: not found
WARNING: `aclocal-1.9' is missing on your system.  You should only need it if
         you modified `acinclude.m4' or `configure.in'.  You might want
         to install the `Automake' and `Perl' packages.  Grab them from
         any GNU archive site.
 cd . && /bin/sh /usr/ports/print/hplip/work/hplip-1.7.1/missing --run automake-1.9 --foreign 
automake-1.9: not found
WARNING: `automake-1.9' is missing on your system.  You should only need it if
         you modified `Makefile.am', `acinclude.m4' or `configure.in'.
         You might want to install the `Automake' and `Perl' packages.
         Grab them from any GNU archive site.
cd . && /bin/sh /usr/ports/print/hplip/work/hplip-1.7.1/missing --run autoconf
configure.in:14: error: Autoconf version 2.59 or higher is required
configure.in:14: the top level
*** Error code 1
************************************

How-To-Repeat: cd /usr/ports/print/hplip
make install clean
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-01-30 05:10:28 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 amistry 2007-01-30 05:44:36 UTC
If you comment out the .if and .endif around the USE_AUTOTOOLS line, 
are the correct dependencies pulled in?  Does it then build?
-- 
Anish Mistry
amistry@am-productions.biz
AM Productions http://am-productions.biz/
Comment 3 amistry 2007-01-30 06:00:34 UTC
Does installing autoconf 2.59 fix the build problem?
-- 
Anish Mistry
amistry@am-productions.biz
AM Productions http://am-productions.biz/
Comment 4 RJ 2007-01-30 22:34:47 UTC
I forgot to add that autoconf-2.59_2 and automake-1.9.6 are installed.

I'll try your previous suggestion and report back.

Thank you for responding! -RJ
Comment 5 RJ 2007-01-31 04:48:31 UTC
I don't see USE_AUTOTOOLS in any file in print/hplip or print/hplip/work
(and sub-directories). /usr/ports/bsd.autotools.mk references this per
the porter's handbook, but only in a comment. Am I missing something?

BTW, is there a typo in the port's Makefile? CONFLITS= vs CONFLICTS=
Comment 6 RJ 2007-01-31 06:36:04 UTC
hppav# pkg_info | grep auto
autoconf-2.13.000227_5 Automatically configure source code on many Un*x
platforms 
autoconf-2.53_3     Automatically configure source code on many Un*x
platforms 
autoconf-2.59_2     Automatically configure source code on many Un*x
platforms 
automake-1.4.6_2    GNU Standards-compliant Makefile generator (1.4)
automake-1.5_2,1    GNU Standards-compliant Makefile generator (version
1.5)
automake-1.9.6      GNU Standards-compliant Makefile generator (1.9)
gnu-autoconf-2.61   Automatically configure source code on many Un*x
platforms 
gnu-automake-1.10   GNU Standards-compliant Makefile generator (GNU
unmodified)
Comment 7 RJ 2007-01-31 15:35:38 UTC
As a workaround, I used the symlink portion of this suggestion
http://lists.freebsd.org/pipermail/freebsd-ports/2006-December/037872.html

That fixed the "not found" errors previously reported. Then, I ran into
another configure error in prnt/hpijs. One of the patches
(patch-prnt_hpijs_configure) was not applying correctly causing the
"dlopen not found" error. I applied the patch (using patch
< /usr/ports/print/hplip/files/patch-prnt_hpijs_configure), then
ran ./configure in prnt/hpijs. This completed without error.

I returned to ports/hplip, ran "make install clean" and the port
installed correctly.

I followed all instructions in pkg-message and rebooted. The gui starts
fine.

Unfortunately, it appears from the pkg-message file (and try hp-setup)
that HPLIP only supports on printers on ugen(4) and my printer is on
lpt(4). Is this correct?
Comment 8 Pav Lucistnik freebsd_committer freebsd_triage 2007-07-14 16:50:46 UTC
Is your system clock set correctly? This error is a typical symptom of
system time in the past.

-- 
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

... the obese drugged penguin used by Linux.
  -- Scott Long
Comment 9 Tom McLaughlin freebsd_committer freebsd_triage 2007-08-15 03:18:37 UTC
Responsible Changed
From-To: freebsd-ports-bugs->tmclaugh

Grab
Comment 10 Tom McLaughlin 2007-08-26 22:43:39 UTC
Is this port possibly being built on an NFS share?  I just ran into a
similar problem when building the port on my NFS mounted /home.  I have
aclocal-1.9 installed but it just ended up dying later in the build
because of the autotools being rerun.  I'm not sure how to correctly fix
this yet though.
Comment 11 amistry 2008-01-11 22:11:31 UTC
Is this still a problem with the latest version of the port?  Also 
what about with ports/119552?
-- 
Anish Mistry
amistry@am-productions.biz
AM Productions http://am-productions.biz/
Comment 12 Tom McLaughlin 2008-02-06 03:04:05 UTC
It's still an issue after the latest update of the port.  Still trying
to figure out where these commands are even being run from.
Comment 13 Tom McLaughlin 2008-02-06 04:39:47 UTC
Okay, some tiny patching to Makefile.in did the trick.  See attached.
-- 
| tmclaugh at sdf.lonestar.org                 tmclaugh at FreeBSD.org |
| FreeBSD                                       http://www.FreeBSD.org |
Comment 14 Tom McLaughlin freebsd_committer freebsd_triage 2008-02-06 15:00:53 UTC
State Changed
From-To: feedback->closed

Path committed after receiving approval from manitainer in private email.
Comment 15 dfilter service freebsd_committer freebsd_triage 2008-02-06 15:23:26 UTC
tmclaugh    2008-02-06 15:23:21 UTC

  FreeBSD ports repository

  Modified files:
    print/hplip/files    patch-Makefile.in 
  Log:
  - Fix build where under some circumstances the GNU autools woule be
    called to regenerate files and break build.  Found most commonly when
    WRKSRC is on an NFS share.
  
  PR:             108537
  Approved by:    maintainer
  
  Revision  Changes    Path
  1.7       +26 -8     ports/print/hplip/files/patch-Makefile.in
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"