<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Corbel">Thanks Miguel, we can continue from here.<br>
      <br>
      We're using a clean OpenSUSE 13.2, but we'll figure out what to
      do.<br>
      <br>
      Thanks!<br>
      <br>
      pablo<br>
    </font><br>
    <div class="moz-cite-prefix">On 10/6/2015 19:24, Miguel de Icaza
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANqeOFpFu=92nMCP5d-NKkGpA42oMj-9iOEbnHbmDjb7mT5HBg@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">Ok, that looks like an issue with your Autoconf
        installation (did you run autogen, or is this the one we ship)?
        <div><br>
        </div>
        <div>In any case the challenge is that your lib64 directory
          needs to be listed in your ld.so.conf, otherwise calls to
          dlopen will fail.</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Oct 6, 2015 at 12:17 PM, <a
            moz-do-not-send="true"
            href="mailto:psantosl@codicesoftware.com"><a class="moz-txt-link-abbreviated" href="mailto:psantosl@codicesoftware.com">psantosl@codicesoftware.com</a></a>
          <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:psantosl@codicesoftware.com" target="_blank">psantosl@codicesoftware.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> <font face="Corbel">Hi
                again,<br>
                <br>
                I'll try to be clearer this time, I think I was too
                cryptic before :)<br>
                <br>
                I just built my mono from latest now this way:<br>
                <br>
                $ ./configure --prefix=/home/pablo/monobin-4.3-head
                && make && make install<br>
                <br>
                $ mono --version<br>
                Mono JIT compiler version 4.3.0 (master/020a7c6 Tue Oct 
                6 18:06:22 CEST 2015)<br>
                Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and
                Contributors. <a moz-do-not-send="true"
                  href="http://www.mono-project.com" target="_blank">www.mono-project.com</a><br>
                    TLS:           __thread<br>
                    SIGSEGV:       altstack<br>
                    Notifications: epoll<br>
                    Architecture:  amd64<br>
                    Disabled:      none<br>
                    Misc:          softdebug <br>
                    LLVM:          supported, not enabled.<br>
                    GC:            sgen<br>
                <br>
                <br>
                I have this program:<br>
                <br>
                $ cat Program.cs<br>
                using System;<span class=""><br>
                  <br>
                  using Mono.Unix;<br>
                  <br>
                  namespace testunixdirinfo<br>
                  {<br>
                      class MainClass<br>
                      {<br>
                </span>         public static void Main (string[] args)<span
                  class=""><br>
                          {<br>
                              UnixDirectoryInfo dir = new
                  UnixDirectoryInfo (args [0]);<br>
                          }<br>
                      }<br>
                  }<br>
                  <br>
                </span> Then I build my program:<br>
                <br>
                $ mcs Program.cs -r Mono.Posix.dll<br>
                <br>
                And run it and get this:<br>
                <br>
                $ mono Program.exe .<br>
                <br>
                Unhandled Exception:<br>
                System.TypeInitializationException: The type initializer
                for 'Mono.Unix.Native.Syscall' threw an exception.
                ---> System.DllNotFoundException: <b>/home/pablo/monobin-4.</b><b>3</b><b>-head/lib/libMonoPosixHelper.so</b><br>
                  at (wrapper managed-to-native)
                Mono.Unix.Native.Syscall:get_at_fdcwd ()<br>
                  at Mono.Unix.Native.Syscall..cctor () <0x41356870 +
                0x0002b> in <filename unknown>:0 <br>
                  --- End of inner exception stack trace ---<br>
                  at Mono.Unix.UnixDirectoryInfo.GetCurrentDirectory ()
                <0x41356550 + 0x0008f> in <filename
                unknown>:0 <br>
                  at Mono.Unix.UnixPath._GetFullPath (System.String
                path) <0x41356430 + 0x0002b> in <filename
                unknown>:0 <br>
                  at Mono.Unix.UnixPath.GetFullPath (System.String path)
                <0x413563f0 + 0x0000f> in <filename
                unknown>:0 <br>
                  at Mono.Unix.UnixFileSystemInfo..ctor (System.String
                path) <0x41355f80 + 0x00053> in <filename
                unknown>:0 <br>
                  at Mono.Unix.UnixDirectoryInfo..ctor (System.String
                path) <0x41355f50 + 0x00013> in <filename
                unknown>:0 <br>
                  at testunixdirinfo.MainClass.Main (System.String[]
                args) <0x41355d40 + 0x00043> in <filename
                unknown>:0 <br>
                [ERROR] FATAL UNHANDLED EXCEPTION:
                System.TypeInitializationException: The type initializer
                for 'Mono.Unix.Native.Syscall' threw an exception.
                ---> System.DllNotFoundException:
                /home/pablo/monobin-4.2/lib/libMonoPosixHelper.so<br>
                  at (wrapper managed-to-native)
                Mono.Unix.Native.Syscall:get_at_fdcwd ()<br>
                  at Mono.Unix.Native.Syscall..cctor () <0x41356870 +
                0x0002b> in <filename unknown>:0 <br>
                  --- End of inner exception stack trace ---<br>
                  at Mono.Unix.UnixDirectoryInfo.GetCurrentDirectory ()
                <0x41356550 + 0x0008f> in <filename
                unknown>:0 <br>
                  at Mono.Unix.UnixPath._GetFullPath (System.String
                path) <0x41356430 + 0x0002b> in <filename
                unknown>:0 <br>
                  at Mono.Unix.UnixPath.GetFullPath (System.String path)
                <0x413563f0 + 0x0000f> in <filename
                unknown>:0 <br>
                  at Mono.Unix.UnixFileSystemInfo..ctor (System.String
                path) <0x41355f80 + 0x00053> in <filename
                unknown>:0 <br>
                  at Mono.Unix.UnixDirectoryInfo..ctor (System.String
                path) <0x41355f50 + 0x00013> in <filename
                unknown>:0 <br>
                  at testunixdirinfo.MainClass.Main (System.String[]
                args) <0x41355d40 + 0x00043> in <filename
                unknown>:0 <br>
                <br>
                <br>
                It doesn't find the libMonoPosixHelper.so under "lib"
                because it is actually under lib64 (I just built my mono
                with make, nothing special :-S).<br>
                <br>
                $ ls /home/pablo/monobin-4.3-head/<br>
                bin/     etc/     include/ lib/     lib64/   share/   <br>
                <br>
                <font face="Consolas">$ ls
                  /home/pablo/monobin-4.3-head/lib64/<br>
                  libikvm-native.a          
                  libMonoPosixHelper.la           
                  libmono-profiler-log.so<br>
                  <a moz-do-not-send="true"
                    href="http://libikvm-native.la" target="_blank">libikvm-native.la</a>         
                  libMonoPosixHelper.so           
                  libmono-profiler-log.so.0<br>
                  libikvm-native.so         
                  libmono-profiler-aot.a          
                  libmono-profiler-log.so.0.0.0<br>
                  libmono-2.0.a              <a moz-do-not-send="true"
                    href="http://libmono-profiler-aot.la"
                    target="_blank">libmono-profiler-aot.la</a>         
                  libmonosgen-2.0.a<br>
                  <a moz-do-not-send="true" href="http://libmono-2.0.la"
                    target="_blank">libmono-2.0.la</a>            
                  libmono-profiler-aot.so          <a
                    moz-do-not-send="true"
                    href="http://libmonosgen-2.0.la" target="_blank">libmonosgen-2.0.la</a><br>
                  <a moz-do-not-send="true" href="http://libmono-2.0.so"
                    target="_blank">libmono-2.0.so</a>            
                  libmono-profiler-aot.so.0        <a
                    moz-do-not-send="true"
                    href="http://libmonosgen-2.0.so" target="_blank">libmonosgen-2.0.so</a><br>
                  libmono-2.0.so.1          
                  libmono-profiler-aot.so.0.0.0    libmonosgen-2.0.so.1<br>
                  libmono-2.0.so.1.0.0      
                  libmono-profiler-iomap.a        
                  libmonosgen-2.0.so.1.0.0<br>
                  libmonoboehm-2.0.a         <a moz-do-not-send="true"
                    href="http://libmono-profiler-iomap.la"
                    target="_blank">libmono-profiler-iomap.la</a>       
                  libMonoSupportW.a<br>
                  <a moz-do-not-send="true"
                    href="http://libmonoboehm-2.0.la" target="_blank">libmonoboehm-2.0.la</a>       
                  libmono-profiler-iomap.so        libMonoSupportW.la<br>
                  <a moz-do-not-send="true"
                    href="http://libmonoboehm-2.0.so" target="_blank">libmonoboehm-2.0.so</a>       
                  libmono-profiler-iomap.so.0      libMonoSupportW.so<br>
                  libmonoboehm-2.0.so.1     
                  libmono-profiler-iomap.so.0.0.0  mono<br>
                  libmonoboehm-2.0.so.1.0.0 
                  libmono-profiler-log.a           pkgconfig<br>
                  libMonoPosixHelper.a       <a moz-do-not-send="true"
                    href="http://libmono-profiler-log.la"
                    target="_blank">libmono-profiler-log.la</a></font><br>
                <br>
                <br>
                I'm obviously doing something wrong, but I'd love to
                know what should I do to configure it correctly. (BTW,
                just copying lib64 inside lib makes it work, but I guess
                this is not the way to do it :P).<br>
                <br>
                <br>
                Thanks again!<br>
                <br>
                pablo<br>
                <br>
              </font>
              <div>
                <div class="h5"><br>
                  <div>On 10/5/2015 22:42, Miguel de Icaza wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Hello,
                      <div><br>
                      </div>
                      <div>I do not follow, what "new lib64" thing?  
                        That sounds like a packaging issue, more than a
                        Mono issue.</div>
                      <div><br>
                      </div>
                      <div>Miguel.</div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Mon, Oct 5, 2015 at
                        12:44 PM, <a moz-do-not-send="true"
                          href="mailto:psantosl@codicesoftware.com"
                          target="_blank">psantosl@codicesoftware.com</a>
                        <span dir="ltr"><<a moz-do-not-send="true"
                            href="mailto:psantosl@codicesoftware.com"
                            target="_blank">psantosl@codicesoftware.com</a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000">
                            <div
                              style="font-family:-moz-fixed;font-size:14px"
                              lang="x-unicode">Hi, <br>
                              <br>
                              We're having trouble understanding the new
                              lib64 thing in mono 4.3 (we're trying to
                              move Plastic SCM to 4.3 now). <br>
                              <br>
                              A simple app like this one: <br>
                              <br>
                              using Mono.Unix; <br>
                              namespace testunixdirinfo <br>
                              { <br>
                                  class MainClass <br>
                                  { <br>
                                      public static void Main(string[]
                              args) <br>
                                      { <br>
                                          UnixDirectoryInfo dir = new
                              UnixDirectoryInfo(args[0]); <br>
                                      } <br>
                                  } <br>
                              } <br>
                              <br>
                              Fails saying it can't find
                              lib/libMonoPosixHelper.so, which is now
                              under lib64 instead. <br>
                              <br>
                              It is easy to fix just moving it under lib
                              inside your mono binaries, but I guess
                              this is not the right way to do it
                              :confounded: <br>
                              <br>
                              This is the build we're using Mono JIT
                              compiler version 4.3.0 (explicit/b6dfce6.
                              <br>
                              <br>
                              Thanks! <span title=":-)"></span> <br>
                              <br>
                              pablo <br>
                            </div>
                          </div>
                          <br>
_______________________________________________<br>
                          Mono-devel-list mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:Mono-devel-list@lists.ximian.com"
                            target="_blank">Mono-devel-list@lists.ximian.com</a><br>
                          <a moz-do-not-send="true"
                            href="http://lists.ximian.com/mailman/listinfo/mono-devel-list"
                            rel="noreferrer" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
                          <br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>