make error: misc.c:312: error: ‘ERR_CANNOT_READ_FROM_POOL’ undeclared (first use in this function)

Issue #7 resolved
Marcel Evenson created an issue

It seems that ERR_CANNOT_READ_FROM_POOL is used in function ‘get_random_bytes’ but misc.c does not include errmsg.h so it fails.

Fix is to include errmsg.h to misc.c and misc.h:

misc.c: In function ‘get_random_bytes’: misc.c:312: error: ‘ERR_CANNOT_READ_FROM_POOL’ undeclared (first use in this function) misc.c:312: error: (Each undeclared identifier is reported only once misc.c:312: error: for each function it appears in.) make[1]: *** [misc.o] Error 1

Comments (4)

  1. Marcel Evenson reporter

    Here is the relevant error when I make:

    #!
    # make
    Making all in src
    make[1]: Entering directory `/root/jsuto-clapf-66023b69cab4/src'
    gcc -O2 -Wall -g -I/usr/include/mysql -fPIC -I. -I..  -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC  -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -D_GNU_SOURCE -DHAVE_ANTIVIRUS -DHAVE_TRE -DHAVE_GSL -DHAVE_CLAMD -DNEED_MYSQL -c dirs.c -o dirs.o
    dirs.c: In function ‘createdir’:
    dirs.c:24: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result
    gcc -O2 -Wall -g -I/usr/include/mysql -fPIC -I. -I..  -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC  -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -D_GNU_SOURCE -DHAVE_ANTIVIRUS -DHAVE_TRE -DHAVE_GSL -DHAVE_CLAMD -DNEED_MYSQL -c misc.c -o misc.o
    misc.c: In function ‘get_random_bytes’:
    misc.c:312: error: ‘ERR_CANNOT_READ_FROM_POOL’ undeclared (first use in this function)
    misc.c:312: error: (Each undeclared identifier is reported only once
    misc.c:312: error: for each function it appears in.)
    make[1]: *** [misc.o] Error 1
    make[1]: Leaving directory `/root/jsuto-clapf-66023b69cab4/src'
    
  2. Janos SUTO repo owner

    errmsg.h is included from clapf.h which is referenced by misc.c. I'll check it on centos6 as well.

  3. Log in to comment