cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: pre6 build in sub-dir

From: Roth, Kevin P. <KPRoth_at_MarathonOil.com>
Date: Wed, 6 Mar 2002 13:48:10 -0500

Not sure what happened, but it looks like I sent up the wrong snippet of output. Here's the error I was actually seeing:

make[2]: Entering directory `/tmp/cbld/lib'
source='/usr/src/curl-7.9.5-pre6/lib/getdate.c' object='getdate.lo' libtool=yes
\
depfile='.deps/getdate.Plo' tmpdepfile='.deps/getdate.TPlo' \
depmode=gcc /bin/sh /usr/src/curl-7.9.5-pre6/depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I/usr/src/curl-7.9.5-pre
6/include -I../lib -g -O2 -c -o getdate.lo `test -f /usr/src/curl-7.9.5-pre6/
lib/getdate.c || echo '/usr/src/curl-7.9.5-pre6/lib/'`/usr/src/curl-7.9.5-pre6/l
ib/getdate.c
rm -f .libs/getdate.lo
gcc -DHAVE_CONFIG_H -I/usr/src/curl-7.9.5-pre6/include -I../lib -g -O2 -c /usr/s
rc/curl-7.9.5-pre6/lib/getdate.c -Wp,-MD,.deps/getdate.TPlo -DDLL_EXPORT -DPIC
-o .libs/getdate.lo
getdate.y:11: setup.h: No such file or directory
getdate.y:488: getdate.h: No such file or directory
make[2]: *** [getdate.lo] Error 1
make[2]: Leaving directory `/tmp/cbld/lib'

This seems to be an issue with which directories are specified in the -I arguments to gcc. If I manually copy -pre6/lib/setup.h and -pre6/lib/getdate.h into the build directory (/tmp/cbld/lib/ in this example), it appears to build fine... Is this a remnant from having moved config.h into the lib and src sub-directories?

In answer to your libtool question:

  $ pwd
  /tmp/cbld
  $ ./libtool --version
  ltmain.sh (GNU libtool) 1.4.2 (1.922.2.54 2001/09/11 03:33:37)

Appears to be the same as yours. Here was my exact set of steps:

  $ pwd
  /usr/src
  $ tar xjf curl-7.9.5-pre6.tar.bz2
  $ mkdir /tmp/cbld
  $ cd /tmp/cbld
  $ /usr/src/curl-7.9.5-pre6/configure
  [...]
  $ make

Thanks,
--Kevin

-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Wednesday, March 06, 2002 2:43 AM

Why can't it find the library? It is in the ../lib directory, right?

I can build this fine in a separate directory, on both Solaris and Linux, and
my link line is *very* similar to yours here.

When you build in a separate directory and it fails, what does the libtool
that got created in your build dir say about its version?

$ pwd
[...]/tmp/build
$ ./libtool --version
ltmain.sh (GNU libtool) 1.4.2 (1.922.2.54 2001/09/11 03:33:37)
Received on 2002-03-06