Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Dec 2012 21:26:48 GMT
From:      Chess Griffin <chess@chessgriffin.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/174841: graphics/sane-frontends fails to build
Message-ID:  <201212302126.qBULQmxV006177@red.freebsd.org>
Resent-Message-ID: <201212302130.qBULU1GR020501@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         174841
>Category:       ports
>Synopsis:       graphics/sane-frontends fails to build
>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 Dec 30 21:30:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Chess Griffin
>Release:        9.0-RELEASE
>Organization:
>Environment:
FreeBSD fbsd 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
I have used portsnap to update my ports tree and portmaster to keep my ports upgraded.  Everything is updated as of this moment.  I've tried building sane-frontends with clang, without clang (by specifying USE_GCC=any in the Makefile) but it keeps failing during compilation.  Here is an excerpt from the error:

===>  Building for sane-frontends-1.0.14_8
making all in include
gmake[1]: Entering directory `/usr/ports/graphics/sane-frontends/work/sane-frontends-1.0.14/include'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/ports/graphics/sane-frontends/work/sane-frontends-1.0.14/include'
making all in lib
gmake[1]: Entering directory `/usr/ports/graphics/sane-frontends/work/sane-frontends-1.0.14/lib'
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall alloca.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall getopt.c
getopt.c: In function '_getopt_initialize':
getopt.c:354: warning: implicit declaration of function 'getpid'
getopt.c:359: warning: implicit declaration of function 'strlen'
getopt.c:359: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c: In function '_getopt_internal':
getopt.c:479: warning: implicit declaration of function 'strcmp'
getopt.c:559: warning: implicit declaration of function 'strncmp'
getopt.c:561: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:585: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:603: warning: suggest explicit braces to avoid ambiguous 'else'
getopt.c:615: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:631: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:636: warning: incompatible implicit declaration of built-in function 'strlen'
getopt.c:546: warning: 'indfound' may be used uninitialized in this function
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall getopt1.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall strndup.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall strdup.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall strsep.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall snprintf.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall usleep.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall isfdtype.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall vsyslog.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall getenv.c
ar r liblib.a alloca.o getopt.o getopt1.o strndup.o strdup.o strsep.o snprintf.o usleep.o isfdtype.o vsyslog.o getenv.o
ar: warning: creating liblib.a
ranlib liblib.a
gmake[1]: Leaving directory `/usr/ports/graphics/sane-frontends/work/sane-frontends-1.0.14/lib'
making all in sanei
gmake[1]: Entering directory `/usr/ports/graphics/sane-frontends/work/sane-frontends-1.0.14/sanei'
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall  sanei_init_debug.c
sanei_init_debug.c: In function 'sanei_debug_msg':
sanei_init_debug.c:103: warning: implicit declaration of function 'isfdtype'
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall  sanei_wire.c
sanei_wire.c: In function 'sanei_w_array':
sanei_wire.c:215: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'size_t'
sanei_wire.c:215: warning: format '%u' expects type 'unsigned int', but argument 5 has type 'size_t'
sanei_wire.c: In function 'sanei_w_ptr':
sanei_wire.c:293: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'size_t'
sanei_wire.c:293: warning: format '%u' expects type 'unsigned int', but argument 5 has type 'size_t'
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall  sanei_codec_ascii.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall  sanei_codec_bin.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall  sanei_save_values.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall  sanei_load_values.c
ar r libsanei.a sanei_init_debug.o sanei_wire.o sanei_codec_ascii.o sanei_codec_bin.o sanei_save_values.o sanei_load_values.o
ar: warning: creating libsanei.a
ranlib libsanei.a
gmake[1]: Leaving directory `/usr/ports/graphics/sane-frontends/work/sane-frontends-1.0.14/sanei'
making all in src
gmake[1]: Entering directory `/usr/ports/graphics/sane-frontends/work/sane-frontends-1.0.14/src'
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include/gtk-2.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -D_THREAD_SAFE -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/libpng15 -I/usr/local/include/pango-1.0 -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/include/freetype2 -I/usr/local/include    -I/usr/local/include -D_GNU_SOURCE 	  -DPATH_SANE_DATA_DIR=/usr/local/share/sane 	  -DV_MAJOR=1 -DV_MINOR=0 -DV_BUILD=14 -DSANE_V_MAJOR=1 -O2 -fno-strict-aliasing -pipe -march=native -Wall  -I/usr/local/include/gtk-2.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -D_THREAD_SAFE -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/libpng15 -I/usr/local/include/pango-1.0 -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/include/freetype2 -I/usr/local/include   scanadf.c
gcc -L/usr/local/lib  -o scanadf scanadf.o ../lib/liblib.a -lm  
scanadf.o: In function `print_option':
scanadf.c:(.text+0x6ac): undefined reference to `sane_get_option_descriptor'
scanadf.c:(.text+0x78c): undefined reference to `sane_control_option'
scanadf.o: In function `scan_docs':
scanadf.c:(.text+0xe0c): undefined reference to `sane_start'
scanadf.c:(.text+0xe2b): undefined reference to `sane_get_parameters'
scanadf.c:(.text+0x1055): undefined reference to `sane_read'
scanadf.c:(.text+0x13e7): undefined reference to `sane_strstatus'
scanadf.c:(.text+0x16e2): undefined reference to `sane_get_option_descriptor'
scanadf.c:(.text+0x1700): undefined reference to `sane_control_option'
scanadf.c:(.text+0x1971): undefined reference to `sane_strstatus'
scanadf.c:(.text+0x19d9): undefined reference to `sane_strstatus'
scanadf.c:(.text+0x1aff): undefined reference to `sane_strstatus'
scanadf.o: In function `fetch_options':
scanadf.c:(.text+0x1d0d): undefined reference to `sane_control_option'
scanadf.c:(.text+0x1d2d): undefined reference to `sane_get_option_descriptor'
scanadf.c:(.text+0x1f00): undefined reference to `sane_control_option'
scanadf.c:(.text+0x1fef): undefined reference to `sane_control_option'
scanadf.c:(.text+0x20a3): undefined reference to `sane_control_option'
scanadf.o: In function `set_option':
scanadf.c:(.text+0x20d6): undefined reference to `sane_get_option_descriptor'
scanadf.c:(.text+0x20fd): undefined reference to `sane_control_option'
scanadf.c:(.text+0x21d1): undefined reference to `sane_strstatus'
scanadf.o: In function `process_backend_option':
scanadf.c:(.text+0x2227): undefined reference to `sane_get_option_descriptor'
scanadf.c:(.text+0x22db): undefined reference to `sane_control_option'
scanadf.c:(.text+0x22e6): undefined reference to `sane_strstatus'
scanadf.o: In function `main':
scanadf.c:(.text+0x245c): undefined reference to `sane_exit'
scanadf.c:(.text+0x24ab): undefined reference to `sane_init'
scanadf.c:(.text+0x25e2): undefined reference to `sane_get_devices'
scanadf.c:(.text+0x25f1): undefined reference to `sane_strstatus'
scanadf.c:(.text+0x2671): undefined reference to `sane_open'
scanadf.c:(.text+0x269a): undefined reference to `sane_control_option'
scanadf.c:(.text+0x2898): undefined reference to `sane_strstatus'
scanadf.c:(.text+0x28f4): undefined reference to `sane_close'
scanadf.c:(.text+0x2900): undefined reference to `sane_get_devices'
scanadf.c:(.text+0x2b0a): undefined reference to `sane_cancel'
scanadf.c:(.text+0x2b16): undefined reference to `sane_close'
scanadf.c:(.text+0x2bcb): undefined reference to `sane_get_devices'
scanadf.c:(.text+0x2c9f): undefined reference to `sane_control_option'
scanadf.c:(.text+0x2d31): undefined reference to `sane_get_option_descriptor'
scanadf.o: In function `sighandler':
scanadf.c:(.text+0x74): undefined reference to `sane_cancel'
gmake[1]: *** [scanadf] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/sane-frontends/work/sane-frontends-1.0.14/src'
gmake: *** [all-recursive] Error 1
*** Error code 1

Stop in /usr/ports/graphics/sane-frontends.
*** Error code 1

Stop in /usr/ports/graphics/sane-frontends.

>How-To-Repeat:
Build graphics/sane-frontends on 9.0-RELEASE amd64.
>Fix:


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212302126.qBULQmxV006177>