Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: xs problem

by Velaki (Chaplain)
on Aug 24, 2006 at 14:14 UTC ( [id://569371]=note: print w/replies, xml ) Need Help??


in reply to xs problem

Hmm...it almost looks like a LD_LIBRARY_PATH issue. What does your C module do?

Also, have you tried testing it with make test_static just to see if it's a path issue?

Contemplatively,
-v.

"Perl. There is no substitute."

Replies are listed 'Best First'.
Re^2: xs problem
by teh_steev (Initiate) on Aug 24, 2006 at 15:16 UTC
    steve@thelaptop:~/module$ make test_static cd ccode && make make[1]: Entering directory `/home/steve/module/ccode' gcc -shared -Wl,-soname,libpfq -Wl,-E -Wl,-rpath,/usr/lib/perl/5.8.7/C +ORE -o libpfq.so.1 socket.o services.o -lc make[1]: Leaving directory `/home/steve/module/ccode' rm -rf blib/arch/auto/module/module.a cp ccode/libpfq blib/arch/auto/module/module.a /usr/bin/ar cr blib/arch/auto/module/module.a module.o && : blib/arch/ +auto/module/module.a /usr/bin/ar: blib/arch/auto/module/module.a: File format not recognize +d make: *** [blib/arch/auto/module/module.a] Error 1

    I've just tried it with a diagnostics enabled as well and it has replied with:

    Compilation failed in require at test.pl line 5 (#1) (F) The module you tried to load failed to load a dynamic extensio +n. This may either mean that you upgraded your version of perl to one that + is incompatible with your old dynamic extensions (which is known to h +appen between major versions of perl), or (more likely) that your dynami +c extension was built against an older version of the library that i +s installed on your system. You may need to rebuild your old dynamic extensions.

    Which library is 'the library'? Do they mean libc or some library in perl itself? There's nothing in perlxs or perlxstut that says I should link against a specific library.

    The C functions operate on mail queues- deferring and deleting messages and so on.

    Oh, and thanks to the people who set me straight (and edited my post) about formatting- I was going to use code tags but I didn't see it in the list of allowed tags. I should always remember to read the next line as well.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://569371]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found