pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45953: pkgsrc/devel/readline cannot be compiled due to missing libtool option



>Number:         45953
>Category:       pkg
>Synopsis:       pkgsrc/devel/readline cannot be compiled due to missing 
>libtool option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 08 21:45:00 +0000 2012
>Originator:     Motoyuki OHMORI
>Release:        NetBSD current HEAD with pkgsrc HEAD
>Organization:
Chikushi Jogakuen University
>Environment:
NetBSD malmsteen.chikushi-u.ac.jp 5.99.64 NetBSD 5.99.64 (GENERIC) #0: Wed Feb  
8 11:28:41 JST 2012  
ohmori%xxx.chikushi-u.ac.jp@localhost:/home/src/sys/arch/amd64/compile/obj/GENERIC
 amd64

>Description:
When I build pkgsrc/devel/readline, I get error as follows: 


===> Building for readline-6.2
rm -f readline.lo
libtool  --mode=compile gcc -c -DHAVE_CONFIG_H  -I/usr/include -I. -I. 
-DRL_LIBRARY_VERSION='"6.2"' -O2 -I/usr/include readline.c
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
*** Error code 1

Stop.
make: stopped in /home/pkgsrc/devel/readline/work/readline-6.2
*** Error code 1

Stop.
make: stopped in /home/pkgsrc/devel/readline
*** Error code 1

Stop.
make: stopped in /home/pkgsrc/devel/readline

>How-To-Repeat:
just build pkgsrc/devel/readline.
>Fix:
Following patch fixes a problem:

diff --git a/devel/readline/patches/patch-ae b/devel/readline/patches/patch-ae
index 9783f6b..e91156f 100644
--- a/devel/readline/patches/patch-ae
+++ b/devel/readline/patches/patch-ae
@@ -27,7 +27,7 @@ $NetBSD: patch-ae,v 1.15 2011/02/23 11:00:17 adam Exp $
 +.SUFFIXES: .lo
 +.c.lo:
 +      ${RM} $@
-+      $(LIBTOOL) --mode=compile $(CC) -c $(CCFLAGS) $<
++      $(LIBTOOL) --tag=CC --mode=compile $(CC) -c $(CCFLAGS) $<
 +
  # The name of the main library target.
  LIBRARY_NAME = libreadline.a
@@ -51,7 +51,7 @@ $NetBSD: patch-ae,v 1.15 2011/02/23 11:00:17 adam Exp $

 +libreadline.la: $(OBJECTS:.o=.lo)
 +      $(LIBTOOL) --mode=clean $(RM) $@
-+      $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS:.o=.lo) $(TERMCAP_LIB) \
++      $(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ $(OBJECTS:.o=.lo) $(TERMCAP_
LIB) \
 +              -rpath $(libdir) -version-info $(SHLIB_MAJOR):$(SHLIB_MINOR) \
 +              $(LDFLAGS)
 +
@@ -62,7 +62,7 @@ $NetBSD: patch-ae,v 1.15 2011/02/23 11:00:17 adam Exp $

 +libhistory.la: $(HISTOBJ:.o=.lo) xmalloc.lo xfree.lo
 +      $(LIBTOOL) --mode=clean $(RM) $@
-+      $(LIBTOOL) --mode=link $(CC) -o $@ $(HISTOBJ:.o=.lo) xmalloc.lo xfree.lo
 \
++      $(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ $(HISTOBJ:.o=.lo) xmalloc.lo
 xfree.lo \
 +              -rpath $(libdir) -version-info $(SHLIB_MAJOR):$(SHLIB_MINOR) \
 +              $(LDFLAGS)
 +
@@ -74,7 +74,7 @@ $NetBSD: patch-ae,v 1.15 2011/02/23 11:00:17 adam Exp $

 +tilde.lo:     tilde.c
 +      $(LIBTOOL) --mode=clean rm -f $@
-+      $(LIBTOOL) --mode=compile $(CC) $(CCFLAGS) -DREADLINE_LIBRARY -c $(srcdi
r)/tilde.c
++      $(LIBTOOL) --tag=CC --mode=compile $(CC) $(CCFLAGS) -DREADLINE_LIBRARY -
c $(srcdir)/tilde.c
 +
  readline: $(OBJECTS) readline.h rldefs.h chardefs.h ./libreadline.a
        $(CC) $(CCFLAGS) -DREADLINE_LIBRARY -o $@ $(top_srcdir)/examples/rl.c ./
libreadline.a ${TERMCAP_LIB}



Home | Main Index | Thread Index | Old Index