From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#14080: Guile bug building from source with pkg-config Date: Sat, 30 Mar 2013 19:10:45 -0400 Message-ID: <87fvzc7abu.fsf@tines.lan> References: <5153FB19.1050105@gmail.com> <87hajt8ia5.fsf@tines.lan> <51574E20.5080209@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364685087 24105 80.91.229.3 (30 Mar 2013 23:11:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Mar 2013 23:11:27 +0000 (UTC) Cc: 14080@debbugs.gnu.org To: Mark Sutton Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Mar 31 00:11:53 2013 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UM4wC-0001vH-5w for guile-bugs@m.gmane.org; Sun, 31 Mar 2013 00:11:52 +0100 Original-Received: from localhost ([::1]:35742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UM4vn-0004nt-Kx for guile-bugs@m.gmane.org; Sat, 30 Mar 2013 19:11:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UM4vh-0004kg-LT for bug-guile@gnu.org; Sat, 30 Mar 2013 19:11:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UM4vf-0000Sc-3S for bug-guile@gnu.org; Sat, 30 Mar 2013 19:11:21 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UM4ve-0000SS-P6 for bug-guile@gnu.org; Sat, 30 Mar 2013 19:11:18 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UM4yI-0008Vg-2u for bug-guile@gnu.org; Sat, 30 Mar 2013 19:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 30 Mar 2013 23:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14080 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 14080-submit@debbugs.gnu.org id=B14080.136468524132699 (code B ref 14080); Sat, 30 Mar 2013 23:14:02 +0000 Original-Received: (at 14080) by debbugs.gnu.org; 30 Mar 2013 23:14:01 +0000 Original-Received: from localhost ([127.0.0.1]:53276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UM4yG-0008VJ-9d for submit@debbugs.gnu.org; Sat, 30 Mar 2013 19:14:00 -0400 Original-Received: from world.peace.net ([96.39.62.75]:53214) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UM4yD-0008VB-V2 for 14080@debbugs.gnu.org; Sat, 30 Mar 2013 19:13:59 -0400 Original-Received: from 74-94-165-125-newengland.hfc.comcastbusiness.net ([74.94.165.125] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1UM4vQ-0006SI-Fo; Sat, 30 Mar 2013 19:11:04 -0400 In-Reply-To: <51574E20.5080209@gmail.com> (Mark Sutton's message of "Sat, 30 Mar 2013 20:42:08 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7035 Archived-At: Hi Mark, In your replies, please keep <14080@debbugs.gnu.org> in the CC line, so that your emails will be recorded in this bug entry. Mark Sutton writes: > On 30/03/13 07:21, Mark H Weaver wrote: >> Mark Sutton writes: >> >>> I can ./configure make make install guile-2.0.7 from source, however, >>> when I then try in build guile-clutter or guile-ncurses from source I >>> get errors in both. After googling I found that I should have >>> ./configure PKG_CONFIG=true. >> You shouldn't need PKG_CONFIG=true. Frankly it's a bad idea. >> >> Can you please show us the error messages you get (and any relevant >> context) if you configure *without* PKG_CONFIG=true? >> >> Thanks, >> Mark > Hi Mark, > > I'm using Kubuntu 12.04. I've ./configure (no args) make & make > install - guile-2.0.7 from source with no problems. > When I try to ./configure guile-ncurses-1.3 I get the following (I've > attached the configure.log file) ... > > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /bin/mkdir -p > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking for style of include used by make... GNU > checking for gcc... gcc > checking whether the C compiler works... yes > checking for C compiler default output file name... a.out > checking for suffix of executables... > checking whether we are cross compiling... no > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking dependency style of gcc... gcc3 > checking how to run the C preprocessor... gcc -E > checking for grep that handles long lines and -e... /bin/grep > checking for egrep... /bin/grep -E > checking for ANSI C header files... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking minix/config.h usability... no > checking minix/config.h presence... no > checking for minix/config.h... no > checking whether it is safe to define __EXTENSIONS__... yes > checking for gcc... (cached) gcc > checking whether we are using the GNU C compiler... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking for gcc option to accept ISO C89... (cached) none needed > checking dependency style of gcc... (cached) gcc3 > checking build system type... i686-pc-linux-gnu > checking host system type... i686-pc-linux-gnu > configure: checking for ncurses > checking curses.h usability... no > checking curses.h presence... no > checking for curses.h... no > checking ncurses/curses.h usability... no > checking ncurses/curses.h presence... no > checking for ncurses/curses.h... no > configure: error: in `/home/marks/3rd-party-src/guile-ncurses-1.3': > configure: error: curses.h could not be found This indicates that you need to install the 'libncurses5-dev' package. In general, when compiling software from source code, you need the *-dev packages of any library dependencies. > Also, I've tried to install guile-clutter, it stops at cannot find > g-wrap. When I try to install g-wrap from source I can configure okay > (again without args), however, when I try to make I get the following > ... > > make all-recursive > make[1]: Entering directory `/home/marks/3rd-party-src/g-wrap' > Making all in lib > make[2]: Entering directory `/home/marks/3rd-party-src/g-wrap/lib' > make all-am > make[3]: Entering directory `/home/marks/3rd-party-src/g-wrap/lib' > make[3]: Nothing to be done for `all-am'. > make[3]: Leaving directory `/home/marks/3rd-party-src/g-wrap/lib' > make[2]: Leaving directory `/home/marks/3rd-party-src/g-wrap/lib' > Making all in g-wrap > make[2]: Entering directory `/home/marks/3rd-party-src/g-wrap/g-wrap' > make all-am > make[3]: Entering directory `/home/marks/3rd-party-src/g-wrap/g-wrap' > sed -e "s|@g_wrap_shlib_dir\@||" \ > ./config.scm.in > config.scm > make[3]: Leaving directory `/home/marks/3rd-party-src/g-wrap/g-wrap' > make[2]: Leaving directory `/home/marks/3rd-party-src/g-wrap/g-wrap' > Making all in test > make[2]: Entering directory `/home/marks/3rd-party-src/g-wrap/test' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/home/marks/3rd-party-src/g-wrap/test' > Making all in guile > make[2]: Entering directory `/home/marks/3rd-party-src/g-wrap/guile' > Making all in g-wrap > make[3]: Entering directory `/home/marks/3rd-party-src/g-wrap/guile/g-wrap' > Making all in . > make[4]: Entering directory `/home/marks/3rd-party-src/g-wrap/guile/g-wrap' > /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H > -I. -I../.. -I../../g-wrap -I../.. -I../../lib -I../../guile -g > -O2 -Wall -Wmissing-prototypes -Werror -std=gnu99 -MT guile-runtime.lo > -MD -MP -MF .deps/guile-runtime.Tpo -c -o guile-runtime.lo > guile-runtime.c > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../g-wrap > -I../.. -I../../lib -I../../guile -g -O2 -Wall -Wmissing-prototypes > -Werror -std=gnu99 -MT guile-runtime.lo -MD -MP -MF > .deps/guile-runtime.Tpo -c guile-runtime.c -fPIC -DPIC -o > .libs/guile-runtime.o > In file included from guile-runtime.c:32:0: > ../../guile/g-wrap/guile-compatibility.h:25:22: fatal error: > libguile.h: No such file or directory The compile command above is missing the CFLAGS associated with guile-2.0. The output of "pkg-config --cflags guile-2.0" should be in there. For example, on my system, it is: -pthread -I/usr/local/include/guile/2.0 -I/usr/local/include What --prefix (if any) did you pass to ./configure when you built guile? What is the output of "pkg-config --cflags guile-2.0" on your system? Also, can you show us the full output of the "./configure" command for g-wrap? Thanks, Mark > compilation terminated. > make[4]: *** [guile-runtime.lo] Error 1 > make[4]: Leaving directory `/home/marks/3rd-party-src/g-wrap/guile/g-wrap' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/marks/3rd-party-src/g-wrap/guile/g-wrap' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/marks/3rd-party-src/g-wrap/guile' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/marks/3rd-party-src/g-wrap' > make: *** [all] Error 2