sane-project-website/old-archive/1998-01/0222.html

90 wiersze
3.7 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Wed Jan 28 03:32:40 1998 PST" -->
<!-- sent="28 Jan 1998 12:34:06 +0100" -->
<!-- name="Alexander Jolk" -->
<!-- email="jolk@ap-pc513b.physik.uni-karlsruhe.de" -->
<!-- subject="sane-0.69 doesn't compile with `--disable-static'" -->
<!-- id="" -->
<!-- inreplyto="" -->
<title>sane-devel: sane-0.69 doesn't compile with `--disable-static'</title>
<h1>sane-0.69 doesn't compile with `--disable-static'</h1>
<b>Alexander Jolk</b> (<a href="mailto:jolk@ap-pc513b.physik.uni-karlsruhe.de"><i>jolk@ap-pc513b.physik.uni-karlsruhe.de</i></a>)<br>
<i>28 Jan 1998 12:34:06 +0100</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#222">[ date ]</a><a href="index.html#222">[ thread ]</a><a href="subject.html#222">[ subject ]</a><a href="author.html#222">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0223.html">Eric Ludlam: "Re[2]: HP Scanjet 4p and NetBSD/Sparc"</a>
<li> <b>Previous message:</b> <a href="0221.html">Benedikt Heinen: "Re: SCSI card?"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hi,<br>
<p>
I configured sane-0.69 using `./configure --disable-static' on a<br>
Linux-2.0.3x machine. Since I know shared libraries work on this<br>
platform, I usually do this in order to save on disk space and<br>
compilation time.<br>
<p>
Compilation went wrong in the lib subdirectory:<br>
[lots of files get compiled like this one:]<br>
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=0 -DV_MINOR=69 -I/usr/X11R6/include -O3 -fomit-frame-pointer -Wall -fPIC -DPIC usleep.c<br>
mv -f usleep.o usleep.lo<br>
ar r liblib.a alloca.o getopt.o getopt1.o sigprocmask.o strndup.o strdup.o strsep.o snprintf.o usleep.o<br>
ar: alloca.o: No such file or directory<br>
<p>
Obviously, the .o files have not been built by libtool.<br>
<p>
This is because of the Makefile.in in the lib subdir:<br>
----&gt;8----<br>
[...]<br>
LIBLIB_OBJS = alloca.o getopt.o getopt1.o sigprocmask.o strndup.o \<br>
strdup.o strsep.o snprintf.o usleep.o<br>
LIBLIB_LTOBJS = alloca.lo getopt.lo getopt1.lo sigprocmask.lo strndup.lo \<br>
strdup.lo strsep.lo snprintf.lo usleep.lo<br>
<p>
TARGETS = $(LIBLIB_OBJS)<br>
TARGETS = liblib.a<br>
<p>
.SUFFIXES:<br>
.SUFFIXES: .c .o<br>
.c.o:<br>
@$(LIBTOOL) $(MCOMP) $(COMPILE) $&lt;<br>
<p>
all: $(TARGETS)<br>
<p>
liblib.a: $(LIBLIB_OBJS)<br>
ar r $@ $(LIBLIB_OBJS)<br>
$(RANLIB) $@<br>
----8&lt;----<br>
So we only want the static library, and there is a special rule<br>
involving `ar'. I don't get why there is mentioning of libtool in<br>
this Makefile fragment at all if all we want is a static library?<br>
<p>
I seem to recall there were some plans to have the build process use<br>
automake in the not too distant future. If this is true, I think this<br>
will kind of automagically fix problems such as this one, and I'll be<br>
glad to just not use `--disable-static' until then.<br>
<p>
Greetings,<br>
Alex<br>
<p>
<pre>
--
Alexander Jolk * <a href="mailto:jolk@ap-pc513b.physik.uni-karlsruhe.de">jolk@ap-pc513b.physik.uni-karlsruhe.de</a> * +49-721-608-3572
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0223.html">Eric Ludlam: "Re[2]: HP Scanjet 4p and NetBSD/Sparc"</a>
<li> <b>Previous message:</b> <a href="0221.html">Benedikt Heinen: "Re: SCSI card?"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>