ports/134891: sane-backends port does not build if old version is installed

Igor Soumenkov 2igosha at gmail.com
Sun May 24 08:20:01 UTC 2009


>Number:         134891
>Category:       ports
>Synopsis:       sane-backends port does not build if old version is installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 24 08:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Igor Soumenkov
>Release:        7.2-STABLE
>Organization:
>Environment:
FreeBSD igosha-desktop 7.2-STABLE FreeBSD 7.2-STABLE #9: Sat May 23 21:29:49 MSD 2009     igosha at igosha-desktop:/usr/obj/usr/src/sys/IGOSHA  i386

>Description:
Can't build the graphics/sane-backends port while trying to update it:


gmake[2]: Entering directory `/usr/ports/graphics/sane-backends/work/sane-backends-1.0.20/backend'
/bin/sh ../libtool --silent --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I../include/sane -I/usr/local/include -I. -I. -I../include -I../include -DLIBDIR="/usr/local/lib/sane" -DBACKEND_NAME=canon_dr -I/usr/local/include  -D_REENTRANT -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d          -DPATH_SANE_DATA_DIR=/usr/local/share           -DPATH_SANE_LOCK_DIR=/usr/local/var/lock/sane           -DV_MAJOR=1 -DV_MINOR=0  -O2 -fno-strict-aliasing -pipe -W -Wall -MT libcanon_dr_la-canon_dr.lo -MD -MP -MF .deps/libcanon_dr_la-canon_dr.Tpo -c -o libcanon_dr_la-canon_dr.lo `test -f 'canon_dr.c' || echo './'`canon_dr.c
canon_dr.c: In function 'sane_canon_dr_get_option_descriptor':
canon_dr.c:1333: error: 'SANE_NAME_STANDARD' undeclared (first use in this function)
canon_dr.c:1333: error: (Each undeclared identifier is reported only once
canon_dr.c:1333: error: for each function it appears in.)
canon_dr.c:1334: error: 'SANE_TITLE_STANDARD' undeclared (first use in this function)
canon_dr.c:1335: error: 'SANE_DESC_STANDARD' undeclared (first use in this function)
canon_dr.c:1545: error: 'SANE_NAME_GEOMETRY' undeclared (first use in this function)
canon_dr.c:1546: error: 'SANE_TITLE_GEOMETRY' undeclared (first use in this function)
canon_dr.c:1547: error: 'SANE_DESC_GEOMETRY' undeclared (first use in this function)
canon_dr.c:1632: error: 'SANE_NAME_PAGE_WIDTH' undeclared (first use in this function)
canon_dr.c:1633: error: 'SANE_TITLE_PAGE_WIDTH' undeclared (first use in this function)
canon_dr.c:1634: error: 'SANE_DESC_PAGE_WIDTH' undeclared (first use in this function)
canon_dr.c:1659: error: 'SANE_NAME_PAGE_HEIGHT' undeclared (first use in this function)
canon_dr.c:1660: error: 'SANE_TITLE_PAGE_HEIGHT' undeclared (first use in this function)
canon_dr.c:1661: error: 'SANE_DESC_PAGE_HEIGHT' undeclared (first use in this function)
canon_dr.c:1680: error: 'SANE_NAME_ENHANCEMENT' undeclared (first use in this function)
canon_dr.c:1681: error: 'SANE_TITLE_ENHANCEMENT' undeclared (first use in this function)
canon_dr.c:1682: error: 'SANE_DESC_ENHANCEMENT' undeclared (first use in this function)
canon_dr.c:1771: error: 'SANE_NAME_ADVANCED' undeclared (first use in this function)
canon_dr.c:1772: error: 'SANE_TITLE_ADVANCED' undeclared (first use in this function)
canon_dr.c:1773: error: 'SANE_DESC_ADVANCED' undeclared (first use in this function)
canon_dr.c:1958: error: 'SANE_NAME_SENSORS' undeclared (first use in this function)
canon_dr.c:1959: error: 'SANE_TITLE_SENSORS' undeclared (first use in this function)
canon_dr.c:1960: error: 'SANE_DESC_SENSORS' undeclared (first use in this function)
gmake[2]: *** [libcanon_dr_la-canon_dr.lo] Ошибка 1

>How-To-Repeat:
have old version of sane-backends installed
cd /usr/ports/graphics/sane-backends && make
>Fix:
Apply additional patch:

--- backend/Makefile.in.orig 2009-04-30 17:41:18.000000000 +0400
+++ backend/Makefile.in   2009-05-24 12:02:03.000000000 +0400
@@ -1138,7 +1138,7 @@
 libxerox_mfp_la_LIBADD =
 am_libxerox_mfp_la_OBJECTS = libxerox_mfp_la-xerox_mfp.lo
 libxerox_mfp_la_OBJECTS = $(am_libxerox_mfp_la_OBJECTS)
-DEFAULT_INCLUDES = -I. at am__isrc@ -I$(top_builddir)/include/sane
+DEFAULT_INCLUDES = -I$(top_builddir)/include/sane -I. at am__isrc@
 depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \


Patch attached with submission follows:

--- backend/Makefile.in.orig 2009-04-30 17:41:18.000000000 +0400
+++ backend/Makefile.in   2009-05-24 12:02:03.000000000 +0400
@@ -1138,7 +1138,7 @@
 libxerox_mfp_la_LIBADD =
 am_libxerox_mfp_la_OBJECTS = libxerox_mfp_la-xerox_mfp.lo
 libxerox_mfp_la_OBJECTS = $(am_libxerox_mfp_la_OBJECTS)
-DEFAULT_INCLUDES = -I. at am__isrc@ -I$(top_builddir)/include/sane
+DEFAULT_INCLUDES = -I$(top_builddir)/include/sane -I. at am__isrc@ 
 depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list