Discussion:
[uClinux-dev] Rsyslog Daemon
Ashish Phogat
2013-03-12 14:41:07 UTC
Permalink
Hey Folks,

Anyone succeded in building rsyslog daemon in uclinux Network applications
for architectures which are MMU less. I am struggling with Coldfire M5272C3
which is MMU less. I know rsyslog is full of pthreads, which I enabled in
uClibc library configuration. But still I am getting errors related to
undefined references in file "net.c". Actually the functions that "net.c"
is looking for are present in "parser.c" file.

I am not sure what I am missing.


Is it that all applications which are coded using pthreads will not be
compiled for MMU less achitectures?

Thanks in advance for replying.

Thanks
Phogat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20130312/83bcd4ff/attachment.html>
Larry Baker
2013-03-12 21:26:44 UTC
Permalink
Ashish,

My uClinux builds apps with the following command, e.g., for config.c:

# ucfront-gcc m68k-uclinux-gcc -mcpu=5208 -DCONFIG_COLDFIRE -fomit-frame-pointer -pipe -fno-common -fno-builtin -fno-dwarf2-cfi-asm -msep-data -D__linux__ -Dunix -D__uClinux__ -DEMBED -Os -g -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -DEMBED -fno-dwarf2-cfi-asm -msep-data -Dlinux -D__linux__ -Dunix -D__uClinux__ -c dbug-config.c

The makefile for rsyslog (linux/user/rsyslog/makefile) is:

[root at atompc linux]# cat user/rsyslog/makefile
PREFIX=
DESTDIR=$(shell pwd)/install
CONFOPTS = --prefix=$(PREFIX) --disable-klog
#--disable-shared

all: build/build
$(MAKE) -C build
$(MAKE) -C build install DESTDIR=$(DESTDIR)

build/build: makefile
rm -rf build install
mkdir build
(cd build; sh ../configure $(CONFIGURE_OPTS) $(CONFOPTS))
touch build/build

clean:
rm -rf build install

romfs:
$(ROMFSINST) -f $(DESTDIR)/sbin /sbin
$(ROMFSINST) -f $(DESTDIR)/lib /lib

I didn't configure rsyslogd on my system (Lantronix EDS2100), so this is all I can tell you.

Larry Baker
US Geological Survey
650-329-5608
baker at usgs.gov
Post by Ashish Phogat
Hey Folks,
Anyone succeded in building rsyslog daemon in uclinux Network applications for architectures which are MMU less. I am struggling with Coldfire M5272C3 which is MMU less. I know rsyslog is full of pthreads, which I enabled in uClibc library configuration. But still I am getting errors related to undefined references in file "net.c". Actually the functions that "net.c" is looking for are present in "parser.c" file.
I am not sure what I am missing.
Is it that all applications which are coded using pthreads will not be compiled for MMU less achitectures?
Thanks in advance for replying.
Thanks
Phogat
_______________________________________________
uClinux-dev mailing list
uClinux-dev at uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev at uclinux.org
http://mailman.uclinux.org/mailman/options/uclinux-dev
Loading...