ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/12/29/17:30:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: jimm <jmichae3 AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: pthreads compilation error
Date: Thu, 29 Dec 2011 14:14:26 -0800 (PST)
Organization: http://groups.google.com
Lines: 91
Message-ID: <ba62429d-f6b1-4409-97b5-f7d965aaab5c@t36g2000prj.googlegroups.com>
References: <032816da-42c9-45e7-87f2-516da6fd7455 AT q8g2000yqa DOT googlegroups DOT com>
<ec7c6ee3-d02d-4fa2-b379-ff9781164f58 AT q9g2000yqe DOT googlegroups DOT com>
<61c5267e-a10f-48ef-9db0-c667c4d48474 AT n13g2000prf DOT googlegroups DOT com> <d070dccd-98d5-436d-b3ad-c0d164c06eba AT p16g2000yqd DOT googlegroups DOT com>
NNTP-Posting-Host: 24.22.56.37
Mime-Version: 1.0
X-Trace: posting.google.com 1325196867 15394 127.0.0.1 (29 Dec 2011 22:14:27 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Thu, 29 Dec 2011 22:14:27 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: t36g2000prj.googlegroups.com; posting-host=24.22.56.37; posting-account=05hOMwoAAAB6R8xtiQKzEljSMzgOhVF1
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: HUALESNKRC
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1,gzip(gfe)
Bytes: 4529
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pBTMU1NV024117
Reply-To: djgpp AT delorie DOT com

> It works, you just have to compile it.
>
> wget http://home.broadpark.no/~gvanem/watt32s-2.2-dev.10.zip
> unzip watt32*.zip -d c:\watt32
> c:
> cd \watt32\src
> set WATT_ROOT=c:\watt32
> configur.bat djgpp
> make -f djgpp.mak

Thu 12/29/2011 14:11:59.21|C:\DJC462~1\pth\watt32\src|>make -f
djgpp.mak
../util/nasm32 -f bin -l asmpkt.lst -o asmpkt.bin asmpkt.nas
../util/bin2c asmpkt.bin > pkt_stub.h
'..' is not recognized as an internal or external command,
operable program or batch file.
make: *** [pkt_stub.h] Error 1

Thu 12/29/2011 14:12:11.89|C:\DJC462~1\pth\watt32\src|>


> cd ..\lib
> dir *.a
> (ignore the warnings, wait a few minutes, voila! c:\watt32\lib
> \libwatt.a)
>
> > installed ls80 and all other libraries in DJGPP and gort this:
>
> > In file included from pthreads.cpp:1:0:
> > c:/djc462~1/include/pthread.h:115:53: fatal error: sys/wtime.h: No
> > such file or directory (ENOENT)
>
> > that header is not #included in the source file, so it is somewhere
> > within pthreads.h
>
> I have no idea, libsocket is old and maybe doesn't work too well in
> all cases. I only mentioned it for completeness. Don't use it. Use one
> of the others.
>
> > so I guess pthreads are officially dead on djgpp?
>
> No, they're undead (as I don't think they were ever barely working or
> supported anyways!).    ;-)
>
> > by the way, -pthreads switch gives an error in DJGPP and it should
> > not.
>
> Blame DJ.   ;-)   j/k
>
> > > > Sun 12/25/2011 22:05:23.65|C:\prj\test\djgpp|>
>
> > > > source code is an example fromhttps://computing.llnl.gov/tutorials/pthreads/#Abstract
>
> > > Okay, but you're asking for complications which I can't help with. I'm
> > > don't grok multi-threading, sorry. It's a minefield.
>
> > as long as you know a few simple concepts, then you are safe with some
> > basic threading concepts.
>
> (joking)
> 1). If you think you need them, you don't.
> 2). It's tricky even for enlightened people, so don't waste your time.
> 3). Turbo Boost (tm) is your friend.
> 4). Be patient. Single-threaded isn't so bad.   ;-)
>
> > >http://www.gnu.org/software/pth/
>
> > thanks, I was looking elsewhere for documentation...  I thought pth
> > meant pthreads because they couldn't fit it into an 8.3 filename.
>
> Nope, apparently it's a portable library, e.g. used by GM2 (GNU
> Modula-2) for coroutines.
>
> > > You may have better luck trying FSU Pthreads (see p7zip 9.13) and/or
> > > the examples bundled with the Minix version of FSU (used with
> > > permission):
>
> Yes, do try FSU Pthreads, it has a makefile, it worked building last
> time I tried, but I never fooled with it much. It has to work somewhat
> as p7zip seems to (mostly) work with it (and no socket lib needed).
> Then try the (not really Minix) examples. And yes, *nix stuff is often
> hard to compile, but I can't help that.

can't seem to install it or use it, buggy makefiles
always throws errors because lint isn't there or some other thing.


nothing works, as usual, that isn't pre-compiled.
Jim Michaels

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019