Hi,

>Hm, wonder what was the reason to drop the extern in first place?

What do you mean ? Sorry I don't get it :(

>>generated defining HAVE_GAI_STRERROR to 1

>You could have a peek in config.log and see config.log which
>diagnostics the gcc spews out there.

Attached the program that configure generates to detect gai_strerror. For mingw 
gai_strerror is defined inline in header <ws2tcpip.h>

>> 7) The -lpthreadVC2 is correct, what mingw doesn't like (I don't know why) 
>> is the -I and -L syntax with $(top_srcdir). I overcome this issue I put the 
>> full path of pthread dir (i.e. -I/home/Administrator/sofia-sip/win32/pthread 
>> and -L/home/Administrator/sofia-sip/win32/pthread) in sac-general.m4

>Do you use msys or cygwin to run configure?

msys

>There is also some problems with thread-specific storage in
>su_uniqueid.c. Currently, I plan to solve the issue with pthread_once,
>pthread_key and a cleanup function declared with GCC
>__attribute__((destructor)) on Unix systems. I plan to call the
>destructor fucntion from a DllMain() function in win32/64, but perhaps
>someone more familiar with mingw could tell me how mingw gcc and
>runtime implements __attribute__((destructor)) and what happens if
>sofia-sip has defined its own DllMain()?

I saw :( thread is ignored by mingw...What do you mean by "has defined its own 
DllMain()" ? If you don't write it, it doesn't have it..

Thanks again,
Filippo

Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone 
indicate. La diffusione, copia o qualsiasi altra azione derivante dalla 
conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate 
ricevuto questo documento per errore siete cortesemente pregati di darne 
immediata comunicazione al mittente e di provvedere alla sua distruzione, 
Grazie.

This e-mail and any attachments is confidential and may contain privileged 
information intended for the addressee(s) only. Dissemination, copying, 
printing or use by anybody else is unauthorised. If you are not the intended 
recipient, please delete this message and any attachments and advise the sender 
by return e-mail, Thanks.

/* confdefs.h.  */
#define PACKAGE_NAME "sofia-sip"
#define PACKAGE_TARNAME "sofia-sip"
#define PACKAGE_VERSION "1.12.10devel"
#define PACKAGE_STRING "sofia-sip 1.12.10devel"
#define PACKAGE_BUGREPORT ""
#define PACKAGE "sofia-sip"
#define VERSION "1.12.10devel"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define __EXTENSIONS__ 1
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1
#define HAVE_MINGW 1
#define HAVE_WIN32 1
#define LT_OBJDIR ".libs/"
#define TIME_WITH_SYS_TIME 1
#define HAVE_FUNC 1
#define HAVE_FUNCTION 1
#define SU_HAVE_SYS_TYPES 1
#define SU_HAVE_STDINT 1
#define SU_HAVE_INTTYPES 1
#define SU_HAVE_PTHREADS 1
#define su_inline static inline
#define SU_INLINE inline
#define SU_HAVE_INLINE 1
#define SU_INLINE_TAG_CAST 1
#define SOFIA_ISIZE_T int
#define ISIZE_MAX INT_MAX
#define SOFIA_ISSIZE_T int
#define ISSIZE_MAX INT_MAX
#define SOFIA_USIZE_T unsigned
#define USIZE_MAX UINT_MAX
#define HAVE_UNISTD_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_FCNTL_H 1
#define HAVE_DIRENT_H 1
#define HAVE_WINSOCK2_H 1
#define HAVE_WIN32 1
#define SU_HAVE_WINSOCK 1
#define SU_HAVE_WINSOCK2 1
#define SU_HAVE_SOCKADDR_STORAGE 1
#define HAVE_ADDRINFO 1
#define HAVE_GETADDRINFO 1
#define HAVE_FREEADDRINFO 1
#define SU_HAVE_ADDRINFO 1
#define HAVE_WINDEF_H 1
#define HAVE_WS2TCPIP_H 1
#define HAVE_FILETIME 1
#define C_ALLOCA 1
#define STACK_DIRECTION -1
/* end confdefs.h.  */
/* Define gai_strerror to an innocuous variant, in case <limits.h> declares 
gai_strerror.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gai_strerror innocuous_gai_strerror

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gai_strerror (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gai_strerror

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gai_strerror ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_gai_strerror || defined __stub___gai_strerror
choke me
#endif

int
main ()
{
return gai_strerror ();
  ;
}
  return 0;
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to