Advertisement
hakonhagland

xsModule

Jul 7th, 2021
1,007
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.50 KB | None | 0 0
  1. hakon@hakon-Precision-7531:~/test/perl/xsTest$ make -f makefile fc.so
  2. gcc -shared -fPIC -o fc.so fc.c
  3. hakon@hakon-Precision-7531:~/test/perl/xsTest$ make -f makefile tex
  4. gcc -L.  -o tex tex.c -l:fc.so
  5. hakon@hakon-Precision-7531:~/test/perl/xsTest$ LD_LIBRARY_PATH=. ./tex
  6. Exécution du test:
  7. Fonction Kzwix A
  8. Fin du test
  9. hakon@hakon-Precision-7531:~/test/perl/xsTest$ make -f makefile xsInit
  10. h2xs -A -n xsModule
  11. Defaulting to backwards compatibility with perl 5.32.0
  12. If you intend this module to be compatible with earlier perl versions, please
  13. specify a minimum perl version with the -b option.
  14.  
  15. Writing xsModule/ppport.h
  16. Writing xsModule/lib/xsModule.pm
  17. Writing xsModule/xsModule.xs
  18. Writing xsModule/Makefile.PL
  19. Writing xsModule/README
  20. Writing xsModule/t/xsModule.t
  21. Writing xsModule/Changes
  22. Writing xsModule/MANIFEST
  23. cp xsModule.xs xsModule/xsModule.xs
  24. cp Makefile.PL xsModule/Makefile.PL
  25. cp test_module.pl xsModule/test_module.pl
  26. hakon@hakon-Precision-7531:~/test/perl/xsTest$ cd xsModule/
  27. hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ l
  28. Changes  lib  Makefile.PL  MANIFEST  ppport.h  README  t  test_module.pl  xsModule.xs
  29. hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ perl Ma
  30. Makefile.PL  MANIFEST    
  31. hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ perl Makefile.PL
  32. Checking if your kit is complete...
  33. Looks good
  34. Warning: -L.. changed to -L/home/hakon/test/perl/xsTest/xsModule/..
  35. Generating a Unix-style Makefile
  36. Writing Makefile for xsModule
  37. Writing MYMETA.yml and MYMETA.json
  38. hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ make
  39. cp test_module.pl blib/lib/test_module.pl
  40. cp lib/xsModule.pm blib/lib/xsModule.pm
  41. Running Mkbootstrap for xsModule ()
  42. chmod 644 "xsModule.bs"
  43. "/home/hakon/perlbrew/perls/perl-5.32.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- xsModule.bs blib/arch/auto/xsModule/xsModule.bs 644
  44. "/home/hakon/perlbrew/perls/perl-5.32.0/bin/perl" "/home/hakon/perlbrew/perls/perl-5.32.0/lib/5.32.0/ExtUtils/xsubpp"  -typemap '/home/hakon/perlbrew/perls/perl-5.32.0/lib/5.32.0/ExtUtils/typemap'  xsModule.xs > xsModule.xsc
  45. Please specify prototyping behavior for xsModule.xs (see perlxs manual)
  46. mv xsModule.xsc xsModule.c
  47. cc -c  -I. -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/home/hakon/perlbrew/perls/perl-5.32.0/lib/5.32.0/x86_64-linux/CORE"   xsModule.c
  48. rm -f blib/arch/auto/xsModule/xsModule.so
  49. LD_RUN_PATH="/home/hakon/test/perl/xsTest/xsModule/.." cc  -shared -O2 -L/usr/local/lib -fstack-protector-strong  xsModule.o  -o blib/arch/auto/xsModule/xsModule.so  \
  50.    -L/home/hakon/test/perl/xsTest/xsModule/.. -l:fc.so   \
  51.  
  52. chmod 755 blib/arch/auto/xsModule/xsModule.so
  53. Manifying 1 pod document
  54. hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ perl test_module.pl
  55. Fonction ka(): Avant appel kzA()
  56. Fonction Kzwix A
  57. Fonction ka(): Après appel kzA()
  58. hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ ldd blib/
  59. arch/   bin/    lib/    man1/   man3/   script/
  60. hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ ldd blib/arch/auto/xsModule/
  61. .exists      xsModule.so  
  62. hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ ldd blib/arch/auto/xsModule/xsModule.so
  63.     linux-vdso.so.1 (0x00007ffc746ea000)
  64.     fc.so => /home/hakon/test/perl/xsTest/xsModule/../fc.so (0x00007ffb63fb2000)
  65.     libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ffb63daa000)
  66.     /lib64/ld-linux-x86-64.so.2 (0x00007ffb63fbe000)
  67. h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement