Re: Compiling perl XS module on Mac OSX
Charles Reitzel <[email protected]>
| Newsgroups | gmane.comp.web.html-tidy.devel |
|---|---|
| Message-ID | <[email protected]> |
At 08:47 AM 2/7/2005 -0600, Ryan Gerry wrote: >Charlie, thanks for the assistance. I downloaded the new tidyx.h that you >mentioned and redid the process mentioned below. The good news is that >when running make, I received fewer warnings from the compiler: > >g++ -c -I/usr/local/include/tidy -g -pipe -pipe -fno-common -DPERL_DARWIN >-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include >-Os -DVERSION=\"0.1\" -DXS_VERSION=\"0.1\" >"-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE" >tidyperl.cpp >In file included from tidyperl.cpp:552: >tidyx.h: In member function `void Tidy::Buffer::Attach(void*, unsigned int)': >tidyx.h:165: warning: invalid conversion from `void*' to `byte*' This can be fixed easily by changing "void*" to "byte*" in the Tidy::Buffer::Attach call in tidyx.h. Another TidyLib delta I need to track (or perhaps a compiler difference). >Unfortunately, the tests continued to fail as they have in the past. Can you verify that it is finding the wrapper lib? It looks almost like it can't find the library at all. I have been working on Solaris so much the last year or so that my Linux has faded. Does Linux use the LD_LIBRARY_PATH environment variable to find shared libs? If not, what is the equivalent? Also, does Linux support the "ldd" command (and the -s option)? If so, add this command to the generated Makefile just before it runs the Perl tests to see if all necessary libs are available. I have a Linux system, but I rarely boot it and I am running gcc 2.9.5. So I cannot reproduce the problem exactly. Oh, and I definitely do not have a Mac (just noticed the Darwin above). Anyway, find a way on your Unix-like-substance to validate all shared libs are available. hth, Charlie ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click