[syslog-ng] syslog-ng 2.0.3 static link build error

Evan Rempel erempel at uvic.ca
Thu Mar 29 17:37:00 CEST 2007


Balazs Scheidler wrote:
> On Wed, 2007-03-28 at 12:01 -0700, Evan Rempel wrote:
>> Under linux (redhat AS 4) if I statically link without spoofsource I can the following
>> build error
>>
>> % ./configure --enable-static-linking --enable-spoof-source=no
>> % make
>> [snip]
>> /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libwrap.a(hosts_access.o)(.text+0xc08): In function `host_match':
>> : undefined reference to `yp_get_default_domain'
>> collect2: ld returned 1 exit status
>>
>>
>> glibc is a little old on this machine
>> glibc-2.3.4-2.25
>> glibc-headers-2.3.4-2.25
>> glibc-devel-2.3.4-2.25
>> but that is what Redhas ships, so I would rather not update it.
>>
>> The question is "Why does a static link require a yellow pages routine?"
> 
> because libwrap depends on it. disable tcp wrapper support.

How doest that explain that linking dynamically does not produce this error?



-- 
Evan Rempel                erempel at uvic.ca
Senior Programmer Analyst        250.721.7691
Computing Services
University of Victoria


More information about the syslog-ng mailing list