Build error on Mac OS 10.6 - no suitable image found

View: New views
2 Messages — Rating Filter:   Alert me  

Build error on Mac OS 10.6 - no suitable image found

by Rudolph van Graan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've compiled Yaws as normal on 10.6, but now I get this:

4> application:start(yaws).

=ERROR REPORT==== 5-Sep-2009::19:37:00 ===
Failed to load setuid_drv (from "yaws/ebin/../priv/lib") : "dlopen(/yaws/ebin/../priv/lib/setuid_drv.so, 2): no suitable image found.  
Did find:
yaws/ebin/../priv/lib/setuid_drv.so: mach-o, but wrong architecture"
=ERROR REPORT==== 5-Sep-2009::19:37:00 ===
FATAL {'EXIT',normal}

=INFO REPORT==== 5-Sep-2009::19:37:00 ===
    application: yaws
    exited: {shutdown,{yaws_app,start,[normal,[]]}}
    type: temporary
{error,{shutdown,{yaws_app,start,[normal,[]]}}}

The compiler creates 64bit libraries by default:

wyemac:lib rvg$ file setuid_drv.so 
setuid_drv.so: Mach-O 64-bit bundle x86_64

What is the best, standard way to fix this and can someone commit the fix to yaws?

Thanks,

Rudolph van Graan




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list

smime.p7s (4K) Download Attachment

Re: Build error on Mac OS 10.6 - no suitable image found

by Steve Vinoski-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Sat, Sep 5, 2009 at 1:49 PM, Rudolph van Graan <rvg@...> wrote:
Hi,

I've compiled Yaws as normal on 10.6, but now I get this:

4> application:start(yaws).

=ERROR REPORT==== 5-Sep-2009::19:37:00 ===
Failed to load setuid_drv (from "yaws/ebin/../priv/lib") : "dlopen(/yaws/ebin/../priv/lib/setuid_drv.so, 2): no suitable image found.  
Did find:
yaws/ebin/../priv/lib/setuid_drv.so: mach-o, but wrong architecture"
=ERROR REPORT==== 5-Sep-2009::19:37:00 ===
FATAL {'EXIT',normal}

=INFO REPORT==== 5-Sep-2009::19:37:00 ===
    application: yaws
    exited: {shutdown,{yaws_app,start,[normal,[]]}}
    type: temporary
{error,{shutdown,{yaws_app,start,[normal,[]]}}}

The compiler creates 64bit libraries by default:

wyemac:lib rvg$ file setuid_drv.so 
setuid_drv.so: Mach-O 64-bit bundle x86_64

What is the best, standard way to fix this and can someone commit the fix to yaws?

I've built Yaws on 10.6, no problem. It works just fine. Make sure you do a "make clean" first. The C sources such as the setuid and sendfile support need to be completely rebuilt and reinstalled because the 10.6 object files are 64-bit now. You'll also need to rebuild Erlang because it needs to be 64-bit as well in order to load these linked-in drivers.

--steve

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list