Menu

Errors in installation of SDPA-QD

Thomas
2018-03-26
2018-03-29
  • Thomas

    Thomas - 2018-03-26

    Hello there,

    I am looking to use the QD variant of SDPA, and have been following the relevant installation instructions. I can install the QD library no problem, but when I try to make SDPA-qd I get the following error many times:

    ../../Utilities/MM.h:47:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
    "\n ALLOCATE error : bytes %d, line %d, file %s", \
    ^
    basics.c:27:1: note: in expansion of macro 'ALLOCATE'
    ALLOCATE(etree, struct _ETree, 1) ;
    ^

    However, the make then stops with the following:

    In file included from init.c:4:0:
    ../../timings.h:5:24: error: storage size of 'TZ' isn't known
    static struct timezone TZ ;

    How do I avoid this issue?

    Kind Regards,

    Tom

     
  • Makoto Yamashita

    Thank you very much for your interst on SDPA.

    Now, timezone is defined in, for example, /usr/include/x86_64-linux-gnu/sys/time.h.
    Could you try #include ?

    Best Regards,
    Makoto Yamashita

     
  • Thomas

    Thomas - 2018-03-28

    Dear Makoto,

    A fellow student has managed to fix the problem - by changing the timings.h file in spooles/build so that
    //static struct timezone TZ ;

    is commented out
    and
    gettimeofday(&TV, TZ) ; \
    is replaced by
    gettimeofday(&TV, NULL) ; \

    • the MakeFile for spooles also needs to be editited, so that the files are not extracted from archive each time. - commenting out the line

      rm -rf build ; mkdir build ; cd build ; tar xvfz ../archive/spooles.2.2.tgz

    does this.

    • this is because in the current version of time.h TZ is considered "obselete" and so protected by a featuretestmacro - we believe TZ could be safely replaced by a null pointer.

    Kind Regards,
    Tom

     
  • Makoto Yamashita

    Thanks a lot for the fix.

    We appreciate your support.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.