pjsip1.0 rc3: compilation problem with visual studio 6.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 26, 2008 at 9:40 AM, Massimiliano Montevecchi <
massimiliano.montevecchi at elsagdatamat.com> wrote:

>  Hi.
>
>
>
> I have a compilation error with the latest pjsip release: 1.0 rc3.
>
> My build environment is base on Microsoft Visual C++ 6.0
>
>
>
> It seems that this pjsip release defines:
>
> #   define PJ_SOCK_HAS_GETADDRINFO  1
>
>
My fault. This should have been enabled only when IPv6 support is set, but a
checkin accidentally removed this check (line 56 of
include/pj/compat/socket.h should be "#if defined(_MSC_VER) &&
defined(PJ_HAS_IPV6) && PJ_HAS_IPV6!=0").

I'll fix that asap. And I think we've got too many build problems with this
release that it warrants an immediate rc4.

Cheers
 Benny



>
> In the previous release I didn't have any compilation problem.
>
> In attach you can find my config_site.h.
>
>
>
> Beat Regards
>
> Massimiliano
>
>
>
>
>
> Compilation Log:
>
>
>
> --------------------Configuration: pjlib - Win32
> Release--------------------
>
> Compiling...
>
> addr_resolv_sock.c
>
> C:\Programmi\Microsoft Visual Studio\VC98\INCLUDE\qos.h(236) : warning
> C4201: nonstandard extension used : nameless struct/union
>
> C:\Programmi\Microsoft Visual Studio\VC98\INCLUDE\qos.h(463) : warning
> C4201: nonstandard extension used : nameless struct/union
>
> C:\ANTS-Development\IMS\pjproject-1.0-rc3\pjlib\src\pj\addr_resolv_sock.c(64)
> : error C2079: 'hint' uses undefined struct 'addrinfo'
>
> C:\ANTS-Development\IMS\pjproject-1.0-rc3\pjlib\src\pj\addr_resolv_sock.c(97)
> : error C2224: left of '.ai_family' must have struct/union type
>
> C:\ANTS-Development\IMS\pjproject-1.0-rc3\pjlib\src\pj\addr_resolv_sock.c(99)
> : warning C4013: 'getaddrinfo' undefined; assuming extern returning int
>
> C:\ANTS-Development\IMS\pjproject-1.0-rc3\pjlib\src\pj\addr_resolv_sock.c(106)
> : error C2037: left of 'ai_next' specifies undefined struct/union 'addrinfo'
>
> C:\ANTS-Development\IMS\pjproject-1.0-rc3\pjlib\src\pj\addr_resolv_sock.c(108)
> : error C2037: left of 'ai_family' specifies undefined struct/union
> 'addrinfo'
>
> C:\ANTS-Development\IMS\pjproject-1.0-rc3\pjlib\src\pj\addr_resolv_sock.c(112)
> : error C2037: left of 'ai_canonname' specifies undefined struct/union
> 'addrinfo'
>
> C:\ANTS-Development\IMS\pjproject-1.0-rc3\pjlib\src\pj\addr_resolv_sock.c(113)
> : error C2037: left of 'ai_canonname' specifies undefined struct/union
> 'addrinfo'
>
> C:\ANTS-Development\IMS\pjproject-1.0-rc3\pjlib\src\pj\addr_resolv_sock.c(114)
> : warning C4047: 'function' : 'const char *' differs in levels of
> indirection from 'unsigned int '
>
> C:\ANTS-Development\IMS\pjproject-1.0-rc3\pjlib\src\pj\addr_resolv_sock.c(114)
> : warning C4024: 'strncpy' : different types for formal and actual parameter
> 2
>
> C:\ANTS-Development\IMS\pjproject-1.0-rc3\pjlib\src\pj\addr_resolv_sock.c(114)
> : error C2198: 'strncpy' : too few actual parameters
>
> C:\ANTS-Development\IMS\pjproject-1.0-rc3\pjlib\src\pj\addr_resolv_sock.c(122)
> : error C2037: left of 'ai_addr' specifies undefined struct/union 'addrinfo'
>
> C:\ANTS-Development\IMS\pjproject-1.0-rc3\pjlib\src\pj\addr_resolv_sock.c(122)
> : error C2037: left of 'ai_addrlen' specifies undefined struct/union
> 'addrinfo'
>
> C:\ANTS-Development\IMS\pjproject-1.0-rc3\pjlib\src\pj\addr_resolv_sock.c(122)
> : error C2198: 'pj_memcpy' : too few actual parameters
>
> C:\ANTS-Development\IMS\pjproject-1.0-rc3\pjlib\src\pj\addr_resolv_sock.c(130)
> : warning C4013: 'freeaddrinfo' undefined; assuming extern returning int
>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080926/7ca869ee/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux