public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
* build error
@ 2001-01-03  3:50 Johan Rydberg
  2001-01-03  4:36 ` Frank Ch. Eigler
  0 siblings, 1 reply; 2+ messages in thread
From: Johan Rydberg @ 2001-01-03  3:50 UTC (permalink / raw)
  To: sid

Hi!

I get the following error:

/bin/sh ../../libtool --mode=link c++  -g -O2  -o libbusif.la  -rpath  -module -no-undefined busif.lo  -lm -lstdc++
libtool: link: only absolute run-paths are allowed
make[3]: *** [libbusif.la] Error 1
make[3]: Leaving directory `/.automount/nfs1/export2/home/johryd/prj/sid/src/sid/component/mapper/testsuite'


It seems that VPATH is unset:

libbusif_la_LDFLAGS = -rpath $(VPATH) -module -no-undefined


I run the following version of GNU make:

GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.

It is configured to compile in the source directory!  I also get an error 
when trying to build the testsuite for the lcd component.  Here's a small
patch that fixes that;

RCS file: /cvs/src/src/sid/component/lcd/testsuite/Makefile.am,v
retrieving revision 1.1
diff -u -r1.1 Makefile.am
--- Makefile.am 2000/12/07 19:30:53     1.1
+++ Makefile.am 2001/01/03 11:47:38
@@ -7,12 +7,12 @@
 INCLUDES = -I. -I../../../include -I$(srcdir)/../../../include -I$(srcdir)/..

 all-local:
-       cp $(srcdir)/hd-one-line.conf .
-       cp $(srcdir)/hd-two-line.conf .
-       cp $(srcdir)/hd-5X10.conf .
-       cp $(srcdir)/hd-europe.conf .
-       cp $(srcdir)/t6963c-tcl.conf .
-       cp $(srcdir)/t6963c-japan.conf .
+       test -e ./hd-one-line.conf || cp $(srcdir)/hd-one-line.conf .
+       test -e ./hd-two-line.conf || cp $(srcdir)/hd-two-line.conf .
+       test -e ./hd-5X10.conf || cp $(srcdir)/hd-5X10.conf .
+       test -e ./hd-europe.conf || cp $(srcdir)/hd-europe.conf .
+       test -e ./t6963c-tcl.conf || cp $(srcdir)/t6963c-tcl.conf .
+       test -e ./t6963c-japan.conf || cp $(srcdir)/t6963c-japan.conf .

 libt6963c_test_la_SOURCES = t6963c-tester.cxx
 libt6963c_test_la_LDFLAGS = -rpath $(VPATH) -module -no-undefined

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

* Re: build error
  2001-01-03  3:50 build error Johan Rydberg
@ 2001-01-03  4:36 ` Frank Ch. Eigler
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2001-01-03  4:36 UTC (permalink / raw)
  To: Johan Rydberg; +Cc: sid

Hi -


On Wed, Jan 03, 2001 at 12:52:51PM +0100, Johan Rydberg wrote:
: I get the following error:
: 
: /bin/sh ../../libtool --mode=link c++  -g -O2  -o libbusif.la  -rpath  -module -no-undefined busif.lo  -lm -lstdc++
: libtool: link: only absolute run-paths are allowed
: make[3]: *** [libbusif.la] Error 1
: make[3]: Leaving directory `/.automount/nfs1/export2/home/johryd/prj/sid/src/sid/component/mapper/testsuite'
: 
: It seems that VPATH is unset:
: 
: libbusif_la_LDFLAGS = -rpath $(VPATH) -module -no-undefined

Oops, I thought we got rid of all instances of that "-rpath $(VPATH)" thing.
Right -- a gentlecontributor committed the some changes to this effect, but
against Makefile.in and not Makefile.am, lcd/testsuite and mapper/testsuite.

Still, $(pkglibdir) doesn't look right -- these libraries are not meant to
be installed at all.  How could we express "-rpath `pwd`"?


: [....]
: It is configured to compile in the source directory!  

This part is something we usually avoid doing.  Even if you try it,
please use absolute paths throughout (i.e., "`pwd`/configure" rather
than "./configure".)


: I also get an error when trying to build the testsuite for the
: lcd component.  [...]
:  all-local:
: -       cp $(srcdir)/hd-one-line.conf .
: -       cp $(srcdir)/hd-two-line.conf .
: -       cp $(srcdir)/hd-5X10.conf .
: -       cp $(srcdir)/hd-europe.conf .
: -       cp $(srcdir)/t6963c-tcl.conf .
: -       cp $(srcdir)/t6963c-japan.conf .
: +       test -e ./hd-one-line.conf || cp $(srcdir)/hd-one-line.conf .
: +       test -e ./hd-two-line.conf || cp $(srcdir)/hd-two-line.conf .
: +       test -e ./hd-5X10.conf || cp $(srcdir)/hd-5X10.conf .
: +       test -e ./hd-europe.conf || cp $(srcdir)/hd-europe.conf .
: +       test -e ./t6963c-tcl.conf || cp $(srcdir)/t6963c-tcl.conf .
: +       test -e ./t6963c-japan.conf || cp $(srcdir)/t6963c-japan.conf .

With respect to this part, a quick grep shows that these files aren't
actually used at all.  How about removing the "all-local" target
altogether?


- FChE
-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6Uxy3VZbdDOm/ZT0RAgCEAJ9hSyVxaCmCXagckWdejGBZeCRN3QCfS6dp
9EKDgAZGfCeERZQaPEuOe0Q=
=DF5K
-----END PGP SIGNATURE-----

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

end of thread, other threads:[~2001-01-03  4:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-03  3:50 build error Johan Rydberg
2001-01-03  4:36 ` Frank Ch. Eigler

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).