public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] portage compile problem (xemacs)
@ 2002-04-06 19:08 Dave Lee
  2002-04-06 20:41 ` [gentoo-dev] " Dave Lee
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Lee @ 2002-04-06 19:08 UTC (permalink / raw
  To: gentoo-dev; +Cc: gentoo-user

So I was trying to compile xemacs and ./configure failed, here is there
error message

[snip]
checking for dbm_open in -lgdbm... no
Error: Required GNU DBM support cannot be provided.

!!! ERROR: The ebuild did not complete successfully.
[snip]

I do have gdbm, though

mj xemacs # qpkg -f /usr/lib/libgdbm.so
sys-libs/gdbm-1.8.0-r4 *

when I look in 
/var/tmp/portage/xemacs-21.1.14/work/xemacs-21.1.14/config.log
it seems that gcc is only being passed -L/usr/X11R6/lib so I assume this
is why ./configure cant find "dbm_open in -lgdbm"

why is this happening?  why cant portage find libgdbm?  I tried editing 
the xemacs ebuild file to remove the gdbm option to ./configure but then
./configure failes when looking for dl_open and says the C compiler is
broken.

any help is much appreciated.
Dave

here is the relevant portion in config.log

configure:11451: checking for dbm_open in -lgdbm
configure:11467: gcc -o conftest -march=i686 -O3 -pipe
-I/usr/X11R6/includ
e      -L/usr/X11R6/lib  conftest.c   -lgdbm   -lXm -ltiff -lpng -ljpeg
-lz -lXp
m -lXmu -lXt -lXext -lX11  -lSM -lICE -lgpm -lncurses -lm    -lgcc -lc
-lgcc /us
r/lib/crtn.o 1>&5
/usr/i686-pc-linux-gnu/bin/ld: cannot find -lgpm
collect2: ld returned 1 exit status
configure: failed program was:
#line 11456 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dbm_open();

int main() {
dbm_open()
; return 0; }



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-dev] Re: portage compile problem (xemacs)
  2002-04-06 19:08 [gentoo-dev] portage compile problem (xemacs) Dave Lee
@ 2002-04-06 20:41 ` Dave Lee
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Lee @ 2002-04-06 20:41 UTC (permalink / raw
  To: gentoo-dev; +Cc: gentoo-user

so in answer to my own question, the reason ./configure was failing is
because I had gpm in my USE variable and so when ./configure was doing its
tests it was adding -lgpm to the gcc command line, and failing to find
libgpm, and not libgdbm.  great.

Dave Lee wrote:
> So I was trying to compile xemacs and ./configure failed, here is there
> error message
> 
> [snip]
> checking for dbm_open in -lgdbm... no
> Error: Required GNU DBM support cannot be provided.
> 
> !!! ERROR: The ebuild did not complete successfully.
> [snip]
> 
> I do have gdbm, though
> 
> mj xemacs # qpkg -f /usr/lib/libgdbm.so
> sys-libs/gdbm-1.8.0-r4 *
> 
> when I look in 
> /var/tmp/portage/xemacs-21.1.14/work/xemacs-21.1.14/config.log
> it seems that gcc is only being passed -L/usr/X11R6/lib so I assume this
> is why ./configure cant find "dbm_open in -lgdbm"
> 
> why is this happening?  why cant portage find libgdbm?  I tried editing 
> the xemacs ebuild file to remove the gdbm option to ./configure but then
> ./configure failes when looking for dl_open and says the C compiler is
> broken.
> 
> any help is much appreciated.
> Dave
> 
> here is the relevant portion in config.log
> 
> configure:11451: checking for dbm_open in -lgdbm
> configure:11467: gcc -o conftest -march=i686 -O3 -pipe
> -I/usr/X11R6/includ
> e      -L/usr/X11R6/lib  conftest.c   -lgdbm   -lXm -ltiff -lpng -ljpeg
> -lz -lXp
> m -lXmu -lXt -lXext -lX11  -lSM -lICE -lgpm -lncurses -lm    -lgcc -lc
> -lgcc /us
> r/lib/crtn.o 1>&5
> /usr/i686-pc-linux-gnu/bin/ld: cannot find -lgpm
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 11456 "configure"
> #include "confdefs.h"
> /* Override any gcc2 internal prototype to avoid an error.  */
> /* We use char because int might match the return type of a gcc2
>     builtin and then its argument prototype would still apply.  */
> char dbm_open();
> 
> int main() {
> dbm_open()
> ; return 0; }
> 
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-06 20:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-06 19:08 [gentoo-dev] portage compile problem (xemacs) Dave Lee
2002-04-06 20:41 ` [gentoo-dev] " Dave Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox