Subject: pkg/36486: graphics/gphoto2 fails to build
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jbernard@mines.edu>
List: pkgsrc-bugs
Date: 06/14/2007 03:00:01
>Number:         36486
>Category:       pkg
>Synopsis:       graphics/gphoto2 fails to build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 14 03:00:00 +0000 2007
>Originator:     Jim Bernard
>Release:        NetBSD 4.99.20
>Organization:
>Environment:
System: NetBSD 4.99.20 #0: Fri Jun 8 15:06:22 MDT 2007 i386
Architecture: i386
Machine: i386
>Description:
	gphoto2 uses the readline library, and on netbsd systems the
	system's edit (libedit) library is substituted for the readline
	package.  Among the readline functions that gphoto2 wants to use
	is rl_copy_text, which is not in libedit, so the link step fails.

>How-To-Repeat:
	cd .../pkgsrc/graphics/gphoto2 && make:

	...
	===> Building for gphoto2-2.3.1
	/usr/bin/make  all-recursive
	Making all in m4m
	Making all in doc
	Making all in gphoto2
	/bin/sh ../libtool --tag=CC --mode=link cc  -O2 -I/usr/pkg/include -I/usr/include  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -Wall -g -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -o gphoto2  gphoto2-gphoto2-cmd-capture.o gphoto2-gphoto2-cmd-config.o  gphoto2-actions.o gphoto2-foreach.o  gphoto2-gp-params.o gphoto2-spawnve.o  gphoto2-main.o gphoto2-version.o  gphoto2-range.o gphoto2-shell.o -L/usr/pkg/lib -lcdk -lncurses -L/usr/pkg/lib -laa -lm -L/usr/X11R6/lib -lX11 -ljpeg -lpthread             -L/usr/pkg/lib -lexif -lm /usr/lib/libintl.so -lreadline -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lgphoto2 -lgphoto2_port -lexif -lm -lusb -L/usr/ -lpopt 
	 cc -O2 -I/usr/pkgsrc/graphics/gphoto2/work/.buildlink/include -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -Wall -g -o gphoto2 gphoto2-gphoto2-cmd-capture.o gphoto2-gphoto2-cmd-config.o gphoto2-actions.o gphoto2-foreach.o gphoto2-gp-params.o gphoto2-spawnve.o gphoto2-main.o gphoto2-version.o gphoto2-range.o gphoto2-shell.o  -L/usr/pkgsrc/graphics/gphoto2/work/.buildlink/lib -L/usr/pkgsrc/graphics/gphoto2/work/.x11-buildlink/lib /usr/pkgsrc/graphics/gphoto2/work/.buildlink/lib/libcdk.so /usr/pkgsrc/graphics/gphoto2/work/.buildlink/lib/libncurses.so /usr/pkgsrc/graphics/gphoto2/work/.buildlink/lib/libaa.so -lX11 /usr/pkgsrc/graphics/gphoto2/work/.buildlink/lib/libjpeg.so -lpthread -ledit -ltermcap /usr/pkgsrc/graphics/gphoto2/work/.buildlink/lib/libgphoto2.so /usr/pkgsrc/graphics/gphoto2/work/.buildlink/lib/libgphoto2_port.so /usr/pkgsrc/graphics/gphoto2/work/.buildlink/lib/libexif.so -lm /usr/pkgsrc/graphics/gphoto2/work/.buildlink/lib/libusb.so /usr/pkgsrc/graphics/gphoto2/work/
 .buildlink/lib/libpopt.so -lintl -Wl,--rpath -Wl,/usr/pkgsrc/graphics/gphoto2/work/.buildlink/lib -Wl,--rpath -Wl,/usr/pkgsrc/graphics/gphoto2/work/.buildlink/lib
	 gphoto2-shell.o: In function `shell_completion_function':
	 /usr/pkgsrc/graphics/gphoto2/work/gphoto2-2.3.1/gphoto2/shell.c:401: undefined reference to `rl_copy_text'
	 *** Error code 1

>Fix:
	Either add an implementation of rl_copy_text to libedit or add
	  USE_GNU_READLINE=       yes
	to the package Makefile.