[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
configure can't find library on some platforms
From: |
Zac Hansen |
Subject: |
configure can't find library on some platforms |
Date: |
Mon, 3 Jul 2006 16:37:16 -0700 |
I have 2 libraries, mylib1 and mylib2. mylib1 has no depencies. mylib2
depends on mylib1.
I am using aclocal, autoheader, autoconf, automake, and libtoolize to build
these libraries.
I build mylib1 and do a make install. Then, I do a configure in mylib2 and
on some platforms it can't find main in mylib1.
Platforms that work:
FC4, OS X 10.4
Platforms that don't work:
RHEL3, MSYS, CYGWIN
Right now I'm trying to make it work on RHEL3. mylib1 was put in
/usr/local/lib. I added /usr/local/lib/to /etc/ld.so.conf and ran "sudo
ldconfig -v" and verified that it saw my library (I've also rebooted).
Also, if I type gcc -lmylib1 it sees it (gcc -lblahblahlibrary gives an
error about blahblahlibrary not found, and that's not what gcc -lmylib1
errors with). So I know my library is in a place where at least some parts
of the system are looking.
Basically, mylib2's configure.ac is pretty straightforward with:
AC_CHEC_LIB(mylib2, main, , AC_MSG_ERROR(mylib2 required))
I don't know what else to try.
--Zac
- configure can't find library on some platforms,
Zac Hansen <=