[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: autoconf breakage on x86_64.



Sam Varshavchik wrote:
> I don't know the right way to fix this, but something is definitely

> gcc -o conftest -g -O2 -Wall -I.. -I./..   conftest.c -lresolv  >&5
> /tmp/ccW7EeDX.o(.text+0x7): In function `main':
> /home/mrsam/src/courier/authlib/configure:5160: undefined reference to
> `res_query'
> collect2: ld returned 1 exit status
> configure:5147: $? = 1
> configure: failed program was:
> 
> [ blah blah blah ]
> 
> | /* We use char because int might match the return type of a gcc2
> |    builtin and then its argument prototype would still apply.  */
> | char res_query ();
> | int
> | main ()
> | {
> | res_query ();
> |   ;
> |   return 0;
> | }
> 
> 
> The same exact test on FC1 x86 will work.

Only for compatibility reasons.   This is no supported interface of the
resolver library.  It is not exported for the ABIs which don't need it
to be compatible with older releases.  If a programmer things her/his
code needs this interface an implementation must come with the program.


-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]