[gmail] Re: Segmentation Fault calling /sbin/syslogd

Marc Leeman marc.leeman at gmail.com
Wed Jan 24 01:06:42 PST 2007


> Aha! Try replacing
> 
> #ifdef __GLIBC__
> 
> by
> 
> #if definen(__GLIBC__) && !defined(__UCLIBC__)
> 
> Works now?

syslog/syslogd.c does not contain the __GLIBC__ define.

/[mleeman at neo busybox-1.4.0]$ find . -type f -name '*.[ch]' |xargs grep __GLIBC__
./applets/applets.c:/* Apparently uclibc defines __GLIBC__ (compat trick?). Oh well. */
./applets/applets.c:#if ENABLE_STATIC && defined(__GLIBC__) && !defined(__UCLIBC__)
./archival/gzip.c:#if defined(__GLIBC__) && __GLIBC__ >./include/libbb.h:#if defined(__GLIBC__) && __GLIBC__ < 2
./include/libbb.h:#ifdef __GLIBC__
./include/platform.h:#if defined __GLIBC__ || defined __UCLIBC__ \
./include/platform.h:#if (defined __GLIBC__ && __GLIBC__ <./libbb/makedev.c:#ifdef __GLIBC__
./libbb/vdprintf.c:#if defined(__GLIBC__) && __GLIBC__ < 2
./libbb/xreadlink.c:#ifdef __GLIBC__
./networking/ifconfig.c:#if defined(__GLIBC__) && __GLIBC__ >=2 && __GLIBC_MINOR__ >./networking/interface.c:#if (defined(__GLIBC__) && __GLIBC__ >./networking/libiproute/ll_proto.c:#if defined(__GLIBC__) && __GLIBC__ >=2 && __GLIBC_MINOR__ >./networking/udhcp/clientpacket.c:#if (defined(__GLIBC__) && __GLIBC__ >./networking/udhcp/clientsocket.c:#if (defined(__GLIBC__) && __GLIBC__ >./networking/udhcp/packet.c:#if (defined(__GLIBC__) && __GLIBC__ >./networking/udhcp/socket.c:#if (defined(__GLIBC__) && __GLIBC__ >./scripts/kconfig/zconf.tab.c:#  if defined (__GLIBC__) && defined (_STRING_H)
./scripts/kconfig/zconf.tab.c:#  if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
./shell/ash.c:#ifdef __GLIBC__
./shell/ash.c:#ifdef __GLIBC__
./shell/ash.c:#if defined(__GLIBC__) && __GLIBC__ = 2 && __GLIBC_MINOR__ < 1



-- 
  greetz, marc
Human. It's kinda like Sebacean, but we haven't conquered other worlds
yet, so we just kick the crap out of each other.
	Crichton - PK Tech Girl
scorpius.homelinux.org 2.6.19 #1 Tue Dec 5 16:35:02 CET 2006 GNU/Linux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://busybox.net/lists/busybox/attachments/20070124/b2cf3300/attachment.pgp 


More information about the busybox mailing list