IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Modules Perl Discussion :

Installation Module Socket6


Sujet :

Modules Perl

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2010
    Messages
    221
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2010
    Messages : 221
    Par défaut Installation Module Socket6
    Bonjour,

    Je tourne sous WinXP SP3 et j'utilise Strawberry Perl comme distribution et j'ai besoin d'installer le module Socket6 ainsi que IO::Socket::INET6

    Cependant, je n'y arrive pas.
    Voici ci-dessous le log de l'installation:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
     
    cpan> install Socket6
    Running install for module 'Socket6'
    Running make for U/UM/UMEMOTO/Socket6-0.23.tar.gz
    Checksum for C:\strawberry\cpan\sources\authors\id\U\UM\UMEMOTO\Socket6-0.23.tar.gz ok
    Scanning cache C:\strawberry\cpan\build for sizes
    ............................................................................DONE
     
      CPAN.pm: Going to build U/UM/UMEMOTO/Socket6-0.23.tar.gz
     
    Checking if your kit is complete...
    Looks good
    Note (probably harmless): No library found for ws2_32.lib
    Writing Makefile for Socket6
    cp Socket6.pm blib\lib/Socket6.pm
    C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp -noprototypes -typemap C:\strawberry\perl\lib\Ext
    Utils\typemap  Socket6.xs > Socket6.xsc && C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "mv" -- Socket6.xsc So
    cket6.c
    gcc -c          -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-st
    rict-aliasing -mms-bitfields -DPERL_MSVCRT_READFIX -s -O2         -DVERSION=\"0.23\"    -DXS_VERSION=\"0.23\"  "-IC:\str
    awberry\perl\lib\CORE"   Socket6.c
    Running Mkbootstrap for Socket6 ()
    C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 Socket6.bs
    C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \
         -e "Mksymlists('NAME'=>\"Socket6\", 'DLBASE' => 'Socket6', 'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  },
     'DL_VARS' => []);"
    dlltool --def Socket6.def --output-exp dll.exp
    g++ -o blib\arch\auto\Socket6\Socket6.dll -Wl,--base-file -Wl,dll.base -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\st
    rawberry\c\lib" Socket6.o -Wl,--image-base,0x361b0000  C:\strawberry\perl\lib\CORE\libperl512.a C:\strawberry\c\i686-w64
    -mingw32\lib\libmoldname.a C:\strawberry\c\i686-w64-mingw32\lib\libkernel32.a C:\strawberry\c\i686-w64-mingw32\lib\libus
    er32.a C:\strawberry\c\i686-w64-mingw32\lib\libgdi32.a C:\strawberry\c\i686-w64-mingw32\lib\libwinspool.a C:\strawberry\
    c\i686-w64-mingw32\lib\libcomdlg32.a C:\strawberry\c\i686-w64-mingw32\lib\libadvapi32.a C:\strawberry\c\i686-w64-mingw32
    \lib\libshell32.a C:\strawberry\c\i686-w64-mingw32\lib\libole32.a C:\strawberry\c\i686-w64-mingw32\lib\liboleaut32.a C:\
    strawberry\c\i686-w64-mingw32\lib\libnetapi32.a C:\strawberry\c\i686-w64-mingw32\lib\libuuid.a C:\strawberry\c\lib\libws
    2_32.a C:\strawberry\c\i686-w64-mingw32\lib\libmpr.a C:\strawberry\c\i686-w64-mingw32\lib\libwinmm.a C:\strawberry\c\i68
    6-w64-mingw32\lib\libversion.a C:\strawberry\c\i686-w64-mingw32\lib\libodbc32.a C:\strawberry\c\i686-w64-mingw32\lib\lib
    odbccp32.a C:\strawberry\c\i686-w64-mingw32\lib\libcomctl32.a dll.exp
    Socket6.o:Socket6.c:(.text+0x2685): undefined reference to `inet_ntop'
    Socket6.o:Socket6.c:(.text+0x28d2): undefined reference to `inet_pton'
    collect2: ld returned 1 exit status
    dmake.EXE:  Error code 129, while making 'blib\arch\auto\Socket6\Socket6.dll'
      UMEMOTO/Socket6-0.23.tar.gz
      C:\strawberry\c\bin\dmake.EXE -- NOT OK
    Running make test
      Can't test without successful make
    Running make install
      Make had returned bad status, install seems impossible
    Failed during this command:
     UMEMOTO/Socket6-0.23.tar.gz                  : make NO
     
    cpan>
    Cela semble venir de la ligne 13:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Note (probably harmless): No library found for ws2_32.lib

    Je ne doit pas être le premier à vouloir installer ce module, donc si quelqu'un a une idée ou mien une solution, je suis preneur

  2. #2
    Expert confirmé

    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2009
    Messages
    3 577
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 59
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Avril 2009
    Messages : 3 577
    Par défaut
    A priori, cette librairie fait partie de Visual studio...

  3. #3
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2010
    Messages
    221
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2010
    Messages : 221
    Par défaut
    C'est bien ce dont j'avais cru comprendre dans la lecture internetique...

    Existe-t-il une méthode d'obtenir cette librairie sans devoir installer visual Studio?

  4. #4
    Expert confirmé

    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2009
    Messages
    3 577
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 59
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Avril 2009
    Messages : 3 577

  5. #5
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2010
    Messages
    221
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2010
    Messages : 221
    Par défaut
    Salut,

    En fait, la DLL est bien présente...

  6. #6
    Expert confirmé

    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2009
    Messages
    3 577
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 59
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Avril 2009
    Messages : 3 577
    Par défaut
    C'est donc que le linker ne la trouve pas (gcc ?).
    Il faut peut-être ajouter le chemin de cette librairie aux options de compilation -L du linker ? Ceci devrait être possible en générant manuellement la librairie :
    - modifier Makefile.PL en ajoutant (ou complétant) la variable LIBS dans la structure passée à WriteMakefile du module ExtUtils::MakeMaker
    - -

Discussions similaires

  1. Installation modules Perl en erreur
    Par Billette dans le forum Modules
    Réponses: 7
    Dernier message: 03/08/2006, 15h14
  2. installation module pysqlite
    Par vivelesgnous dans le forum Déploiement/Installation
    Réponses: 5
    Dernier message: 02/05/2006, 09h16
  3. [Installation] Modules GD
    Par vargasvan dans le forum Modules
    Réponses: 5
    Dernier message: 16/03/2006, 14h13
  4. [LDAP] installation module ldap sous Windows
    Par hutchuck dans le forum Bibliothèques et frameworks
    Réponses: 4
    Dernier message: 16/11/2005, 10h49
  5. problème d'installation module sous windows
    Par Ickou dans le forum Modules
    Réponses: 2
    Dernier message: 21/10/2005, 16h32

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo