On Thu, Jun 20, 2002 at 10:44:17AM -0700, kibab@xxxxxxxxxxxxxxxx wrote:
> ...
>
> I tried the sh -x ./configure and it gaves me the following:
> ...
> + eval echo configure:1436: '"${CC-cc}' -o 'conftest${ac_exeext}' '$CFLAGS'
> '$CPPFLAGS' '$LDFLAGS' 'conftest.$ac_ext' '$LIBS' '1>&5"'
> ++ echo configure:1436: 'gcc -o conftest -g -O2 conftest.c -lattr 1>&5'
> The test program that it is trying to use is:
>
> #line 1425 "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 getxattr();
>
> int main() {
> getxattr()
> ; return 0; }
>
> When compiled by: gcc -o conftest -g -O2 conftest.c -lattr
> it says: /usr/bin/ld: cannot find -lattr
>
> But... after running ldconfig and with ld.so.conf setup correctly it still
> doesn't find it (a RH7.3 problem) so I added -L/lib and then it gave me the
[Hmm.. something very suspect about your compiler setup if you have
to do that! -- maybe a gcc installation/configuration problem?]
> following:
>
> [root@localhost acl-2.0.9]# gcc -L/lib -o conftest -g -O2 conftest.c
> /tmp/cclRzSPV.o: In function `main':
> /root/acl-2.0.9/configure:1432: undefined reference to `getxattr'
> collect2: ld returned 1 exit status
You seem to be missing -lattr on the above command line.
cheers.
--
Nathan
|