* bug#14080: Guile bug building from source with pkg-config
@ 2013-03-28 8:11 Mark Sutton
2013-03-30 7:21 ` Mark H Weaver
2016-06-20 20:26 ` Andy Wingo
0 siblings, 2 replies; 7+ messages in thread
From: Mark Sutton @ 2013-03-28 8:11 UTC (permalink / raw)
To: 14080
Hi,
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.
When I try this, it configures okay, however, I get the following when I
make ...
./.libs/libguile-2.0.so: undefined reference to `GC_gc_no'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint16'
./.libs/libguile-2.0.so: undefined reference to `GC_get_bytes_since_gc'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint64'
./.libs/libguile-2.0.so: undefined reference to
`GC_register_finalizer_no_order'
./.libs/libguile-2.0.so: undefined reference to `GC_collect_a_little'
./.libs/libguile-2.0.so: undefined reference to `GC_pthread_detach'
./.libs/libguile-2.0.so: undefined reference to `GC_finalizer_notifier'
collect2: ld returned 1 exit status
make[3]: *** [guile] Error 1
make[3]: Leaving directory `/home/marks/3rd-party-src/guile-2.0.7/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/marks/3rd-party-src/guile-2.0.7/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/marks/3rd-party-src/guile-2.0.7'
make: *** [all] Error 2
marks@marks-MacBookAir:~/3rd-party-src/guile-2.0.7$
... so at the moment, I can build guile but I cannot build any extension
packages into it.
Any ideas?
--
Many thanks
Mark Sutton
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#14080: Guile bug building from source with pkg-config
2013-03-28 8:11 bug#14080: Guile bug building from source with pkg-config Mark Sutton
@ 2013-03-30 7:21 ` Mark H Weaver
[not found] ` <51574E20.5080209@gmail.com>
2016-06-20 20:26 ` Andy Wingo
1 sibling, 1 reply; 7+ messages in thread
From: Mark H Weaver @ 2013-03-30 7:21 UTC (permalink / raw)
To: Mark Sutton; +Cc: 14080
Mark Sutton <aeizon.jm@gmail.com> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#14080: Guile bug building from source with pkg-config
[not found] ` <51574E20.5080209@gmail.com>
@ 2013-03-30 23:10 ` Mark H Weaver
2013-03-30 23:22 ` Mark H Weaver
0 siblings, 1 reply; 7+ messages in thread
From: Mark H Weaver @ 2013-03-30 23:10 UTC (permalink / raw)
To: Mark Sutton; +Cc: 14080
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 <aeizon.jm@gmail.com> writes:
> On 30/03/13 07:21, Mark H Weaver wrote:
>> Mark Sutton <aeizon.jm@gmail.com> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#14080: Guile bug building from source with pkg-config
2013-03-30 23:10 ` Mark H Weaver
@ 2013-03-30 23:22 ` Mark H Weaver
2013-03-31 1:04 ` David Pirotte
2013-03-31 12:16 ` Mark Sutton
0 siblings, 2 replies; 7+ messages in thread
From: Mark H Weaver @ 2013-03-30 23:22 UTC (permalink / raw)
To: Mark Sutton; +Cc: 14080
Also, what version of g-wrap are you trying to build?
Thanks,
Mark
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#14080: Guile bug building from source with pkg-config
2013-03-30 23:22 ` Mark H Weaver
@ 2013-03-31 1:04 ` David Pirotte
2013-03-31 12:16 ` Mark Sutton
1 sibling, 0 replies; 7+ messages in thread
From: David Pirotte @ 2013-03-31 1:04 UTC (permalink / raw)
To: Mark H Weaver; +Cc: Mark Sutton, 14080
Hello Mark(s) :)
> Also, what version of g-wrap are you trying to build?
Note that in order to build guile-clutter, you also need the following dependencies
to be satisfied [i'm using git, so this is an extract from the README file of the
clutter branch of guile-gnome-platform]
Guile-Clutter requires Clutter 1.10 development packages.
Guile-Clutter depends on some parts of Guile-GNOME: the GLib, ATK,
Pango, and Cairo wrapsets. These are commonly distributed with the
`guile-gnome-platform' tarball. The Guile-GNOME platform tarball itself
depends on G-Wrap and Guile-Cairo. See http://gnu.org/s/guile-gnome/,
for more information.
Note that you will need the very latest guile-cairo [i mean and recommend a git
clone, because it's been patched by Andy Wingo [the developer] in oder to run the
'bouncer' example I wrote [based on the same example written in C by the clutter
folks] and I don't think Andy did get the time to create a new guile-cairo tarball.
If you need [more] help, let me know.
Cheers,
David
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#14080: Guile bug building from source with pkg-config
2013-03-30 23:22 ` Mark H Weaver
2013-03-31 1:04 ` David Pirotte
@ 2013-03-31 12:16 ` Mark Sutton
1 sibling, 0 replies; 7+ messages in thread
From: Mark Sutton @ 2013-03-31 12:16 UTC (permalink / raw)
To: Mark H Weaver; +Cc: 14080
On 30/03/13 23:22, Mark H Weaver wrote:
> Also, what version of g-wrap are you trying to build?
>
> Thanks,
> Mark
Hi Mark,
I'm using g-wrap 1.9.14
--
Many thanks
Mark Sutton
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#14080: Guile bug building from source with pkg-config
2013-03-28 8:11 bug#14080: Guile bug building from source with pkg-config Mark Sutton
2013-03-30 7:21 ` Mark H Weaver
@ 2016-06-20 20:26 ` Andy Wingo
1 sibling, 0 replies; 7+ messages in thread
From: Andy Wingo @ 2016-06-20 20:26 UTC (permalink / raw)
To: Mark Sutton; +Cc: 14080-done
Expiring this old bug. Please open a new one if you have new
compilation failures. Thanks!
Andy
On Thu 28 Mar 2013 09:11, Mark Sutton <aeizon.jm@gmail.com> writes:
> Hi,
>
> 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.
>
> When I try this, it configures okay, however, I get the following when
> I make ...
>
> ./.libs/libguile-2.0.so: undefined reference to `GC_gc_no'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint16'
> ./.libs/libguile-2.0.so: undefined reference to `GC_get_bytes_since_gc'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint64'
> ./.libs/libguile-2.0.so: undefined reference to
> `GC_register_finalizer_no_order'
> ./.libs/libguile-2.0.so: undefined reference to `GC_collect_a_little'
> ./.libs/libguile-2.0.so: undefined reference to `GC_pthread_detach'
> ./.libs/libguile-2.0.so: undefined reference to `GC_finalizer_notifier'
> collect2: ld returned 1 exit status
> make[3]: *** [guile] Error 1
> make[3]: Leaving directory `/home/marks/3rd-party-src/guile-2.0.7/libguile'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/marks/3rd-party-src/guile-2.0.7/libguile'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/marks/3rd-party-src/guile-2.0.7'
> make: *** [all] Error 2
> marks@marks-MacBookAir:~/3rd-party-src/guile-2.0.7$
>
> ... so at the moment, I can build guile but I cannot build any
> extension packages into it.
>
> Any ideas?
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-06-20 20:26 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-28 8:11 bug#14080: Guile bug building from source with pkg-config Mark Sutton
2013-03-30 7:21 ` Mark H Weaver
[not found] ` <51574E20.5080209@gmail.com>
2013-03-30 23:10 ` Mark H Weaver
2013-03-30 23:22 ` Mark H Weaver
2013-03-31 1:04 ` David Pirotte
2013-03-31 12:16 ` Mark Sutton
2016-06-20 20:26 ` Andy Wingo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).