Re: [OpenIndiana-discuss] compiling PODOFO

2024-01-05 Thread Goetz T. Fischer
maybe you have to set a different c++ standard. enable verbose build to see the 
actual g++ command.

On Fri, 5 Jan 2024 19:37:42 + (UTC), Apostolos Syropoulos via 
openindiana-discuss wrote:
> Hello,
> 
> I tried to compile PODOFO with gcc 13 and I get the following error:
> 
> 
> [ 65%] Building CXX object 
> test/unit/CMakeFiles/podofo-test.dir/ParserTest.cpp.o
> [ 65%] Building CXX object 
> test/unit/CMakeFiles/podofo-test.dir/TokenizerTest.cpp.o
> [ 66%] Building CXX object 
> test/unit/CMakeFiles/podofo-test.dir/StringTest.cpp.o
> In file included from /usr/include/cppunit/TestAssert.h:8,

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] compiling PODOFO

2024-01-05 Thread Apostolos Syropoulos via openindiana-discuss
Hello,

I tried to compile PODOFO with gcc 13 and I get the following error:


[ 65%] Building CXX object test/unit/CMakeFiles/podofo-test.dir/ParserTest.cpp.o
[ 65%] Building CXX object 
test/unit/CMakeFiles/podofo-test.dir/TokenizerTest.cpp.o
[ 66%] Building CXX object test/unit/CMakeFiles/podofo-test.dir/StringTest.cpp.o
In file included from /usr/include/cppunit/TestAssert.h:8,
from /usr/include/cppunit/TestCase.h:6,
from /usr/include/cppunit/TestCaller.h:5,
from /usr/include/cppunit/extensions/HelperMacros.h:9,
from /container/source/var/podofo-0.9.7/test/unit/StringTest.h:24,
from /container/source/var/podofo-0.9.7/test/unit/StringTest.cpp:21:
/usr/include/cppunit/tools/StringHelper.h: In instantiation of 'typename 
std::enable_if<(! std::is_enum<_Tp>::value), std::__cxx11::basic_string >::type 
CppUnit::StringHelper::toString(const T&) [with T = PoDoFo::PdfString; typename 
std::enable_if<(! std::is_enum<_Tp>::value), std::__cxx11::basic_string >::type 
= std::__cxx11::basic_string]':
/usr/include/cppunit/TestAssert.h:74:50: required from 'static std::string 
CppUnit::assertion_traits::toString(const T&) [with T = PoDoFo::PdfString; 
std::string = std::__cxx11::basic_string]'
/usr/include/cppunit/TestAssert.h:168:58: required from 'void 
CppUnit::assertEquals(const T&, const T&, SourceLine, const std::string&) [with 
T = PoDoFo::PdfString; std::string = std::__cxx11::basic_string]'
/container/source/var/podofo-0.9.7/test/unit/StringTest.cpp:182:5: required 
from here
/usr/include/cppunit/tools/StringHelper.h:25:9: error: no match for 
'operator<<' (operand types are 'CppUnit::OStringStream' {aka 
'std::__cxx11::basic_ostringstream'} and 'const PoDoFo::PdfString')
25 | ost << x;
| ^~~~
In file included from /usr/gcc/13/include/c++/13.2.0/istream:41,
from /usr/gcc/13/include/c++/13.2.0/sstream:40,
from /usr/include/cppunit/portability/Stream.h:283,
from /usr/include/cppunit/TestAssert.h:7:
/usr/gcc/13/include/c++/13.2.0/ostream:110:7: note: candidate: 
'std::basic_ostream<_CharT, _Traits>::__ostream_type& 
std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& 
()(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits; 
__ostream_type = std::basic_ostream]'
110 | operator<<(__ostream_type& (__pf)(__ostream_type&))
| ^~~~
/usr/gcc/13/include/c++/13.2.0/ostream:110:36: note: no known conversion for 
argument 1 from 'const PoDoFo::PdfString' to 
'std::basic_ostream::__ostream_type& ()(std::basic_ostream::__ostream_type&)' 
{aka 'std::basic_ostream& ()(std::basic_ostream&)'}
110 | operator<<(__ostream_type& (__pf)(__ostream_type&))
| ~~^~
/usr/gcc/13/include/c++/13.2.0/ostream:119:7: note: candidate: 
'std::basic_ostream<_CharT, _Traits>::__ostream_type& 
std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& ()(__ios_type&)) 
[with _CharT = char; _Traits = std::char_traits; __ostream_type = 
std::basic_ostream; __ios_type = std::basic_ios]'
119 | operator<<(__ios_type& (__pf)(__ios_type&))
| ^~~~
/usr/gcc/13/include/c++/13.2.0/ostream:119:32: note: no known conversion for 
argument 1 from 'const PoDoFo::PdfString' to 'std::basic_ostream::__ios_type& 
()(std::basic_ostream::__ios_type&)' {aka 'std::basic_ios& ()(std::basic_ios&)'}
119 | operator<<(__ios_type& (__pf)(__ios_type&))
| ~~^~
/usr/gcc/13/include/c++/13.2.0/ostream:129:7: note: candidate: 
'std::basic_ostream<_CharT, _Traits>::__ostream_type& 
std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& 
()(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits; 
__ostream_type = std::basic_ostream]'
129 | operator<<(ios_base& (__pf) (ios_base&))
| ^~~~
/usr/gcc/13/include/c++/13.2.0/ostream:129:30: note: no known conversion for 
argument 1 from 'const PoDoFo::PdfString' to 'std::ios_base& ()(std::ios_base&)'
129 | operator<<(ios_base& (__pf) (ios_base&))
| ^
/usr/gcc/13/include/c++/13.2.0/ostream:168:7: note: candidate: 
'std::basic_ostream<_CharT, _Traits>::__ostream_type& 
std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; 
_Traits = std::char_traits; __ostream_type = std::basic_ostream]'
168 | operator<<(long __n)
| ^~~~
/usr/gcc/13/include/c++/13.2.0/ostream:168:23: note: no known conversion for 
argument 1 from 'const PoDoFo::PdfString' to 'long int'
168 | operator<<(long __n)
| ~^~~
/usr/gcc/13/include/c++/13.2.0/ostream:172:7: note: candidate: 
'std::basic_ostream<_CharT, _Traits>::__ostream_type& 
std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT 
= char; _Traits = std::char_traits; __ostream_type = std::basic_ostream]'
172 | operator<<(unsigned long __n)
| ^~~~
/usr/gcc/13/include/c++/13.2.0/ostream:172:32: note: no known conversion for 
argument 1 from 'const PoDoFo::PdfString' to 'long unsigned int'
172 | operator<<(unsigned long __n)
| ~~^~~
/usr/gcc/13/include/c++/13.2.0/ostream:176:7: note: candidate: 
'std:

Re: [OpenIndiana-discuss] argon2 missing

2024-01-05 Thread Goetz T. Fischer
On Fri, 5 Jan 2024 19:07:03 +0100, Marcel Telka wrote:
> On Fri, Jan 05, 2024 at 07:04:39PM +0100, Goetz T. Fischer wrote:
>> # pkg verify argon2
>> PACKAGE STATUS
>> pkg://openindiana.org/security/argon2 ERROR
>> file: usr/bin/argon2
>> ERROR: Missing: regular file does not exist
>> file: usr/lib/amd64/libargon2.so
>> ERROR: Missing: regular file does not exist
>> file: usr/include/argon2.h
>> ERROR: Missing: regular file does not exist
>> 
>> a manual check confirmed that the files are indeed missing.
> 
> This is problem on your local machine. To fix run `pkg fix argon2`.

indeed, i thought pkg install would be enough. thanks!

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] argon2 missing

2024-01-05 Thread Marcel Telka
On Fri, Jan 05, 2024 at 07:04:39PM +0100, Goetz T. Fischer wrote:
> # pkg verify argon2
> PACKAGE STATUS
> pkg://openindiana.org/security/argon2ERROR
>   file: usr/bin/argon2
>   ERROR: Missing: regular file does not exist
>   file: usr/lib/amd64/libargon2.so
>   ERROR: Missing: regular file does not exist
>   file: usr/include/argon2.h
>   ERROR: Missing: regular file does not exist
> 
> a manual check confirmed that the files are indeed missing.

This is problem on your local machine.  To fix run `pkg fix argon2`.

-- 
+---+
| Marcel Telka   e-mail:   mar...@telka.sk  |
|homepage: http://telka.sk/ |
+---+

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] argon2 missing

2024-01-05 Thread Goetz T. Fischer
hi all,

i just noticed that argon2 is missing/broken:

# pkg install argon2
No updates necessary for this image.

# pkg verify argon2
PACKAGE STATUS
pkg://openindiana.org/security/argon2ERROR
file: usr/bin/argon2
ERROR: Missing: regular file does not exist
file: usr/lib/amd64/libargon2.so
ERROR: Missing: regular file does not exist
file: usr/include/argon2.h
ERROR: Missing: regular file does not exist

a manual check confirmed that the files are indeed missing.

--
R-A-C
Götz T. Fischer CertIT&Comp
+49(0)7225/98 98 79
g.fisc...@r-a-c.de
r-a-c.de

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss