Opened 5 months ago

Closed 5 months ago

#70272 closed defect (fixed)

pwlib @1.5.2: error: ISO C++ forbids declaration of ‘PTimerList’ with no type

Reported by: barracuda156 Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: haspatch Cc:
Port: pwlib

Description

:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/src/ptlib/unix'
:info:build c++ -DP_MACOSX=1000d2 -DNO_LONG_DOUBLE -D_REENTRANT -Wall  -g -D_DEBUG -DPMEMORY_CHECK=1 -DPHAS_TEMPLATES -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix -I/usr/include/pwlib -I/opt/local/include -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include  -fno-common -dynamic -DPTRACING=1 -I/opt/local/include -x c++ -c ../../ptclib/asner.cxx -o /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/lib/obj_Darwin_ppc_d/asner.o
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../contain.h:222,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/contain.h:120,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib.h:139,
:info:build                  from ../../ptclib/qchannel.cxx:40:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/object.h: In constructor ‘PNotifierFunction::PNotifierFunction(void*)’:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/object.h:2143: warning: the address of ‘obj’ will always evaluate as ‘true’
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../contain.h:222,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/contain.h:120,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib.h:139,
:info:build                  from ../../ptclib/modem.cxx:51:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/object.h: In constructor ‘PNotifierFunction::PNotifierFunction(void*)’:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/object.h:2143: warning: the address of ‘obj’ will always evaluate as ‘true’
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../contain.h:222,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/contain.h:120,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib.h:139,
:info:build                  from ../../ptclib/ipacl.cxx:75:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/object.h: In constructor ‘PNotifierFunction::PNotifierFunction(void*)’:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/object.h:2143: warning: the address of ‘obj’ will always evaluate as ‘true’
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../contain.h:222,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/contain.h:120,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib.h:139,
:info:build                  from ../../ptclib/delaychan.cxx:50:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/object.h: In constructor ‘PNotifierFunction::PNotifierFunction(void*)’:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/object.h:2143: warning: the address of ‘obj’ will always evaluate as ‘true’
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../contain.h:222,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/contain.h:120,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib.h:139,
:info:build                  from ../../ptclib/asner.cxx:290:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/object.h: In constructor ‘PNotifierFunction::PNotifierFunction(void*)’:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/object.h:2143: warning: the address of ‘obj’ will always evaluate as ‘true’
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../contain.h:222,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/contain.h:120,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib.h:139,
:info:build                  from ../../ptclib/asner.cxx:290:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/object.h: In constructor ‘PNotifierFunction::PNotifierFunction(void*)’:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/object.h:2143: warning: the address of ‘obj’ will always evaluate as ‘true’
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/timer.h:65,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib.h:156,
:info:build                  from ../../ptclib/modem.cxx:51:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../timer.h: At global scope:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../timer.h:351: error: ISO C++ forbids declaration of ‘PTimerList’ with no type
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../timer.h:351: error: expected ‘;’ before ‘*’ token
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/timer.h:65,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib.h:156,
:info:build                  from ../../ptclib/qchannel.cxx:40:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../timer.h: At global scope:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../timer.h:351: error: ISO C++ forbids declaration of ‘PTimerList’ with no type
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../timer.h:351: error: expected ‘;’ before ‘*’ token
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/timer.h:65,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib.h:156,
:info:build                  from ../../ptclib/ipacl.cxx:75:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../timer.h: At global scope:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../timer.h:351: error: ISO C++ forbids declaration of ‘PTimerList’ with no type
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../timer.h:351: error: expected ‘;’ before ‘*’ token
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/timer.h:65,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib.h:156,
:info:build                  from ../../ptclib/delaychan.cxx:50:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../timer.h: At global scope:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../timer.h:351: error: ISO C++ forbids declaration of ‘PTimerList’ with no type
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../timer.h:351: error: expected ‘;’ before ‘*’ token
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/../../pprocess.h:782,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/pprocess.h:132,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib.h:192,
:info:build                  from ../../ptclib/modem.cxx:51:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/pprocess.h:181: error: ISO C++ forbids declaration of ‘PHouseKeepingThread’ with no type
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_pwlib/pwlib/work/pwlib/include/ptlib/unix/ptlib/pprocess.h:181: error: expected ‘;’ before ‘*’ token

Same error with gcc13.

Attachments (1)

main.log (52.1 KB) - added by barracuda156 5 months ago.

Download all attachments as: .zip

Change History (3)

Changed 5 months ago by barracuda156

Attachment: main.log added

comment:1 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Summary: pwlib fails to build: error: expected ‘;’ before ‘*’ tokenpwlib @1.5.2: error: ISO C++ forbids declaration of ‘PTimerList’ with no type

The port isn't UsingTheRightCompiler (nor -arch flags) so any attempts to use a different compiler via configure.compiler= won't work.

I don't see a -std= flag so it's using whatever C++ standard c++ on your system (presumably g++-4.2) uses by default.

This software was released in 2003. The port has never been updated since it was originally added in #1663. The homepage hasn't existed in over 15 years. Here's the last archived version.

This makes me think that even g++-4.2 may be too new to build this ancient software. (The current version of gcc at the time was 3.3.)

The error you're hitting so far does not appear to be related to openssl, but software this old is almost certainly not compatible with openssl 3 which it declares a dependency on. Possibly it could work if the openssl portgroup were used and it were made to use an earlier openssl instead.

I reran buildbot builds. On 10.6 we see the same error: ISO C++ forbids declaration of ‘PTimerList’ with no type error you did. On 10.7 and on arm64, error: unknown type name 'PTimerList'. On 10.8 and later on Intel, clang: error: unknown argument: '-m486'.

So this has evidently never compiled on an Intel Mac and nobody has reported this before making me think nobody needs this software. I assume that you don't need this software either and are just trying to build all ports and reporting problems you find.

A newer version 1.12.0 from 2007 is available however it also says that the whole openh323 project has been superseded by opalvoip and h323plus.

I suggest deleting this port. New ports for opalvoip and h323plus can be created later if there is any desire for them.

pwlib is the only port mentioning openh323.

comment:2 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 262f46221e9bcc9eb821d3e4b68297e1e360bec0/macports-ports (master):

pwlib: Delete ancient port

It doesn't look like this port has ever been able to compile on Intel
systems. The openh323 project of which it is a part has been superseded
by other projects.

Closes: #70272

Note: See TracTickets for help on using tickets.