Skip to content

Compilation failed : Makefile:756: recipe for target 'release/Digest.o' failed #1

@B-Laurent

Description

@B-Laurent

During compilation under fedora (22 ˇ23 ) the following error occurred.
This is solved by adding the following line in ppl7/src/crypto/Digest.cpp

#include <stdint.h>

Message error :

# Compiling >>>crypto/Digest.cpp<<<
g++ -Wall -O2 -o release/Digest.o -c ./src/crypto/Digest.cpp -I./include -DPPL7LIB  -I/usr/local/include  -DHAVE_CONFIG_H  -pthread     -I/usr/include     -I/usr/include/mysql -g  -m64 -fPIC  -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -I/usr/include  -I/usr/include           -D_REENTRANT -I/usr/include/SDL2                 -I/usr/include/freetype2 -I/usr/include -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6  
./src/crypto/Digest.cpp: In static member function ‘static unsigned int ppl7::Digest::adler32(const ppl7::ByteArrayPtr&)’:
./src/crypto/Digest.cpp:407:6: erreur: ‘uint32_t’ was not declared in this scope
      uint32_t s1 = 1;
      ^
./src/crypto/Digest.cpp:408:15: erreur: expected ‘;’ before ‘s2’
      uint32_t s2 = 0;
               ^
./src/crypto/Digest.cpp:411:9: erreur: ‘s1’ was not declared in this scope
         s1 = (s1 + buffer[n]) % 65521;
         ^
./src/crypto/Digest.cpp:412:9: erreur: ‘s2’ was not declared in this scope
         s2 = (s2 + s1) % 65521;
         ^
./src/crypto/Digest.cpp:414:14: erreur: ‘s2’ was not declared in this scope
      return (s2 << 16) | s1;
              ^
./src/crypto/Digest.cpp:414:26: erreur: ‘s1’ was not declared in this scope
      return (s2 << 16) | s1;
                          ^
./src/crypto/Digest.cpp:415:3: attention : contrôle a atteint la fin non void de la fonction [-Wreturn-type]
   }
   ^
Makefile:756: recipe for target 'release/Digest.o' failed
``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions