Hi, I move one step furthur by enabling POSIX thread for M5272C3 for building uclinux. But Now after enabling the POSIX threads for rsyslog daemon, I am getting new error*s:
*/bin/sh ./libtool --tag=CC --mode=compile ucfront-gcc m68k-uclinux-gcc -m5307 -DCONFIG_COLDFIRE -DHAVE_CONFIG_H -I. -I.. -pthread -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -DEMBED -msep-data -Dlinux -D__linux__ -Dunix -D__uClinux__ -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT lmnet_la-net.lo -MD -MP -MF .deps/lmnet_la-net.Tpo -c -o lmnet_la-net.lo `test -f 'net.c' || echo '../'`net.c mkdir .libs ucfront-gcc m68k-uclinux-gcc -m5307 -DCONFIG_COLDFIRE -DHAVE_CONFIG_H -I. -I.. -pthread -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -DEMBED -msep-data -Dlinux -D__linux__ -Dunix -D__uClinux__ -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT lmnet_la-net.lo -MD -MP -MF .deps/lmnet_la-net.Tpo -c ../net.c -fPIC -DPIC -o .libs/lmnet_la-net.o mv -f .deps/lmnet_la-net.Tpo .deps/lmnet_la-net.Plo /bin/sh ./libtool --tag=CC --mode=link ucfront-gcc m68k-uclinux-gcc -m5307 -DCONFIG_COLDFIRE -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -DEMBED -msep-data -Dlinux -D__linux__ -Dunix -D__uClinux__ -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -module -avoid-version -Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,-elf2flt -Wl,-move-rodata -msep-data -o lmnet.la -rpath /lib/rsyslog lmnet_la-net.lo ucfront-gcc m68k-uclinux-gcc -m5307 -DCONFIG_COLDFIRE -shared .libs/lmnet_la-net.o -m5307 -msep-data -Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,-soname -Wl,lmnet.so -o .libs/lmnet.so /usr/local/lib/gcc/m68k-uclinux/4.2.4/../../../../m68k-uclinux/bin/ld.real: warning: cannot find entry symbol _start; defaulting to 00000000 .libs/lmnet.so.elf2flt: In function `queryEtryPt': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:1088: undefined reference to `dbgprintf' .libs/lmnet.so.elf2flt: In function `netClassInit': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:1068: undefined reference to `objGetObjInterface' .libs/lmnet.so.elf2flt: In function `should_use_so_bsdcompat': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:594: undefined reference to `rs_strerror_r' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:594: undefined reference to `dbgprintf' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:601: undefined reference to `dbgprintf' .libs/lmnet.so.elf2flt: In function `MaskCmp': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:479: undefined reference to `dbgprintf' .libs/lmnet.so.elf2flt: In function `create_udp_socket': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:888: undefined reference to `family' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:1010: undefined reference to `Debug' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:1011: undefined reference to `dbgprintf' .libs/lmnet.so.elf2flt: In function `PrintAllowedSenders': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:352: undefined reference to `dbgprintf' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:365: undefined reference to `dbgprintf' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:369: undefined reference to `dbgprintf' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:374: undefined reference to `dbgprintf' .libs/lmnet.so.elf2flt:/home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:380: more undefined references to `dbgprintf' follow .libs/lmnet.so.elf2flt: In function `gethname': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:654: undefined reference to `DisableDNS' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:657: undefined reference to `pthread_sigmask' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:683: undefined reference to `bDropMalPTRMsgs' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:689: undefined reference to `pthread_sigmask' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:708: undefined reference to `pthread_sigmask' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:711: undefined reference to `DisableDNS' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:712: undefined reference to `dbgprintf' .libs/lmnet.so.elf2flt: In function `cvthname': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:813: undefined reference to `LocalDomain' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:819: undefined reference to `StripDomains' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:837: undefined reference to `LocalHosts' .libs/lmnet.so.elf2flt: In function `debugListenInfo': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:752: undefined reference to `dbgprintf' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:761: undefined reference to `dbgprintf' .libs/lmnet.so.elf2flt: In function `AddAllowedSenderEntry': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:126: undefined reference to `glblHadMemShortage' .libs/lmnet.so.elf2flt: In function `addAllowedSenderLine': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:429: undefined reference to `rsParsConstructFromSz' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:435: undefined reference to `parsPeekAtCharAtParsPtr' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:438: undefined reference to `parsAddrWithBits' .libs/lmnet.so.elf2flt: In function `AddAllowedSender': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:230: undefined reference to `DisableDNS' .libs/lmnet.so.elf2flt: In function `addAllowedSenderLine': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:452: undefined reference to `rsParsDestruct' .libs/lmnet.so.elf2flt: In function `AddAllowedSender': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:270: undefined reference to `glblHadMemShortage' .libs/lmnet.so.elf2flt: In function `addAllowedSenderLine': /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:434: undefined reference to `parsIsAtEndOfParseString' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:460: undefined reference to `parsGetCurrentPosition' /home/aphogat/Downloads/uClinux-dist/user/rsyslog/build/../net.c:461: undefined reference to `rsParsDestruct' collect2: ld returned 1 exit status make[6]: *** [lmnet.la] Error 1 make[6]: Leaving directory `/home/aphogat/Downloads/uClinux-dist/user/rsyslog/build' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/home/aphogat/Downloads/uClinux-dist/user/rsyslog/build' make[4]: *** [all] Error 2 make[4]: Leaving directory `/home/aphogat/Downloads/uClinux-dist/user/rsyslog/build' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/aphogat/Downloads/uClinux-dist/user/rsyslog' make[2]: *** [rsyslog] Error 2 make[2]: Leaving directory `/home/aphogat/Downloads/uClinux-dist/user' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/aphogat/Downloads/uClinux-dist/user' make: *** [subdirs] Error 1* Whether these errors are related to rsyslog or something wrong with configuration? Please help me out with this........................... This is my rsyslog Configuration: **************************************************** *rsyslog will be compiled with the following settings: Multithreading support enabled: yes Klog functionality enabled: no Regular expressions support enabled: yes Zlib compression support enabled: false MySql support enabled: no libdbi support enabled: no PostgreSQL support enabled: no SNMP support enabled: no RELP support enabled: no file input module enabled: no input template module will be compiled: no Large file support enabled: yes Networking support enabled: yes Enable GSSAPI Kerberos 5 support: no Debug mode enabled: no Runtime Instrumentation enabled: no valgrind support settings enabled: no rsyslogd will be built: yes touch build/build* This is my uClibc Configurations:* * * uClibc Configuration * Target Architecture 1. alpha (TARGET_alpha) 2. arm (TARGET_arm) 3. bfin (TARGET_bfin) 4. cris (TARGET_cris) 5. e1 (BROKEN) (TARGET_e1) 6. frv (BROKEN) (TARGET_frv) 7. h8300 (BROKEN) (TARGET_h8300) 8. hppa (TARGET_hppa) 9. i386 (TARGET_i386) 10. i960 (BROKEN) (TARGET_i960) 11. ia64 (TARGET_ia64) > 12. m68k (TARGET_m68k) 13. microblaze (BROKEN) (TARGET_microblaze) 14. mips (TARGET_mips) 15. nios (TARGET_nios) 16. nios2 (TARGET_nios2) 17. powerpc (TARGET_powerpc) 18. superh (TARGET_sh) 19. sh64 (TARGET_sh64) 20. sparc (TARGET_sparc) 21. v850 (BROKEN) (TARGET_v850) 22. vax (TARGET_vax) 23. x86_64 (TARGET_x86_64) choice[1-23?]: 12 * * Target Architecture Features and Options * Target File Format 1. FDPIC ELF (UCLIBC_FORMAT_FDPIC_ELF) 2. STATIC FLAT (UCLIBC_FORMAT_FLAT) > 3. STATIC FLAT (sep-data) (UCLIBC_FORMAT_FLAT_SEP_DATA) 4. SHARED FLAT (UCLIBC_FORMAT_SHARED_FLAT) choice[1-4]: 3 * * Using Big Endian * Target CPU has a memory management unit (MMU) (ARCH_HAS_MMU) [N/y/?] n Enable floating point number support (UCLIBC_HAS_FLOATS) [Y/n/?] y Target CPU has a floating point unit (FPU) (UCLIBC_HAS_FPU) [N/y/?] n Enable full C99 math library support (DO_C99_MATH) [Y/n/?] y Linux kernel header location (KERNEL_HEADERS) [$(STAGEDIR)/include] $(STAGEDIR)/include If munmap expects 0 for the size (UCLIBC_UCLINUX_BROKEN_MUNMAP) [Y/n] y * * General Library Settings * Generate only Position Independent Code (PIC) (DOPIC) [N/y/?] n Support global constructors and destructors (UCLIBC_CTOR_DTOR) [Y/n/?] y POSIX Threading Support (UCLIBC_HAS_THREADS) [Y/n/?] y Build pthreads debugging support (PTHREADS_DEBUG_SUPPORT) [N/y/?] n Use the older (stable) version of linuxthreads (LINUXTHREADS_OLD) [Y/n/?] y Large File Support (UCLIBC_HAS_LFS) [Y/n/?] y Malloc Implementation 1. malloc (MALLOC) > 2. malloc-simple (MALLOC_SIMPLE) choice[1-2?]: 2 Malloc returns live pointer for malloc(0) (MALLOC_GLIBC_COMPAT) [N/y/?] n Dynamic atexit() Support (UCLIBC_DYNAMIC_ATEXIT) [Y/n/?] y Old (visible) atexit Support (COMPAT_ATEXIT) [Y/n/?] y Enable SuSv3 LEGACY functions (UCLIBC_SUSV3_LEGACY) [N/y/?] n Enable SuSv3 LEGACY macros (UCLIBC_SUSV3_LEGACY_MACROS) [Y/n/?] y Shadow Password Support (UCLIBC_HAS_SHADOW) [Y/n/?] y Support for program_invocation_name (UCLIBC_HAS_PROGRAM_INVOCATION_NAME) [N/y/?] n Support for __progname (UCLIBC_HAS___PROGNAME) [Y/n/?] y Support only Unix 98 PTYs (UNIX98PTY_ONLY) [Y/n/?] y Assume that /dev/pts is a devpts or devfs file system (ASSUME_DEVPTS) [Y/n/?] y Support 'struct tm' timezone extension fields (UCLIBC_HAS_TM_EXTENSIONS) [Y/n/?] y Enable caching of the last valid timezone 'TZ' string (UCLIBC_HAS_TZ_CACHING) [Y/n/?] y Enable '/etc/TZ' file support to set a default timezone (uClibc-specific) (UCLIBC_HAS_TZ_FILE) [Y/n/?] y Repeatedly read the '/etc/TZ' file (UCLIBC_HAS_TZ_FILE_READ_MANY) [Y/n/?] y Path to the 'TZ' file for setting the global timezone (UCLIBC_TZ_FILE_PATH) [/etc/TZ] /etc/TZ * * Advanced Library Settings * Buffer size for getpwnam() and friends (UCLIBC_PWD_BUFFER_SIZE) [256] 256 Buffer size for getgrnam() and friends (UCLIBC_GRP_BUFFER_SIZE) [256] 256 * * Networking Support * IP version 6 Support (UCLIBC_HAS_IPV6) [N/y/?] n Remote Procedure Call (RPC) support (UCLIBC_HAS_RPC) [Y/n/?] y Full RPC support (UCLIBC_HAS_FULL_RPC) [Y/n/?] y Reentrant RPC support (UCLIBC_HAS_REENTRANT_RPC) [N/y/?] n Use netlink to query interfaces (UCLIBC_USE_NETLINK) [N/y/?] n Support res_close() (bsd-compat) (UCLIBC_HAS_BSD_RES_CLOSE) [N/y/?] n * * String and Stdio Support * Use glibc generic string functions (UCLIBC_HAS_STRING_GENERIC_OPT) [Y/n/?] y Use arch-specific string functions (UCLIBC_HAS_STRING_ARCH_OPT) [Y/n/?] y Use Table Versions Of 'ctype.h' Functions. (UCLIBC_HAS_CTYPE_TABLES) [Y/n/?] y Support Signed Characters In 'ctype.h' Functions. (UCLIBC_HAS_CTYPE_SIGNED) [Y/n/?] y ctype argument checking > 1. Do not check -- unsafe (UCLIBC_HAS_CTYPE_UNSAFE) 2. Detect and handle appropriately (UCLIBC_HAS_CTYPE_CHECKED) 3. Issue a diagnostic and abort() (UCLIBC_HAS_CTYPE_ENFORCED) choice[1-3?]: 1 Wide Character Support (UCLIBC_HAS_WCHAR) [N/y/?] n Locale Support (UCLIBC_HAS_LOCALE) [N/y/?] n Support hexadecimal float notation (UCLIBC_HAS_HEXADECIMAL_FLOATS) [N/y/?] n Support glibc's register_printf_function() (glibc-compat) (UCLIBC_HAS_GLIBC_CUSTOM_PRINTF) [N/y/?] n Use the old vfprintf implementation (USE_OLD_VFPRINTF) [N/y/?] n Maximum number of positional args. Either 0 or >= 9. (UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS) [9] 9 Support glibc's 'a' flag for scanf string conversions (not implemented) (UCLIBC_HAS_SCANF_GLIBC_A_FLAG) [N/y/?] n Stdio buffer size 1. none (WARNING - BUFSIZ will be 256 in stdio.h) (UCLIBC_HAS_STDIO_BUFSIZ_NONE) > 2. 256 (minimum ANSI/ISO C99 value) (UCLIBC_HAS_STDIO_BUFSIZ_256) 3. 512 (UCLIBC_HAS_STDIO_BUFSIZ_512) 4. 1024 (UCLIBC_HAS_STDIO_BUFSIZ_1024) 5. 2048 (UCLIBC_HAS_STDIO_BUFSIZ_2048) 6. 4096 (UCLIBC_HAS_STDIO_BUFSIZ_4096) 7. 8192 (UCLIBC_HAS_STDIO_BUFSIZ_8192) choice[1-7?]: 2 Stdio builtin buffer size (uClibc-specific) > 1. None (UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE) 2. 4 (UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4) 3. 8 (UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8) choice[1-3?]: 1 Attempt to shutdown stdio subsystem when abort() is called. (UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT) [N/y/?] n Provide a macro version of getc() (UCLIBC_HAS_STDIO_GETC_MACRO) [Y/n/?] y Provide a macro version of putc() (UCLIBC_HAS_STDIO_PUTC_MACRO) [Y/n/?] y Support auto-r/w transition (UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION) [Y/n/?] y Support an fopen() 'F' flag for large file mode (uClibc-specific) (UCLIBC_HAS_FOPEN_LARGEFILE_MODE) [N/y/?] n Support an fopen() 'x' flag for exclusive mode (glibc-compat) (UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE) [N/y/?] n Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat) (UCLIBC_HAS_GLIBC_CUSTOM_STREAMS) [N/y/?] n Support the '%m' specifier in printf format strings (glibc-compat) (UCLIBC_HAS_PRINTF_M_SPEC) [Y/n/?] y Include the errno message text in the library (UCLIBC_HAS_ERRNO_MESSAGES) [Y/n/?] y Support sys_errlist[] (obsolete-compat) (UCLIBC_HAS_SYS_ERRLIST) [Y/n/?] y Include the signum message text in the library (UCLIBC_HAS_SIGNUM_MESSAGES) [Y/n/?] y Support sys_siglist[] (bsd-compat) (UCLIBC_HAS_SYS_SIGLIST) [N/y/?] n Support gnu getopt (UCLIBC_HAS_GNU_GETOPT) [Y/n/?] y Support glibc getsubopt (UCLIBC_HAS_GNU_GETSUBOPT) [Y/n/?] y * * Big and Tall * Regular Expression Support (UCLIBC_HAS_REGEX) [Y/n/?] y Use the older (stable) regular expression code (UCLIBC_HAS_REGEX_OLD) [Y/n/?] y fnmatch Support (UCLIBC_HAS_FNMATCH) [Y/n/?] y Use the older (stable) fnmatch code (UCLIBC_HAS_FNMATCH_OLD) [Y/n/?] y Support the wordexp() interface (UCLIBC_HAS_WORDEXP) [N/y/?] n Support the ftw() and nftw() interfaces (UCLIBC_HAS_FTW) [N/y/?] n Support the glob() interface (UCLIBC_HAS_GLOB) [Y/n/?] y Support gnu glob() interface (UCLIBC_HAS_GNU_GLOB) [N/y/?] n * * Library Installation Options * uClibc runtime library directory (RUNTIME_PREFIX) [/usr/$(TARGET_ARCH)-linux-uclibc/] /usr/$(TARGET_ARCH)-linux-uclibc/ uClibc development environment directory (DEVEL_PREFIX) [/usr/$(TARGET_ARCH)-linux-uclibc] /usr/$(TARGET_ARCH)-linux-uclibc * * Security options * Include the arc4random() function (UCLIBC_HAS_ARC4RANDOM) [N/y/?] n Support for propolice smashing stack protector (UCLIBC_HAS_SSP) [N/y/?] n Build uClibc with noexecstack marking (UCLIBC_BUILD_NOEXECSTACK) [Y/n/?] y * * uClibc development/debugging options * Cross-compiling toolchain prefix (CROSS_COMPILER_PREFIX) [] Enter any extra CFLAGS to use to build uClibc (UCLIBC_EXTRA_CFLAGS) [] Build uClibc with debugging symbols (DODEBUG) [N/y/?] n Build pthread with debugging output (DODEBUG_PT) [N/y/?] n Strip libraries and executables (DOSTRIP) [Y/n/?] y Build uClibc with run-time assertion testing (DOASSERTS) [N/y/?] n Compiler Warnings (WARNINGS) [-Wall] -Wall Enable extra annoying warnings (EXTRA_WARNINGS) [N/y/?] n Compile all sources at once into an object (DOMULTI) [N/y/?] n Manuel's hidden warnings (UCLIBC_MJN3_ONLY) [N/y/?] n ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ On Fri, Feb 15, 2013 at 12:04 PM, Ashish Phogat <engineerpho...@gmail.com>wrote: > Hi, > As soon as I enabled the rsyslog daemon in Network applications while > configuring uclinux for M5272C3 I got the erro*rs as: > > Configure: error: pthread is missing > > *I am using uClinux-dist-20120401.tar.gz and m68-elf-tools-20030314.sh > tool chain. > I have basic configurations enabled and uClibc as library version and > linux-2.4.x as kernel. > > Am I doing something wrong while configuring kernel? Which options I need > to enable for compiling rsyslog? > > Please help...................... > > Thanks for help........
_______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev