I need help w/ C++ XS and HP-UX 
Author Message
 I need help w/ C++ XS and HP-UX

Help!

I'm trying to do the C++  and perl thing.  I've read the Adv Perl
Programming and the perlXStut and the perlxs but am still having
problems.

I'm on HP-UX 10.20  and perl 5.004_03.

I downloaded Dean's CookBookA and CookBook B.  The makes work okay
except for the make test, then I get the following error messages:

%make test
....
/usr/lib/dld.sl: Unresolved symbol: __nw__FUi (code)  from
./blib/arch/auto/Cook                      <<< Error
BookB/CCsimple/CCsimple.sl
/usr/lib/dld.sl: Unresolved symbol: __dl__FPv (code)  from
./blib/arch/auto/Cook
BookB/CCsimple/CCsimple.sl
...

below is the entire output from make test

 PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib
-I/opt/perl5.
004_03/lib/PA-RISC1.1/5.00403 -I/opt/perl5.004_03/lib test.pl
1..1
/usr/lib/dld.sl: Unresolved symbol: __nw__FUi (code)  from
./blib/arch/auto/Cook                      <<< Error
BookB/CCsimple/CCsimple.sl
/usr/lib/dld.sl: Unresolved symbol: __dl__FPv (code)  from
./blib/arch/auto/Cook
BookB/CCsimple/CCsimple.sl
Can't load './blib/arch/auto/CookBookB/CCsimple/CCsimple.sl' for module
CookBook
B::CCsimple: Unresolved external at
/opt/perl5.004_03/lib/PA-RISC1.1/5.00403/Dyn
aLoader.pm line 155.

 at test.pl line 11
BEGIN failed--compilation aborted at test.pl line 11.
not ok 1
*** Error exit code 215

Does this ring any bells out there?

Also, I found some other funky behavior on HP-UX and C++ compiles.  The
.xs file that get's generated has to be doctored in the following way
otherwise you get an error about the functions pow(), abs(), and sqr()
having multiple C linkage.

code generated by h2xs:

#ifdef __cplusplus                           //remove this line
extern "C"
{                                                    //remove this line
#endif                                            //remove this line

#include <EXTERN.h>
#include <perl.h>

#ifdef __cplusplus                           //remove this line

Quote:
}                                                     //remove this line

#  ifndef EXTERN_C
#    define EXTERN_C extern "C"
#  endif
#else
#  ifndef EXTERN_C
#    define EXTERN_C extern
#  endif
#endif


Tue, 08 May 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. I need help w/ C++ XS and HP-UX

2. Errors I found w/ C++, XS and HP-UX

3. Errors I found w/ C++, XS and HP-UX

4. Need help with IOCTL on HP-UX

5. perl 4.036 vs. HP-UX 9.0 (help needed)

6. perl on HP-UX 8.0 (9000/800) (help needed)

7. Help needed compiling DB_File on HP-UX 11

8. Need Help Compiling Perl 5.004_04 on HP-UX 9

9. Linking regcmp in XS module on HP-UX

10. Need help compiling perl5 on HP-UX

11. **** PERL SYBASE ODE HP-UX PROGRAMMERS NEEDED ****

12. I need the TK module for HP/UX 10

 

 
Powered by phpBB® Forum Software