Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hakon@hakon-Precision-7531:~/test/perl/xsTest$ make -f makefile fc.so
- gcc -shared -fPIC -o fc.so fc.c
- hakon@hakon-Precision-7531:~/test/perl/xsTest$ make -f makefile tex
- gcc -L. -o tex tex.c -l:fc.so
- hakon@hakon-Precision-7531:~/test/perl/xsTest$ LD_LIBRARY_PATH=. ./tex
- Exécution du test:
- Fonction Kzwix A
- Fin du test
- hakon@hakon-Precision-7531:~/test/perl/xsTest$ make -f makefile xsInit
- h2xs -A -n xsModule
- Defaulting to backwards compatibility with perl 5.32.0
- If you intend this module to be compatible with earlier perl versions, please
- specify a minimum perl version with the -b option.
- Writing xsModule/ppport.h
- Writing xsModule/lib/xsModule.pm
- Writing xsModule/xsModule.xs
- Writing xsModule/Makefile.PL
- Writing xsModule/README
- Writing xsModule/t/xsModule.t
- Writing xsModule/Changes
- Writing xsModule/MANIFEST
- cp xsModule.xs xsModule/xsModule.xs
- cp Makefile.PL xsModule/Makefile.PL
- cp test_module.pl xsModule/test_module.pl
- hakon@hakon-Precision-7531:~/test/perl/xsTest$ cd xsModule/
- hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ l
- Changes lib Makefile.PL MANIFEST ppport.h README t test_module.pl xsModule.xs
- hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ perl Ma
- Makefile.PL MANIFEST
- hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ perl Makefile.PL
- Checking if your kit is complete...
- Looks good
- Warning: -L.. changed to -L/home/hakon/test/perl/xsTest/xsModule/..
- Generating a Unix-style Makefile
- Writing Makefile for xsModule
- Writing MYMETA.yml and MYMETA.json
- hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ make
- cp test_module.pl blib/lib/test_module.pl
- cp lib/xsModule.pm blib/lib/xsModule.pm
- Running Mkbootstrap for xsModule ()
- chmod 644 "xsModule.bs"
- "/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
- "/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
- Please specify prototyping behavior for xsModule.xs (see perlxs manual)
- mv xsModule.xsc xsModule.c
- 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
- rm -f blib/arch/auto/xsModule/xsModule.so
- 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 \
- -L/home/hakon/test/perl/xsTest/xsModule/.. -l:fc.so \
- chmod 755 blib/arch/auto/xsModule/xsModule.so
- Manifying 1 pod document
- hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ perl test_module.pl
- Fonction ka(): Avant appel kzA()
- Fonction Kzwix A
- Fonction ka(): Après appel kzA()
- hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ ldd blib/
- arch/ bin/ lib/ man1/ man3/ script/
- hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ ldd blib/arch/auto/xsModule/
- .exists xsModule.so
- hakon@hakon-Precision-7531:~/test/perl/xsTest/xsModule$ ldd blib/arch/auto/xsModule/xsModule.so
- linux-vdso.so.1 (0x00007ffc746ea000)
- fc.so => /home/hakon/test/perl/xsTest/xsModule/../fc.so (0x00007ffb63fb2000)
- libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ffb63daa000)
- /lib64/ld-linux-x86-64.so.2 (0x00007ffb63fbe000)
- h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement