Re: [OpenIndiana-discuss] Need some building expertise, Thank You.

2018-05-23 Thread Alexander Pyhalov

On 05/22/18 08:32 PM, Jason Martin wrote:

Please look over my attempt. Four WHY,s below.

First off it's up and running if you understand autotools, make and etc.

# Two patches; One is a ubuntu no gettext patch for configure.ac
# Do not know if it is even needed.


So why adding it?


CFLAGS += -fPIC


Why do we need global -fPIC flag?


CFLAGS += -Wno-error=format-nonliteral

LDFLAGS += -lm

# WHY do I need to pass this for plugins/parser-cxx?
CXXFLAGS += -D__cplusplus


Don't know, simple test shows that g++ 6 defines it

#if defined(__cplusplus)
#error "Defined"
#endif



# WHY Emulated forkpty happy with 64 but not 32?


Emulated forkpty() can have issues in XPG6 mode, check it carefully.


# WHY does subversion plugin build but links missing on publish?


How does link look like? How does it complain?
--
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department

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


Re: [OpenIndiana-discuss] Wine and recent Openindiana

2018-05-23 Thread openbabel

Has anyone managed to compile the latest versions 3.x of wine ?

regards,

Robert


On 22/05/2018 18:48, Apostolos Syropoulos via openindiana-discuss wrote:

Hi, can you rebuild it with -ggdb -O0 and resend the back trace?

$ gdb /opt/gnu/wine/bin/wine core
GNU gdb (GDB) 7.10.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-pc-solaris2.11".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /opt/gnu/wine/bin/wine...done.
[New LWP 1]
[New LWP 1]
[Thread debugging using libthread_db enabled]
[New Thread 1 (LWP 1)]
Core was generated by `wine DVD Shrink 3.2.exe'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xfeda902d in wine_set_fs (val=4103) at ../../include/wine/library.h:188
188 __DEFINE_SET_SEG(fs)
[Current thread is 3 (Thread 1 (LWP 1))]
(gdb) bt
#0  0xfeda902d in wine_set_fs (val=4103) at ../../include/wine/library.h:188
#1  wine_ldt_init_fs (sel=4103, entry=0x8047300) at ldt.c:433
#2  0x7ff7e046 in signal_init_thread (teb=0x3fff8000) at signal_i386.c:2547
#3  0x7ff8676a in thread_init () at thread.c:354
#4  0x7ff54872 in __wine_process_init () at loader.c:3341
#5  0xfedaa407 in wine_init (argc=2, argv=0x804787c, error=0x804740c "",
 error_size=1024) at loader.c:979
#6  0x0805146c in main (argc=2, argv=0x804787c) at main.c:258
(gdb)

Hope this helps!

A.S.

--
Apostolos Syropoulos
Xanthi, Greece
  
___

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



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


[OpenIndiana-discuss] mkvmerge fails

2018-05-23 Thread Apostolos Syropoulos via openindiana-discuss
 After upgrading I have noticed that neither mkvmerge nor mkvextract
work anymore!
$ mkvmerge -D audio.avi -A video.avi -o GAMES.mkv
terminate called after throwing an instance of 'std::bad_cast'
  what():  std::bad_cast
Abort (core dumped)

I have no idea what this KTPI thing does but it certainly has
made my life more difficult. How can I deactivate it?

A.S.


--
Apostolos Syropoulos
Xanthi, Greece
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] mkvmerge fails

2018-05-23 Thread Aurélien Larcher
On Wed, May 23, 2018 at 5:28 PM, Apostolos Syropoulos via
openindiana-discuss  wrote:

>  After upgrading I have noticed that neither mkvmerge nor mkvextract
> work anymore!
> $ mkvmerge -D audio.avi -A video.avi -o GAMES.mkv
> terminate called after throwing an instance of 'std::bad_cast'
>   what():  std::bad_cast
> Abort (core dumped)
>
> I have no idea what this KTPI thing does but it certainly has
> made my life more difficult. How can I deactivate it?
>

I am not sure this is related, this seems to be a plain runtime error.


>
> A.S.
>
>
> --
> Apostolos Syropoulos
> Xanthi, Greece
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>



-- 
---
Praise the Caffeine embeddings
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] mkvmerge fails

2018-05-23 Thread Aurélien Larcher
On Wed, May 23, 2018 at 5:31 PM, Aurélien Larcher <
aurelien.larc...@gmail.com> wrote:

>
>
> On Wed, May 23, 2018 at 5:28 PM, Apostolos Syropoulos via
> openindiana-discuss  wrote:
>
>>  After upgrading I have noticed that neither mkvmerge nor mkvextract
>> work anymore!
>> $ mkvmerge -D audio.avi -A video.avi -o GAMES.mkv
>> terminate called after throwing an instance of 'std::bad_cast'
>>   what():  std::bad_cast
>> Abort (core dumped)
>>
>> I have no idea what this KTPI thing does but it certainly has
>> made my life more difficult. How can I deactivate it?
>>
>
What is the OI package containing mkvmerge?



>
>
>>
>> A.S.
>>
>>
>> --
>> Apostolos Syropoulos
>> Xanthi, Greece
>> ___
>> openindiana-discuss mailing list
>> openindiana-discuss@openindiana.org
>> https://openindiana.org/mailman/listinfo/openindiana-discuss
>>
>
>
>
> --
> ---
> Praise the Caffeine embeddings
>



-- 
---
Praise the Caffeine embeddings
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] mkvmerge fails

2018-05-23 Thread Jacques Hugo
See if ffmpeg works for you.  Something like

ffmpeg -i video.avi -i audio.avi -map 0:0 -map 1:0 -c copy -f matroska games.mkv

-Jacques


Jacques Hugo
Three Two Labs
Information Technology | Solaris Engineering 32L
Phone +44 7939 433701
jacques.h...@threetwo.co.uk 
> On 23 May 2018, at 16:28, Apostolos Syropoulos via openindiana-discuss 
>  wrote:
> 
> After upgrading I have noticed that neither mkvmerge nor mkvextract
> work anymore!
> $ mkvmerge -D audio.avi -A video.avi -o GAMES.mkv
> terminate called after throwing an instance of 'std::bad_cast'
>   what():  std::bad_cast
> Abort (core dumped)
> 
> I have no idea what this KTPI thing does but it certainly has
> made my life more difficult. How can I deactivate it?
> 
> A.S.
> 
> 
> --
> Apostolos Syropoulos
> Xanthi, Greece
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss

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


Re: [OpenIndiana-discuss] mkvmerge fails

2018-05-23 Thread Apostolos Syropoulos via openindiana-discuss

 >See if ffmpeg works for you.  Something like>
>ffmpeg -i video.avi -i audio.avi -map 0:0 -map 1:0 -c copy -f matroska 
>games.mkv

First I have compiled both ffmpeg and mkvtools. 

fmpeg --version
ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.9.4 (GCC)
  configuration: --prefix=/opt/gnu --enable-shared --enable-static 
--enable-libx264 --enable-gpl --enable-libmp3lame --enable-libvpx 
--enable-libvorbis --enable-libfdk-aac --enable-nonfree
  libavutil  55. 78.100 / 55. 78.100
  libavcodec 57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter 6.107.100 /  6.107.100
  libswscale  4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Unrecognized option '-version'.
Error splitting the argument list: Option not found

Obviously, this cannot be distributed but this works just fine.
But mkvmerge and mkvextract core dump immediately.

A.S.
 

--
Apostolos Syropoulos
Xanthi, Greece
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] mkvmerge fails

2018-05-23 Thread Alan Coopersmith
On 05/23/18 08:28 AM, Apostolos Syropoulos via openindiana-discuss wrote:
> I have no idea what this KTPI thing does but it certainly has
> made my life more difficult. How can I deactivate it?

KPTI protects you from Meltdown attacks, which could be run as Javascript
in your web browser if you visit a site that embeds ads from an ad network
that doesn't have a thorough security review process for all Javascript
that they serve (i.e. basically any ad network out there, because that sort
of security costs lots of money and provides them no benefit).

https://en.wikipedia.org/wiki/Kernel_page-table_isolation and
https://en.wikipedia.org/wiki/Meltdown_(security_vulnerability)
have more in-depth explanations.

https://omniosce.org/info/kpti documents how to disable for OmniOS - I'd
guess OpenIndiana is very similar.

-alan-

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


Re: [OpenIndiana-discuss] mkvmerge fails

2018-05-23 Thread Aurélien Larcher
On Wed, May 23, 2018 at 5:44 PM, Apostolos Syropoulos via
openindiana-discuss  wrote:

>
>  >See if ffmpeg works for you.  Something like>
> >ffmpeg -i video.avi -i audio.avi -map 0:0 -map 1:0 -c copy -f matroska
> games.mkv
>
> First I have compiled both ffmpeg and mkvtools.
>
> fmpeg --version
> ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
>   built with gcc 4.9.4 (GCC)
>   configuration: --prefix=/opt/gnu --enable-shared --enable-static
> --enable-libx264 --enable-gpl --enable-libmp3lame --enable-libvpx
> --enable-libvorbis --enable-libfdk-aac --enable-nonfree
>   libavutil  55. 78.100 / 55. 78.100
>   libavcodec 57.107.100 / 57.107.100
>   libavformat57. 83.100 / 57. 83.100
>   libavdevice57. 10.100 / 57. 10.100
>   libavfilter 6.107.100 /  6.107.100
>   libswscale  4.  8.100 /  4.  8.100
>   libswresample   2.  9.100 /  2.  9.100
>   libpostproc54.  7.100 / 54.  7.100
> Unrecognized option '-version'.
> Error splitting the argument list: Option not found
>
> Obviously, this cannot be distributed but this works just fine.
> But mkvmerge and mkvextract core dump immediately.
>

Multimedia libraries were updated recently, though advertized as ABI
compatible.
If you compiled mkvmerge and mkvextract yourself then you may need to
rebuild them.



>
> A.S.
>
>
> --
> Apostolos Syropoulos
> Xanthi, Greece
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>



-- 
---
Praise the Caffeine embeddings
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] How do I fix over counting boot message

2018-05-23 Thread Jason Martin
It used to say (mounting something): (number/same_number)

Now it is like it over counts and states

(null): (14/13)

Have noticed after updating weeks ago.
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Need some building expertise, Thank You.

2018-05-23 Thread Jason Martin
When building the subversion plugin why is PKG_CHECK_MODULES returning 
32 bit?



Patched configure.ac to

echo PKG_CONFIG_PATH

YES /usr/lib/amd64/pkgconfig/gnutls-3:
YES /usr/lib/amd64/pkgconfig:
YES /usr/apr/lib/amd64/pkgconfig:
YES /usr/apr-util/lib/amd64/pkgconfig:

echo what is returned after PKG_CHECK_MODULES(APR  call

-L/usr/apr/lib -lapr-1 -luuid -lsendfile -lsocket -lnsl -lpthread

# NO ##

-L/usr/apr/lib is not right


# /usr/apr/lib/amd64/pkgconfig/apr-1.pc # is correct

prefix=/usr/apr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib/amd64
APR_MAJOR_VERSION=1
includedir=${exec_prefix}/include

Name: APR
Description: The Apache Portable Runtime library
Version: 1.5.2
Libs: -L${libdir} -lapr-${APR_MAJOR_VERSION} -luuid -lsendfile -lsocket 
-lnsl  -lpthread
Cflags: -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I${includedir}




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


Re: [OpenIndiana-discuss] Need some building expertise, Thank You.

2018-05-23 Thread Jason Martin

In /usr/apr/lib/pkgconfig

mv apr-1.pc apr-1_32.pc

Works!

-L/usr/apr/lib/amd64 -lapr-1 -luuid -lsendfile -lsocket -lnsl -lpthread


Some kind of pkg-config nested search bug???

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


Re: [OpenIndiana-discuss] mkvmerge fails

2018-05-23 Thread Apostolos Syropoulos via openindiana-discuss

>Multimedia libraries were updated recently, though advertized as ABI 
>compatible.
>If you compiled mkvmerge and mkvextract yourself then you may need to rebuild 
>them.

Thanks for the suggestion. I rebuild the mkvtools and now they work as expected.

A.S.

PS So something else is responsible for making wine crash not this JavaScript 
thing.
--
Apostolos Syropoulos
Xanthi, Greece  
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Need some building expertise, Thank You.

2018-05-23 Thread Jason Martin

Sorry, just tired and sick

I had link to 32 bit in /usr/lib/amd64/pkgconfig from days ago


On 05/23/18 03:18 PM, Jason Martin wrote:

In /usr/apr/lib/pkgconfig

mv apr-1.pc apr-1_32.pc

Works!

-L/usr/apr/lib/amd64 -lapr-1 -luuid -lsendfile -lsocket -lnsl -lpthread


Some kind of pkg-config nested search bug???



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


Re: [OpenIndiana-discuss] Wine and recent Openindiana

2018-05-23 Thread bentahyr
Yes, thanks for the work by the OI team, it is quite easy to compile 
recent version.


For wine 3.8, just use the following patch :
= BEGIN
--- dlls/ntdll/signal_i386.c2016-12-24 08:52:13.0 +1300
+++ dlls/ntdll/signal_i386.c2017-01-03 15:34:44.137167786 +1300
@@ -326,6 +326,10 @@
 #define gregs regs
 #endif

+#if defined(__sun) && defined(__SVR4)
+#include 
+#endif
+
 #define EAX_sig(context) ((context)->uc_mcontext.gregs[EAX])
 #define EBX_sig(context) ((context)->uc_mcontext.gregs[EBX])
 #define ECX_sig(context) ((context)->uc_mcontext.gregs[ECX])
--- dlls/ntdll/virtual.c2018-05-12 06:20:21.0 +
+++ dlls/ntdll/virtual.c2018-05-22 14:00:17.283013377 +
@@ -1853,7 +1853,7 @@
  */
 void virtual_get_system_info( SYSTEM_BASIC_INFORMATION *info )
 {
-#ifdef HAVE_SYSINFO
+#if defined(HAVE_SYSINFO) && !defined(__sun)
 struct sysinfo sinfo;
 #endif

@@ -1862,7 +1862,7 @@
 info->PageSize= page_size;
 info->MmLowestPhysicalPage= 1;
 info->MmHighestPhysicalPage   = 0x7fff / page_size;
-#ifdef HAVE_SYSINFO
+#if defined(HAVE_SYSINFO) && !defined(__sun)
 if (!sysinfo(&sinfo))
 {
 ULONG64 total = (ULONG64)sinfo.totalram * sinfo.mem_unit;
= END

then :
 make sure you have /usr/gnu/bin first in you PATH
 $ ./configure CFLAGS=-std=gnu99 CXXFLAGS=-std=gnu99 LDFLAGS=-lumem 
--prefix=/opt/wine

 $ gmake -j4
 # gmake install (as root)
 $ export UMEM_OPTIONS=backend=mmap

And enjoy.

If you want wine staging, apply the staging patches first then the above 
patch.
This only compile 32bits, I haven't find the way to compile the 64bits 
version (in between the libs path in the linux world and the solaris 
world and the 64bits switches).


Best regards.
Ben

Le 2018-05-23 23:24, openbabel a écrit :

Has anyone managed to compile the latest versions 3.x of wine ?

regards,

Robert




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


Re: [OpenIndiana-discuss] mkvmerge fails

2018-05-23 Thread Alexander Pyhalov

On 23.05.2018 18:46, Alan Coopersmith wrote:



https://omniosce.org/info/kpti documents how to disable for OmniOS - 
I'd

guess OpenIndiana is very similar.


Unfortunately, KPTI-related changes have side effects even if you 
disable KPTI on boot :(

---
System Administrator of Southern Federal University Computer Center


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