On Wed, Feb 29, 2012 at 1:15 PM, Hans Erik Nordstrom <[email protected]> wrote:
> I've recently done an upgrade to 10.6 and blank reinstall of fink and was
> trying to get xsane installed. I get a couple of getop.c errrors:
>
> getopt.c:605: warning: suggest explicit braces to avoid ambiguous 'else'
> getopt.c:548: warning: 'indfound' may be used uninitialized in this function
>
> and gcc continues; after a few lines, I get:
>
> /usr/bin/ranlib: file: liblib.a(alloca.o) has no symbols
> /usr/bin/ranlib: file: liblib.a(strdup.o) has no symbols
> /usr/bin/ranlib: file: liblib.a(strsep.o) has no symbols
> /usr/bin/ranlib: file: liblib.a(snprintf.o) has no symbols
> /usr/bin/ranlib: file: liblib.a(usleep.o) has no symbols
> ranlib liblib.a
> ranlib: file: liblib.a(alloca.o) has no symbols
> ranlib: file: liblib.a(strdup.o) has no symbols
> ranlib: file: liblib.a(strsep.o) has no symbols
> ranlib: file: liblib.a(snprintf.o) has no symbols
> ranlib: file: liblib.a(usleep.o) has no symbols
> ranlib: file: liblib.a(alloca.o) has no symbols
> ranlib: file: liblib.a(strdup.o) has no symbols
> ranlib: file: liblib.a(strsep.o) has no symbols
> ranlib: file: liblib.a(snprintf.o) has no symbols
> ranlib: file: liblib.a(usleep.o) has no symbols
> make
> for subdir in lib src po doc; do \
> target=`echo all-recursive | sed s/-recursive//`; \
> echo making $target in $subdir; \
> (cd $subdir && make $target) \
> || case "" in *k*) fail=yes;; *) exit 1;; esac; \
> done && test -z "$fail"
> making all in lib
> make[1]: Nothing to be done for `all'.
> making all in src
> gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/sw/share/locale
> -DSANELOCALEDIR=/sw/share/locale -I. -I. -I../include -I../include
> -I/usr/local/include -DDEFAULT_BROWSER=open -I/sw/include -D_GNU_SOURCE
> -DV_MAJOR=0 -DV_MINOR=995 -DSANE_V_MAJOR=1
> -DPATH_XSANE_DOC_DIR=/sw/share/sane/xsane/doc
> -DPATH_SANE_DATA_DIR=/sw/share/sane -g -O2 -Wall -I/sw/include
> -I/sw/include/pango-1.0 -I/sw/include -I/sw/include/freetype2
> -I/sw/include/gimp-2.0 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
> -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/sw/include/atk-1.0
> -I/sw/include/cairo -I/usr/X11R6/include -I/usr/X11/include xsane-back-gtk.c
> xsane-back-gtk.c: In function
> 'xsane_back_gtk_range_display_value_right_callback':
> xsane-back-gtk.c:1966: warning: cast from pointer to integer of different size
> xsane-back-gtk.c: In function 'xsane_back_gtk_range_new':
> xsane-back-gtk.c:2016: warning: cast to pointer from integer of different size
> xsane-back-gtk.c: In function 'xsane_back_gtk_set_sensitivity':
> xsane-back-gtk.c:2615: error: 'SANE_CAP_ALWAYS_SETTABLE' undeclared (first
> use in this function)
> xsane-back-gtk.c:2615: error: (Each undeclared identifier is reported only
> once
> xsane-back-gtk.c:2615: error: for each function it appears in.)
> make[1]: *** [xsane-back-gtk.o] Error 1
> make: *** [all-recursive] Error 1
> ### execution of make failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-xsane-0.995-4
> (Reading database ... 80339 files and directories currently installed.)
> Removing fink-buildlock-xsane-0.995-4 ...
> Failed: phase compiling: xsane-0.995-4 failed
>
> I'm running gcc version:
> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
>
> Any fix?
>
> Hans Nordstrom
>
>
Is this a 32 or 64-bit Fink? ("fink -v | head -n 3")
Also, I noticed an -I/usr/local/include . Do you have any headers in
/usr/local/include? If so, we generally suggest renaming /usr/local
temporarily while building packages with Fink.
--
Alexander K. Hansen
akh AT finkproject DOT org
Fink User Liaison and Documenter
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users