Re: ld: Undefined symbols: _gethostbyname_r
Subject : Re: ld: Undefined symbols: _gethostbyname_r
From: Sam Hart <email@hidden >
Date: Thu, 11 Nov 2004 09:10:09 +0000
Delivered-to: email@hidden
Delivered-to: email@hidden
t'was written wrote:
Tue, 9 Nov 2004 19:51:10 -0500, Joao Damas <email@hidden> wrote:
Define BIND_8_COMPAT while building the software.
thank you very much for the hint, but could you be a little more
specific, please?
I don't think you suggest I should define this in the Makefile, but in
some header file or c source file. The question then is which one?
BIND_8_COMPAT is a flag for GCC
so it would be added to the CFLAGS in a Makefile
however as Jordan Hubbard pointed out, this shouldn't be considered
adding -lresolv to the Makefile's CFLAGS should solve the problem
or you could try
make CFLAGS="-lresolv"
be careful, however as it might knock out the first argument in CFLAGS
S a m
-------------------------------------------------------
Drawing on my fine command of language, I said nothing.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.