Menu

#249 Can't build without threads: fatal error: threads.h: No such file or directory

djview
closed
nobody
None
5
2015-02-09
2015-02-08
Jakub Wilk
No

I wanted to build DjVuLibre 3.5.25.3 without threads (./configure --disable-threads), but it failed to build:

/bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -Wno-non-virtual-dtor        -c GOS.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -Wno-non-virtual-dtor -c GOS.cpp  -fPIC -DPIC -o .libs/GOS.o
In file included from GOS.cpp:64:0:
GThreads.h:139:21: fatal error: threads.h: No such file or directory
 #include <threads.h>

Related

Bugs: #249

Discussion

  • Leon Bottou

    Leon Bottou - 2015-02-08

    Dear Jakub,

    This bug does not exist with more recent versions of djvulibre. Note that
    djvulibre does not run correctly without threads anyway. Therefore I've
    changed the configure script to abort when no threading package is found.

    If you really want to try without threads, take the 3.5.25.3 code base
    and remove the three lines involving MACTHREADS in GThreads.h. Then it will
    compile. But it will not run correctly in all circumstances. Only the simplest
    djvu files can be decoded without threads...

    • L.

    On Sunday, February 08, 2015 03:22:46 PM Jakub Wilk wrote:


    [bugs:#249] Can't build without threads: fatal error: threads.h: No such
    file or directory

    Status: open
    Group: djview
    Created: Sun Feb 08, 2015 03:22 PM UTC by Jakub Wilk
    Last Updated: Sun Feb 08, 2015 03:22 PM UTC
    Owner: nobody

    I wanted to build DjVuLibre 3.5.25.3 without threads (./configure --disable-threads), but it failed to build:

    /bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I.. -I.
    

    -DNDEBUG -Wall -O3 -Wno-non-virtual-dtor -c GOS.cpp libtool:
    compile: g++ -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3
    -Wno-non-virtual-dtor -c GOS.cpp -fPIC -DPIC -o .libs/GOS.o In file
    included from GOS.cpp:64:0:
    GThreads.h:139:21: fatal error: threads.h: No such file or directory
    #include <threads.h>


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/djvu/bugs/249/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #249

  • Leon Bottou

    Leon Bottou - 2015-02-09
    • status: open --> closed
     

Log in to post a comment.