RuntimeLoader

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

RuntimeLoader

Tim Newsham
Hi,
    I'm about to start playing with HWS-WP (web server + plugins).  It
relies on RuntimeLoader:

http://www.algorithm.com.au/wiki/hacking/haskell.ghc_runtime_loading

I grabbed the example and built it (only one minor tweak to imports
to get it to build) but it doesnt quite work:

$ ./src/TextFilter ./plugins/Lower.o < README
TextFilter: ./plugins/Lower.o: unknown symbol `__stginit_Char_'
TextFilter: user error (resolveFunctions failed?False)

There were also some warnings during building:

Compiling RuntimeLoader    ( ../runtime_loader/RuntimeLoader.hs,
./RuntimeLoader
.o )
/tmp/ghc11951.hc: In function `s2Pj_ret':
/tmp/ghc11951.hc:170: warning: implicit declaration of function
`unloadObj'
/tmp/ghc11951.hc: In function `s2JU_entry':
[...]

I assume this is because it is mucking with some ghc internals?
Is anyone familiar with this package?  Is there a more up-to-date
version or alternative?

Tim Newsham
http://www.lava.net/~newsham/
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: RuntimeLoader

Jared Updike
I've never used that Runtime Loader package but I have gotten
hs-plugins to work:
   http://www.cse.unsw.edu.au/~dons/hs-plugins/

Hope that helps,
  Jared.

On 4/13/06, Tim Newsham <[hidden email]> wrote:

> Hi,
>     I'm about to start playing with HWS-WP (web server + plugins).  It
> relies on RuntimeLoader:
>
> http://www.algorithm.com.au/wiki/hacking/haskell.ghc_runtime_loading
>
> I grabbed the example and built it (only one minor tweak to imports
> to get it to build) but it doesnt quite work:
>
> $ ./src/TextFilter ./plugins/Lower.o < README
> TextFilter: ./plugins/Lower.o: unknown symbol `__stginit_Char_'
> TextFilter: user error (resolveFunctions failed?False)
>
> There were also some warnings during building:
>
> Compiling RuntimeLoader    ( ../runtime_loader/RuntimeLoader.hs,
> ./RuntimeLoader
> .o )
> /tmp/ghc11951.hc: In function `s2Pj_ret':
> /tmp/ghc11951.hc:170: warning: implicit declaration of function
> `unloadObj'
> /tmp/ghc11951.hc: In function `s2JU_entry':
> [...]
>
> I assume this is because it is mucking with some ghc internals?
> Is anyone familiar with this package?  Is there a more up-to-date
> version or alternative?
>
> Tim Newsham
> http://www.lava.net/~newsham/
> _______________________________________________
> Haskell-Cafe mailing list
> [hidden email]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


--
http://www.updike.org/~jared/
reverse ")-:"
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

RE: RuntimeLoader

Simon Peyton Jones
Triggered by your msg, I've added a link to hs-plugins from GHC's
user-documentation page
        http://haskell.org/haskellwiki/GHC/Documentation

It's a Wiki page with a specific section for collaborative
documentation; please add more material.

Simon

| -----Original Message-----
| From: [hidden email]
[mailto:[hidden email]] On Behalf Of
| Jared Updike
| Sent: 14 April 2006 16:15
| To: Tim Newsham
| Cc: [hidden email]
| Subject: Re: [Haskell-cafe] RuntimeLoader
|
| I've never used that Runtime Loader package but I have gotten
| hs-plugins to work:
|    http://www.cse.unsw.edu.au/~dons/hs-plugins/
|
| Hope that helps,
|   Jared.
|
| On 4/13/06, Tim Newsham <[hidden email]> wrote:
| > Hi,
| >     I'm about to start playing with HWS-WP (web server + plugins).
It
| > relies on RuntimeLoader:
| >
| > http://www.algorithm.com.au/wiki/hacking/haskell.ghc_runtime_loading
| >
| > I grabbed the example and built it (only one minor tweak to imports
| > to get it to build) but it doesnt quite work:
| >
| > $ ./src/TextFilter ./plugins/Lower.o < README
| > TextFilter: ./plugins/Lower.o: unknown symbol `__stginit_Char_'
| > TextFilter: user error (resolveFunctions failed?False)
| >
| > There were also some warnings during building:
| >
| > Compiling RuntimeLoader    ( ../runtime_loader/RuntimeLoader.hs,
| > ./RuntimeLoader
| > .o )
| > /tmp/ghc11951.hc: In function `s2Pj_ret':
| > /tmp/ghc11951.hc:170: warning: implicit declaration of function
| > `unloadObj'
| > /tmp/ghc11951.hc: In function `s2JU_entry':
| > [...]
| >
| > I assume this is because it is mucking with some ghc internals?
| > Is anyone familiar with this package?  Is there a more up-to-date
| > version or alternative?
| >
| > Tim Newsham
| > http://www.lava.net/~newsham/
| > _______________________________________________
| > Haskell-Cafe mailing list
| > [hidden email]
| > http://www.haskell.org/mailman/listinfo/haskell-cafe
| >
|
|
| --
| http://www.updike.org/~jared/
| reverse ")-:"
| _______________________________________________
| Haskell-Cafe mailing list
| [hidden email]
| http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe