xfs
[Top] [All Lists]

Re: acl-2.0.9 compile errors for EAs

To: kibab@xxxxxxxxxxxxxxxx
Subject: Re: acl-2.0.9 compile errors for EAs
From: Nathan Scott <nathans@xxxxxxx>
Date: Fri, 21 Jun 2002 09:52:54 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <200206201044.17675.kibab@asc.ewu.edu>
References: <005001c217c4$c0686090$630dbb92@KWINXP> <20020619225616.GB469@frodo> <200206201044.17675.kibab@asc.ewu.edu>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.4i
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


<Prev in Thread] Current Thread [Next in Thread>