Google
  Web www.spinics.net

Re: [Openh323-devel] pwlib compile error

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


Vyacheslav

The problem I think stems from my recent commit of ODBC support in Linux. 
Unfortunately unixODBC defines DWORD slightly differently to pwlib and it 
has cause some conflicts, I had asked Michal Z (who actually did the port) 
to check the the commits a couple of days ago however either he missed it 
or hasn't fully checked it yet. Although looking at the patch Vyacheslav 
suggests should rectify the problem. Bleeding edge... :-)

If you compile pwlib without ODBC support it should be fine as the DWORD 
definition change is P_ODBC dependent.

Simon

At 05:02 PM 24/04/2007, Vyacheslav Frolov wrote:
>It can be compiled if configure(1.150) replace by configure(1.145).
>
>Also some tests (for example -Wall test) expects USE_GCC=yes (in 
>configure(1.149) changed to USE_GCC=1).
>
>
>Vyacheslav Frolov wrote:
> > It looks more global :(
> >
> > g++  -DP_USE_PRAGMA -D_REENTRANT -fno-exceptions -fPIC -DPIC -DPTRACING 
> -I/home/frolov/OpenH323/openh323/include
> > -I/home/frolov/OpenH323/pwlib/include -Os   -felide-constructors 
> -Wreorder -c transports.cxx -o
> > /home/frolov/OpenH323/openh323/lib/obj_linux_x86_r/transports.o
> > transports.cxx: In member function `virtual BOOL 
> H323TransportUDP::DiscoverGatekeeper(H323Gatekeeper&, H323RasPDU&,
> > const H323TransportAddress&)':
> > transports.cxx:2180: error: ambiguous overload for 'operator==' in 
> 'destAddr == -1u'
> > transports.cxx:2180: note: candidates are: operator==(DWORD, unsigned 
> int) <built-in>
> > /home/frolov/OpenH323/pwlib/include/ptlib/ipsock.h:407: 
> note:                 bool PIPSocket::Address::operator==(const
> > PIPSocket::Address&) const
> > /home/frolov/OpenH323/pwlib/include/ptlib/ipsock.h:415: 
> note:                 bool PIPSocket::Address::operator==(DWORD)
> > const
> > /home/frolov/OpenH323/pwlib/include/ptlib/ipsock.h:433: 
> note:                 bool PIPSocket::Address::operator==(int) const
> > transports.cxx:2202: error: ambiguous overload for 'operator==' in 
> 'destAddr == -1u'
> > transports.cxx:2202: note: candidates are: operator==(DWORD, unsigned 
> int) <built-in>
> > /home/frolov/OpenH323/pwlib/include/ptlib/ipsock.h:407: 
> note:                 bool PIPSocket::Address::operator==(const
> > PIPSocket::Address&) const
> > /home/frolov/OpenH323/pwlib/include/ptlib/ipsock.h:415: 
> note:                 bool PIPSocket::Address::operator==(DWORD)
> > const
> > /home/frolov/OpenH323/pwlib/include/ptlib/ipsock.h:433: 
> note:                 bool PIPSocket::Address::operator==(int) const
> > transports.cxx:2209: error: ambiguous overload for 'operator==' in 
> 'destAddr == -1u'
> > transports.cxx:2209: note: candidates are: operator==(DWORD, unsigned 
> int) <built-in>
> > /home/frolov/OpenH323/pwlib/include/ptlib/ipsock.h:407: 
> note:                 bool PIPSocket::Address::operator==(const
> > PIPSocket::Address&) const
> > /home/frolov/OpenH323/pwlib/include/ptlib/ipsock.h:415: 
> note:                 bool PIPSocket::Address::operator==(DWORD)
> > const
> > /home/frolov/OpenH323/pwlib/include/ptlib/ipsock.h:433: 
> note:                 bool PIPSocket::Address::operator==(int) const
> >
> >
> > Craig Southeren wrote:
> >
> >
> >>Vyacheslav Frolov wrote:
> >>
> >>
> >>>g++ (GCC) 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)
> >>>
> >>>g++ -DP_USE_PRAGMA -D_REENTRANT -fno-exceptions -fPIC -DPIC 
> -I/home/frolov/OpenH323/pwlib/include -Os  -DPTRACING=1
> >>>-felide-constructors -Wreorder -c ../../ptclib/ipacl.cxx -o 
> /home/frolov/OpenH323/pwlib/lib/obj_linux_x86_r/ipacl.o
> >>>../../ptclib/ipacl.cxx: In member function `virtual void 
> PIpAccessControlEntry::PrintOn(std::ostream&) const':
> >>>../../ptclib/ipacl.cxx:158: error: ambiguous overload for 'operator!=' 
> in '((const
> >>>PIpAccessControlEntry*)this)->PIpAccessControlEntry::mask != -1u'
> >>>../../ptclib/ipacl.cxx:158: note: candidates are: operator!=(DWORD, 
> unsigned int) <built-in>
> >>>/home/frolov/OpenH323/pwlib/include/ptlib/ipsock.h:408: 
> note:                 bool PIPSocket::Address::operator!=(const
> >>>PIPSocket::Address&) const
> >>>/home/frolov/OpenH323/pwlib/include/ptlib/ipsock.h:416: 
> note:                 bool PIPSocket::Address::operator!=(DWORD)
> >>>const
> >>>/home/frolov/OpenH323/pwlib/include/ptlib/ipsock.h:434: 
> note:                 bool PIPSocket::Address::operator!=(int) const
> >>>
> >>>
> >>>
> >>>Possible fix:
> >>>
> >>>----------
> >>>Index: ipacl.cxx
> >>>===================================================================
> >>>RCS file: /cvsroot/openh323/pwlib/src/ptclib/ipacl.cxx,v
> >>>diff -u -r1.16 ipacl.cxx
> >>>--- ipacl.cxx   26 Jan 2005 05:37:58 -0000      1.16
> >>>+++ ipacl.cxx   24 Apr 2007 07:06:15 -0000
> >>>@@ -155,7 +155,7 @@
> >>>     return;
> >>>   }
> >>>
> >>>-  if (mask != 0 && mask != 0xffffffff)
> >>>+  if (mask != 0 && mask != (DWORD)0xffffffff)
> >>>     strm << '/' << mask;
> >>> }
> >>>----------
> >>
> >>
> >>The fix looks fine to me, but I'm wondering why this has occurred now.
> >>What code has changed to make this error occur after all these years?
> >>
> >>    Craig
> >>
> >>-----------------------------------------------------------------------
> >>  Craig Southeren          Post Increment ­ VoIP Consulting and Software
> >>  craigs@xxxxxxxxxxxxxxxxxxxx                   www.postincrement.com.au
> >>
> >>  Phone:  +61 243654666      ICQ: #86852844
> >>  Fax:    +61 243656905      MSN: craig_southeren@xxxxxxxxxxx
> >>  Mobile: +61 417231046      Jabber: craigs@xxxxxxxxxx
> >>
> >>  "It takes a man to suffer ignorance and smile.
> >>   Be yourself, no matter what they say."   Sting
> >>
> >>
> >>-------------------------------------------------------------------------
> >>This SF.net email is sponsored by DB2 Express
> >>Download DB2 Express C - the FREE version of DB2 express and take
> >>control of your XML. No limits. Just data. Click to get it now.
> >>http://sourceforge.net/powerbar/db2/
> >>_______________________________________________
> >>Openh323-devel mailing list
> >>Openh323-devel@xxxxxxxxxxxxxxxxxxxxx
> >>https://lists.sourceforge.net/lists/listinfo/openh323-devel
> >>
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Openh323-devel mailing list
> > Openh323-devel@xxxxxxxxxxxxxxxxxxxxx
> > https://lists.sourceforge.net/lists/listinfo/openh323-devel
> >
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by DB2 Express
>Download DB2 Express C - the FREE version of DB2 express and take
>control of your XML. No limits. Just data. Click to get it now.
>http://sourceforge.net/powerbar/db2/
>_______________________________________________
>Openh323-devel mailing list
>Openh323-devel@xxxxxxxxxxxxxxxxxxxxx
>https://lists.sourceforge.net/lists/listinfo/openh323-devel



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Openh323-devel mailing list
Openh323-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openh323-devel


[Open H.323]     [IETF SIP]     [Gnu Gatekeeper]     [Asterisk PBX]     [Fedora Linux]     [Gimp]     [Yosemite News]     [Yosemite Photos]     [Yosemite Campsites]     [ISDN Cause Codes]

Add to Google Powered by Linux