Skip to content
Guest Big Announcement

MTerminal, Fatal error: pthread.h file not found

Featured Replies

Hi, So yesterday I had some problems with terminal but managed to fix it, but now when I'm trying to compile my tweak I'm getting an fatal error:

 

/var/mobile/raftcheat/theos/include/QuartzCore/QuartzCore-Structs.h:10:10: fatal error: pthread.h file not found

#include <pthread.h>

 

I have no idea how to fix this so any tips is highly appreciated :)

Solved by Profq

 pthread.h is missing from your include folder, give me two minutes i'll find all the files for you :)

 

EDIT: 

Download this and goto private/var/theos/ and delete the include folder and replace it with this one. (extract it first)

 

DL: https://www.dropbox.com/s/9eyp0k1khzcghn5/include.zip?dl=0

 

Credits to @Antrax  for the dl

Updated by Cynicaaal

  • Author

 pthread.h is missing from your include folder, give me two minutes i'll find all the files for you :)

 

EDIT: 

Download this and goto private/var/theos/ and delete the include folder and replace it with this one. (extract it first)

 

DL: https://www.dropbox.com/s/9eyp0k1khzcghn5/include.zip?dl=0

 

Credits to @Antrax  for the dl

getting the same error

Updated by Frank Sinatra

Do you have an SDK installed? The pthread.h should be in there at ./sdks/iPhoneOSX.Y.sdk/usr/include/pthread.h if I remember correctly.

Updated by Bummibaer

  • Author

Do you have an SDK installed? The pthread.h should be in there at ./sdks/iPhoneOSX.Y.sdk/usr/include/pthread.h if I remember correctly.

yup, i have 9.2SDK im getting an error if i use 9.3SDK

  • Author

tried that now im getting something with error 134

G-Eazy-Jr:/var/mobile/raftcheat root# make package in
stall
Making all for tweak raftcheat...
make[2]: Nothing to be done for `internal-library-compile'.
Making all in raftcheat...
Making all for bundle raftcheat...
 Copying resource directories into the bundle wrapper...
 Linking bundle raftcheat...
 Stripping raftcheat...
 Signing raftcheat...
Making stage for tweak raftcheat...
Making stage in raftcheat...
Making stage for bundle raftcheat...
make: *** [internal-package] Error 134
G-Eazy-Jr:/var/mobile/raftcheat root# 
  • Author

Run

make package messages=yes

and show your output please.

G-Eazy-Jr:/var/mobile/raftcheat root# make package me
ssages=yes
Making all for tweak raftcheat...
make -f Makefile --no-print-directory --no-keep-going \
                internal-library-compile \
                _THEOS_CURRENT_TYPE=tweak THEOS_CURRENT_INSTANCE=raftcheat _THEOS_CURRENT_OPERATION=compile \
                THEOS_BUILD_DIR="." _THEOS_MAKE_PARALLEL=yes
make[2]: Nothing to be done for `internal-library-compile'.
Making all in raftcheat...
make[1]: Entering directory `/private/var/mobile/raftcheat/raftcheat'
Making all for bundle raftcheat...
mkdir -p "obj/raftcheat.bundle/"
mkdir -p "obj/raftcheat.bundle/"
mkdir -p "obj/raftcheat.bundle/"
for d in Resources; do \
                if [ -d "$d" ]; then \
                        rsync -a "$d/" "./obj/raftcheat.bundle/" --exclude "_MTN" --exclude ".git" --exclude ".svn" --exclude ".DS_Store" --exclude "._*"; \
                else \
                        echo "Warning: ignoring missing bundle resource directory $d."; \
                fi; \
        done
make -f Makefile --no-print-directory --no-keep-going \
                internal-bundle-compile \
                _THEOS_CURRENT_TYPE=bundle THEOS_CURRENT_INSTANCE=raftcheat _THEOS_CURRENT_OPERATION=compile \
                THEOS_BUILD_DIR="." _THEOS_MAKE_PARALLEL=yes
make[3]: Nothing to be done for `internal-bundle-compile'.
make[1]: Leaving directory `/private/var/mobile/raftcheat/raftcheat'
rm -rf "/private/var/mobile/raftcheat/_"
/var/mobile/raftcheat/theos/bin/fakeroot.sh -p "/private/var/mobile/raftcheat/.theos/fakeroot" -c
mkdir -p "/private/var/mobile/raftcheat/_"
[ -d layout ] && rsync -a "layout/" "/private/var/mobile/raftcheat/_" --exclude "DEBIAN" --exclude "_MTN" --exclude ".git" --exclude ".svn" --exclude ".DS_Store" --exclude "._*" || true
Making stage for tweak raftcheat...
mkdir -p "/private/var/mobile/raftcheat/_/Library/MobileSubstrate/DynamicLibraries/"
cp ./obj/raftcheat.dylib "/private/var/mobile/raftcheat/_/Library/MobileSubstrate/DynamicLibraries/"
if [ -f raftcheat.plist ]; then cp raftcheat.plist "/private/var/mobile/raftcheat/_/Library/MobileSubstrate/DynamicLibraries/"; fi
Making stage in raftcheat...
make[1]: Entering directory `/private/var/mobile/raftcheat/raftcheat'
[ -d layout ] && rsync -a "layout/" "/private/var/mobile/raftcheat/_" --exclude "DEBIAN" --exclude "_MTN" --exclude ".git" --exclude ".svn" --exclude ".DS_Store" --exclude "._*" || true
Making stage for bundle raftcheat...
mkdir -p "/private/var/mobile/raftcheat/_/Library/PreferenceBundles/raftcheat.bundle"
rsync -a "./obj/raftcheat.bundle/" "/private/var/mobile/raftcheat/_/Library/PreferenceBundles/raftcheat.bundle"
mkdir -p /private/var/mobile/raftcheat/_/Library/PreferenceLoader/Preferences
cp entry.plist /private/var/mobile/raftcheat/_/Library/PreferenceLoader/Preferences/raftcheat.plist
make[1]: Leaving directory `/private/var/mobile/raftcheat/raftcheat'
mkdir -p "/private/var/mobile/raftcheat/_/DEBIAN"
sed -e '/^[Vv]ersion:/d' "/private/var/mobile/raftcheat/control" > "/private/var/mobile/raftcheat/_/DEBIAN/control"
echo "Version: 1.0.0-2" >> "/private/var/mobile/raftcheat/_/DEBIAN/control"
echo "Installed-Size: 328" >> "/private/var/mobile/raftcheat/_/DEBIAN/control"
COPYFILE_DISABLE=1 /var/mobile/raftcheat/theos/bin/fakeroot.sh -p "/private/var/mobile/raftcheat/.theos/fakeroot" -r dpkg-deb -b "/private/var/mobile/raftcheat/_" "./frank_1.0.0-2_iphoneos-arm.deb" 
dyld: could not load inserted library '/var/mobile/raftcheat/theos/bin/libfauxsu.dylib' because no suitable image found.  Did find:
        /var/mobile/raftcheat/theos/bin/libfauxsu.dylib: required code signature missing for '/var/mobile/raftcheat/theos/bin/libfauxsu.dylib'


/var/mobile/raftcheat/theos/bin/fauxsu: line 43: 25071 Abort trap: 6           "$@"
make: *** [internal-package] Error 134
  • Author

Which version of Theos are you running and where did you get it?

got it from nix.howett.net/theos/

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.