[Asterisk-Users] Re: oh323 compile problem in FreeBSD

Ganbold Tsagaankhuu ganbold at gmail.com
Fri May 13 01:26:50 MST 2005


Following is the errors when I tried to compile oh323 in FreeBSD 5.3.
Asterisk is updated from cvs.

asterisk# gmake
for x in wrapper asterisk-driver; do gmake -C $x build || exit 1 ; done
make: illegal option -- -
usage: make [-BPSXeiknqrstv] [-C directory] [-D variable] [-d flags]
            [-E variable] [-f makefile] [-I directory] [-j max_jobs]
            [-m directory] [-V variable] [variable=value] [target ...]
make: illegal option -- -
usage: make [-BPSXeiknqrstv] [-C directory] [-D variable] [-d flags]
            [-E variable] [-f makefile] [-I directory] [-j max_jobs]
            [-m directory] [-V variable] [variable=value] [target ...]
gmake[1]: Entering directory `/usr/home/tsgan/asterisk-oh323-0.7.1/wrapper'
./check_ver /usr/home/tsgan/pwlib pwlib
./check_ver /usr/home/tsgan/openh323 openh323
g++  -Wall -x c++ -Os -DWRAPTRACING -DWRAPTRACING_LEVEL=5
-DPWLIBVERSION=\"1.6.6\" -DOPENH323VERSION=\"1.13.5\" 
-I/usr/home/tsgan/pwlib/include/ptlib/unix
-I/usr/home/tsgan/pwlib/include -I/usr/home/tsgan/openh323/include
-I/usr/home/tsgan/openh323/include/openh323 -I../asterisk-driver -c
wrapper_misc.cxx -o wrapper_misc.o
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:169,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pdirect.h:78: error:
expected unqualified-id before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pdirect.h:78: error:
expected `,' or `;' before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pdirect.h:80: error:
expected constructor, destructor, or type conversion before '*' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pdirect.h:80: error:
expected `,' or `;' before '*' token
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:181,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/config.h:53: error:
expected unqualified-id before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/config.h:53: error:
expected `,' or `;' before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/config.h:55: error:
expected class-name before '(' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/config.h:55: error:
expected `,' or `;' before '(' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/config.h:57: error:
expected unqualified-id before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/config.h:57: error:
expected `,' or `;' before "protected"
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:187,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/args.h:121: error: expected
class-name before '{' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:122: error: `PObject' has
not been declared
/usr/home/tsgan/pwlib/include/ptlib/args.h:122: error: ISO C++ forbids
declaration of `PCLASSINFO' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:122: error: ISO C++ forbids
declaration of `parameter' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:147: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:153: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:156: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:162: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:162: error:
`PArgList::PArgList(int)' and `PArgList::PArgList(int)' cannot be
overloaded
/usr/home/tsgan/pwlib/include/ptlib/args.h:177: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:182: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:189: error: variable or
field `PrintOn' declared void
/usr/home/tsgan/pwlib/include/ptlib/args.h:189: error: `PrintOn'
declared as a `virtual' field
/usr/home/tsgan/pwlib/include/ptlib/args.h:189: error: expected `;'
before '(' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:196: error: variable or
field `ReadFrom' declared void
/usr/home/tsgan/pwlib/include/ptlib/args.h:196: error: `ReadFrom'
declared as a `virtual' field
/usr/home/tsgan/pwlib/include/ptlib/args.h:196: error: expected `;'
before '(' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:206: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:207: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:215: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:216: error: ISO C++ forbids
declaration of `PStringArray' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:216: error: `void
PArgList::SetArgs(int)' and `void PArgList::SetArgs(int)' cannot be
overloaded
/usr/home/tsgan/pwlib/include/ptlib/args.h:249: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:254: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:273: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:274: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:290: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:291: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:301: error: `PString' does
not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:306: error: `PString' does
not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:311: error: `PString' does
not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:329: error: `PStringArray'
does not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:338: error: `PString' does
not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:347: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:347: error: expected `;'
before "operator"
/usr/home/tsgan/pwlib/include/ptlib/args.h:388: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:389: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:397: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:398: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:403: error: `PStringArray'
does not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:405: error: `PString' does
not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:407: error: `PStringArray'
does not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:409: error: `PIntArray'
does not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:411: error: `PStringArray'
does not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:413: error: `PIntArray'
does not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:418: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:418: error: ISO C++ forbids
declaration of `PIntArray' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:420: error: `PString' does
not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:429: error: ISO C++ forbids
declaration of `PCLASSINFO' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:454: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:455: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:465: error: `PString' does
not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:470: error: `PString' does
not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:475: error: `PString' does
not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:490: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:491: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:496: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:497: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:501: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:501: error: expected `;'
before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:506: error: expected `;'
before "void"
/usr/home/tsgan/pwlib/include/ptlib/args.h:507: error: expected `,' or
`...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:508: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:513: error: ISO C++ forbids
declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/args.h:513: error: expected `;'
before '&' token
/usr/home/tsgan/pwlib/include/ptlib/args.h:517: error: expected `;'
before "protected"
/usr/home/tsgan/pwlib/include/ptlib/args.h:518: error: `PString' does
not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:519: error: `PConfig' does
not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:520: error: `PString' does
not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h:521: error: `PString' does
not name a type
/usr/home/tsgan/pwlib/include/ptlib/args.h: In member function `void
PConfigArgs::SetSectionName(int)':
/usr/home/tsgan/pwlib/include/ptlib/args.h:497: error: `sectionName'
undeclared (first use this function)
/usr/home/tsgan/pwlib/include/ptlib/args.h:497: error: (Each
undeclared identifier is reported only once for each function it
appears in.)
/usr/home/tsgan/pwlib/include/ptlib/args.h:497: error: `section'
undeclared (first use this function)
/usr/home/tsgan/pwlib/include/ptlib/args.h: In member function `void
PConfigArgs::SetNegationPrefix(int)':
/usr/home/tsgan/pwlib/include/ptlib/args.h:508: error:
`negationPrefix' undeclared (first use this function)
/usr/home/tsgan/pwlib/include/ptlib/args.h:508: error: `prefix'
undeclared (first use this function)
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:193,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h: At global scope:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h:145: error:
expected unqualified-id before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h:145: error:
expected `,' or `;' before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h:150: error:
expected `,' or `...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h:150: error:
ISO C++ forbids declaration of `PTimeInterval' with no type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h:156: error:
expected `,' or `...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h:157: error:
ISO C++ forbids declaration of `PTimeInterval' with no type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h:159: error:
non-member function `void PXAbortBlock()' cannot have `const' method
qualifier
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h:163: error:
expected unqualified-id before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h:163: error:
expected `,' or `;' before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h:173: error:
`Priority' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h:185: error:
`friend' can only be specified inside a class
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h:186: error:
friend declaration not in class definition
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:199,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:124: error:
expected constructor, destructor, or type conversion before '(' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:124: error:
expected `,' or `;' before '(' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:129: error:
expected unqualified-id before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:129: error:
expected `,' or `;' before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:131: error:
`friend' can only be specified inside a class
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:132: error:
friend declaration not in class definition
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:133: error:
`friend' can only be specified inside a class
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:135: error:
expected class-name before '(' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:135: error:
expected `,' or `;' before '(' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:137: error:
`PDirectory' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:138: error:
non-member function `char** PXGetArgv()' cannot have `const' method
qualifier
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h: In function
`char** PXGetArgv()':
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:138: error:
`p_argv' undeclared (first use this function)
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h: At global scope:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:139: error:
non-member function `int PXGetArgc()' cannot have `const' method
qualifier
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h: In function
`int PXGetArgc()':
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:139: error:
`p_argc' undeclared (first use this function)
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h: At global scope:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:140: error:
non-member function `char** PXGetEnvp()' cannot have `const' method
qualifier
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h: In function
`char** PXGetEnvp()':
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:140: error:
`p_envp' undeclared (first use this function)
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h: At global scope:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:142: error:
friend declaration not in class definition
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:143: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:144: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:148: error:
expected `,' or `...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:148: error:
ISO C++ forbids declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:150: error:
expected unqualified-id before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:150: error:
expected `,' or `;' before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:154: error:
expected `,' or `...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:154: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:154: error:
ISO C++ forbids declaration of `PString' with no type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:157: error:
expected unqualified-id before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:157: error:
expected `,' or `;' before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:159: error:
expected constructor, destructor, or type conversion before '*' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:159: error:
expected `,' or `;' before '*' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:164: error:
expected unqualified-id before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:164: error:
expected `,' or `;' before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:167: error:
expected unqualified-id before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:167: error:
expected `,' or `;' before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:169: error:
`ThreadDict' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:170: error:
`PMutex' does not name a type
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:205,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/semaphor.h:101: error:
expected unqualified-id before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/semaphor.h:101: error:
expected `,' or `;' before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/semaphor.h:103: error:
non-member function `unsigned int GetMaxCount()' cannot have `const'
method qualifier
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/semaphor.h: In function
`unsigned int GetMaxCount()':
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/semaphor.h:103: error:
`maxCountVar' undeclared (first use this function)
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/semaphor.h: At global scope:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/semaphor.h:105: error:
expected unqualified-id before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/semaphor.h:105: error:
expected `,' or `;' before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/semaphor.h:107: error:
`unsigned int maxCountVar' used prior to declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/semaphor.h:115: error:
non-member function `PXClass GetSemClass()' cannot have `const' method
qualifier
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/semaphor.h:117: error:
expected unqualified-id before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/semaphor.h:117: error:
expected `,' or `;' before "protected"
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:211,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:111: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:112: error:
expected `,' or `...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:112: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:112: error: ISO
C++ forbids declaration of `PTimeInterval' with no type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:113: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:114: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:114: error:
non-member function `BOOL WillBlock()' cannot have `const' method
qualifier
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:116: error:
expected unqualified-id before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:116: error:
expected `,' or `;' before "protected"
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:217,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:60: error:
expected unqualified-id before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:60: error:
expected `,' or `;' before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:62: error:
expected `,' or `...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:62: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:62: error:
ISO C++ forbids declaration of `PTimeInterval' with no type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:63: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:64: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:64: error:
non-member function `BOOL WillBlock()' cannot have `const' method
qualifier
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:65: error:
expected unqualified-id before "private"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:65: error:
expected `,' or `;' before "private"
In file included from /usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:83,
                 from /usr/home/tsgan/pwlib/include/ptlib.h:223,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:111: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:112: error:
expected `,' or `...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:112: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:112: error: ISO
C++ forbids declaration of `PTimeInterval' with no type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:113: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:114: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:114: error:
non-member function `BOOL WillBlock()' cannot have `const' method
qualifier
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:116: error:
expected unqualified-id before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:116: error:
expected `,' or `;' before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:121: error:
redefinition of `PINDEX lockCount'
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/mutex.h:121: error:
`PINDEX lockCount' previously declared here
In file included from /usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:84,
                 from /usr/home/tsgan/pwlib/include/ptlib.h:223,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:60: error:
expected unqualified-id before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:60: error:
expected `,' or `;' before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:62: error:
expected `,' or `...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:62: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:62: error:
ISO C++ forbids declaration of `PTimeInterval' with no type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:63: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:64: error:
virtual outside class declaration
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:64: error:
non-member function `BOOL WillBlock()' cannot have `const' method
qualifier
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:65: error:
expected unqualified-id before "private"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/syncpoint.h:65: error:
expected `,' or `;' before "private"
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:223,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:108: error: expected
class-name before '{' token
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:109: error:
`PSyncPoint' has not been declared
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:109: error: ISO C++
forbids declaration of `PCLASSINFO' with no type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:109: error: ISO C++
forbids declaration of `parameter' with no type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:124: error: expected
`,' or `...' before '&' token
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:124: error: ISO C++
forbids declaration of `PTimeInterval' with no type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:134: error:
`PSyncPoint' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:144: error: expected
class-name before '{' token
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:145: error: `PMutex'
has not been declared
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:145: error: ISO C++
forbids declaration of `PCLASSINFO' with no type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:145: error: ISO C++
forbids declaration of `parameter' with no type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:172: error:
`PSyncPoint' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:180: error: ISO C++
forbids declaration of `PCLASSINFO' with no type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:180: error: cannot
declare parameter `<anonymous>' to be of type `PCondMutex'
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:180: error:   because
the following virtual functions are abstract:
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:163: error:  virtual
BOOL PCondMutex::Condition()
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:214: error: variable or
field `PrintOn' declared void
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:214: error: expected
`;' before '(' token
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:292: error: expected
class-name before '{' token
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:293: error: `PObject'
has not been declared
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:293: error: ISO C++
forbids declaration of `PCLASSINFO' with no type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:293: error: ISO C++
forbids declaration of `parameter' with no type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:344: error:
`PSemaphore' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:345: error: `PMutex'
does not name a type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:347: error: `PMutex'
does not name a type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:349: error:
`PSemaphore' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:350: error: `PMutex'
does not name a type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:354: error: expected
class-name before '{' token
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:355: error: `PObject'
has not been declared
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:355: error: ISO C++
forbids declaration of `PCLASSINFO' with no type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:355: error: ISO C++
forbids declaration of `parameter' with no type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:360: error: ISO C++
forbids declaration of `PDictionary' with no type
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:360: error: expected
`;' before '<' token
/usr/home/tsgan/pwlib/include/ptlib/syncthrd.h:361: error: `PMutex'
does not name a type
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:229,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/dynalink.h:37: error:
expected unqualified-id before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/dynalink.h:37: error:
expected `,' or `;' before "protected"
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:235,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:109: error:
expected unqualified-id before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:109: error:
expected `,' or `;' before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:117: error:
expected unqualified-id before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:117: error:
expected `,' or `;' before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:121: error:
`PString' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:122: error:
`PMutex' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:123: error:
`PXBlockType' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:124: error:
expected constructor, destructor, or type conversion before '*' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:124: error:
expected `,' or `;' before '*' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:125: error:
expected constructor, destructor, or type conversion before '*' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:125: error:
expected `,' or `;' before '*' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:126: error:
`PMutex' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:127: error:
expected constructor, destructor, or type conversion before '*' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:127: error:
expected `,' or `;' before '*' token
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/channel.h:128: error:
`PMutex' does not name a type
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:241,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:76: error: expected
class-name before '{' token
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:77: error: `PChannel'
has not been declared
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:77: error: ISO C++
forbids declaration of `PCLASSINFO' with no type
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:77: error: ISO C++
forbids declaration of `parameter' with no type
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:101: error: `Comparison'
does not name a type
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:116: error: `PString'
does not name a type
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:182: error: `Shutdown'
declared as a `virtual' field
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:182: error: expected `;'
before '(' token
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:195: error: ISO C++
forbids declaration of `PChannel' with no type
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:195: error: `PChannel'
declared as a `virtual' field
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:195: error: expected `;'
before '*' token
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:205: error: ISO C++
forbids declaration of `PChannel' with no type
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:205: error: `PChannel'
declared as a `virtual' field
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:205: error: expected `;'
before '*' token
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:212: error: `PString'
does not name a type
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:226: error: expected `;'
before '(' token
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:241: error: expected `;'
before '(' token
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:258: error: expected `;'
before '(' token
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:272: error: ISO C++
forbids declaration of `PChannel' with no type
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:272: error: expected `;'
before '*' token
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:279: error: expected `;'
before '(' token
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:290: error: ISO C++
forbids declaration of `PChannel' with no type
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:290: error: expected `;'
before '*' token
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:297: error: expected `;'
before '(' token
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:320: error: ISO C++
forbids declaration of `PChannel' with no type
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:320: error: expected `;'
before '*' token
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:326: error: ISO C++
forbids declaration of `PChannel' with no type
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:326: error: expected `;'
before '*' token
/usr/home/tsgan/pwlib/include/ptlib/indchan.h:76: warning: `class
PIndirectChannel' has virtual functions but non-virtual destructor
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:265,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/conchan.h:51: error:
expected unqualified-id before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/conchan.h:51: error:
expected `,' or `;' before "public"
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:271,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/sound.h:106: error:
expected unqualified-id before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/sound.h:106: error:
expected `,' or `;' before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/sound.h:111: error:
expected unqualified-id before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/sound.h:111: error:
expected `,' or `;' before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/sound.h:114: error:
`PMutex' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/sound.h:116: error:
`Directions' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/sound.h:117: error:
`PString' does not name a type
In file included from /usr/home/tsgan/pwlib/include/ptlib.h:276,
                 from wrapper_misc.hxx:35,
                 from wrapper_misc.cxx:34:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/video.h:63: error:
expected unqualified-id before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/video.h:63: error:
expected `,' or `;' before "public"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/video.h:66: error:
`PString' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/video.h:69: error:
`PString' does not name a type
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/video.h:72: error:
expected unqualified-id before "protected"
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/video.h:72: error:
expected `,' or `;' before "protected"
In file included from wrapper_misc.cxx:34:
wrapper_misc.hxx:61: error: expected class-name before '{' token
wrapper_misc.hxx:63: error: `PMutex' has not been declared
wrapper_misc.hxx:63: error: ISO C++ forbids declaration of
`PCLASSINFO' with no type
wrapper_misc.hxx:63: error: ISO C++ forbids declaration of `parameter'
with no type
wrapper_misc.hxx:73: error: `PString' does not name a type
wrapper_misc.cxx: In constructor `WrapMutex::WrapMutex(char*)':
wrapper_misc.cxx:51: error: class `WrapMutex' does not have any field
named `PMutex'
wrapper_misc.cxx:53: error: `name' undeclared (first use this function)
wrapper_misc.cxx:53: error: `PString' undeclared (first use this function)
wrapper_misc.cxx:54: error: `cout' undeclared (first use this function)
wrapper_misc.cxx:54: error: 'class WrapMutex' has no member named 'Class'
wrapper_misc.cxx:54: error: `endl' undeclared (first use this function)
wrapper_misc.cxx: In member function `BOOL WrapMutex::Wait(const
char*, int, const char*, int)':
wrapper_misc.cxx:59: error: `PTimeInterval' undeclared (first use this function)
wrapper_misc.cxx:59: error: expected `;' before "timeout"
wrapper_misc.cxx:62: error: `timeout' undeclared (first use this function)
wrapper_misc.cxx:66: error: `cout' undeclared (first use this function)
wrapper_misc.cxx:66: error: 'class WrapMutex' has no member named 'Class'
wrapper_misc.cxx:66: error: `name' undeclared (first use this function)
wrapper_misc.cxx:66: error: `endl' undeclared (first use this function)
wrapper_misc.cxx:68: error: `PMutex' has not been declared
wrapper_misc.cxx:69: error: 'class WrapMutex' has no member named 'Class'
wrapper_misc.cxx:73: error: 'class WrapMutex' has no member named 'Class'
wrapper_misc.cxx: In member function `void WrapMutex::Signal(const
char*, int, const char*)':
wrapper_misc.cxx:81: error: `PMutex' has not been declared
wrapper_misc.cxx:81: error: no matching function for call to
`WrapMutex::Signal()'
wrapper_misc.cxx:80: note: candidates are: void
WrapMutex::Signal(const char*, int, const char*)
wrapper_misc.cxx:82: error: `cout' undeclared (first use this function)
wrapper_misc.cxx:82: error: 'class WrapMutex' has no member named 'Class'
wrapper_misc.cxx:82: error: `name' undeclared (first use this function)
wrapper_misc.cxx:82: error: `endl' undeclared (first use this function)
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h: At global scope:
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/thread.h:170: warning:
'void PX_ThreadEnd(void*)' declared `static' but never defined
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:147:
warning: 'void PXShowSystemWarning(PINDEX)' declared `static' but
never defined
/usr/home/tsgan/pwlib/include/ptlib/unix/ptlib/pprocess.h:148:
warning: 'void PXShowSystemWarning(PINDEX, int)' declared `static' but
never defined
gmake[1]: *** [wrapper_misc.o] Error 1
gmake[1]: Leaving directory `/usr/home/tsgan/asterisk-oh323-0.7.1/wrapper'
gmake: *** [subdirs_build] Error 1
asterisk#



On 5/9/05, Michael Manousos <manousos at inaccessnetworks.com> wrote:
> 
> Hi,
> 
> I have never tried it on FreeBSD. Post it on the bugtracker and
> will see what can be done about it. Normally, just compilation
> flags and options need to change to make it work on FreeBSD.
> 
> Regards,
> Michael.
> 
> Ganbold Tsagaankhuu wrote:
> > Hi,
> >
> > I'm trying to compile asterisk-oh323-0.7.1 in FreeBSD 5.3.
> > I tried to use gmake but it exits with too many errors.
> >
> > Did you compile before oh323 in FreeBSD?
> > How should I compile it under FreeBSD?
> >
> > thanks,
> >
> > Ganbold
> 
>



More information about the asterisk-users mailing list