From: SourceForge.net <no...@so...> - 2005-09-28 23:17:59
|
Bugs item #1290621, was opened at 2005-09-13 22:58 Message generated for change (Comment added) made by alex_b You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1290621&group_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: build/test Group: windows Status: Open Resolution: None Priority: 5 Submitted By: WildBill (wild1180) Assigned to: Nobody/Anonymous (nobody) Summary: build failure with cygwin (pthread issue?) Initial Comment: Any idea why I can't build net-snmp with my WinXP cygwin environment? There seem to be conflicting declarations of various pthread related structs. After running config with the options: ./configure --with-mib-modules="host agentx disman/event-mib examples/example" --with-out-mib-modules=host/hr_network $ make making all in /cygdrive/c/net-snmp-5.2.1.2/snmplib make[1]: Entering directory `/cygdrive/c/net-snmp-5.2.1.2/snmplib' /bin/sh ../libtool --mode=compile gcc -I../include -I. -I../snmplib -g -O2 -Dcygwin -c -o mib.lo mib.c rm -f .libs/mib.lo gcc -I../include -I. -I../snmplib -g -O2 -Dcygwin -c mib.c -DDLL_EXPORT -DPIC - o .libs/mib.lo In file included from ../include/net-snmp/library/mt_support.h:48, from ../include/net-snmp/utilities.h:44, from mib.c:85: /usr/include/pthread.h:271: error: redefinition of `struct timespec' /usr/include/pthread.h:503: error: conflicting types for 'pthread_t' /usr/include/cygwin/types.h:208: error: previous declaration of 'pthread_t' was here /usr/include/pthread.h:504: error: conflicting types for 'pthread_attr_t' /usr/include/cygwin/types.h:212: error: previous declaration of 'pthread_attr_t' was here /usr/include/pthread.h:505: error: conflicting types for 'pthread_once_t' /usr/include/cygwin/types.h:223: error: previous declaration of 'pthread_once_t' was here /usr/include/pthread.h:506: error: conflicting types for 'pthread_key_t' /usr/include/cygwin/types.h:211: error: previous declaration of 'pthread_key_t' was here /usr/include/pthread.h:507: error: conflicting types for 'pthread_mutex_t' /usr/include/cygwin/types.h:209: error: previous declaration of 'pthread_mutex_t ' was here /usr/include/pthread.h:508: error: conflicting types for 'pthread_mutexattr_t' /usr/include/cygwin/types.h:213: error: previous declaration of 'pthread_mutexat tr_t' was here /usr/include/pthread.h:509: error: conflicting types for 'pthread_cond_t' /usr/include/cygwin/types.h:215: error: previous declaration of 'pthread_cond_t' was here /usr/include/pthread.h:510: error: conflicting types for 'pthread_condattr_t' /usr/include/cygwin/types.h:214: error: previous declaration of 'pthread_condatt r_t' was here /usr/include/pthread.h:512: error: conflicting types for 'pthread_rwlock_t' /usr/include/cygwin/types.h:224: error: previous declaration of 'pthread_rwlock_ t' was here /usr/include/pthread.h:513: error: conflicting types for 'pthread_rwlockattr_t' /usr/include/cygwin/types.h:225: error: previous declaration of 'pthread_rwlocka ttr_t' was here /usr/include/pthread.h:1082: error: conflicting types for 'pthread_kill' /usr/include/sys/signal.h:163: error: previous declaration of 'pthread_kill' was here /usr/include/pthread.h:1082: error: conflicting types for 'pthread_kill' /usr/include/sys/signal.h:163: error: previous declaration of 'pthread_kill' was here make[1]: *** [mib.lo] Error 1 make[1]: Leaving directory `/cygdrive/c/net-snmp-5.2.1.2/snmplib' make: *** [subdirs] Error 1 Cygwin DLL version info: DLL version: 1.5.18 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 132 Shared data: 4 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Sat Jul 2 20:30:04 EDT 2005 Shared id: cygwin1S4 Windows XP Professional Ver 5.1 Build 2600 Service Pack 2 ---------------------------------------------------------------------- >Comment By: Alex Burger (alex_b) Date: 2005-09-28 19:17 Message: Logged In: YES user_id=85836 I just compiled 5.2.2.pre2 without any problems. I used the same configure line as you did. I am using the same version of the Cygwin DLL (1.5.18). I installed Cygwin from the online install on August 12/2005. Can you try a fresh install of Cygwin on another computer? ---------------------------------------------------------------------- Comment By: WildBill (wild1180) Date: 2005-09-27 13:37 Message: Logged In: YES user_id=1205587 9/27/2005 -------------- I downloaded net-snmp-5.2.2.pre1 and attempted compile, but saw the same errors. No change with the new package. Now I am seeking to find out if I can get the pthreads stuff working (included?). ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2005-09-27 11:43 Message: Logged In: YES user_id=848638 Can you please try with 5.2.2.pre1 and report back? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1290621&group_id=12694 |