Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» MacOSX - forked.net   » Compile Problems   » gtkhx and pthread

UBBFriend: Email this page to someone!    
Author Topic: gtkhx and pthread
psyba
Junior Member
Member # 193

posted October 28, 2001 09:54 AM      Profile for psyba   Email psyba   Send New Private Message      Edit/Delete Post  Reply With Quote 
Trying to compile ghx 0.8.8 and I get this error during make:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"\" -I/usr/local/include -I. -I.. -I../intl -Wall -D_REENTRANT -D_GNU_SOURCE -pthread -g -O2 -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/X11R6/include -g -pipe -pipe -fno-common -no-cpp-precomp -flat_namespace -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -I/System/Library/Perl/darwin/CORE -traditional-cpp -c options.c
gcc: unrecognized option `-pthread'

I have been told pthread is broken in os x, does anyone know where I can get the library's source or how to fix the borken link?


Posts: 14 | From: Lewiston, Maine | Registered: Oct 2001  |  IP: Logged
psyba
Junior Member
Member # 193

posted October 29, 2001 08:59 AM      Profile for psyba   Email psyba   Send New Private Message      Edit/Delete Post  Reply With Quote 
After further research, it looks liek pthread might not be the issue, I'll post to rest of the error when I get home. I would really like to see this ported tho. Sorry for all the spam, I am quick to announce new things I have learned to help others, correct or not.

-psyba


Posts: 14 | From: Lewiston, Maine | Registered: Oct 2001  |  IP: Logged
psyba
Junior Member
Member # 193

posted October 29, 2001 09:10 AM      Profile for psyba   Email psyba   Send New Private Message      Edit/Delete Post  Reply With Quote 
this is the error:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"\" -I/usr/local/include
NTRANT -D_GNU_SOURCE -pthread -g -O2 -I/usr/local/include/gtk-1.2 -I/usr/l
clude -I/usr/X11R6/include -traditional-cpp -c options.c
gcc: unrecognized option `-pthread'
In file included from options.c:42:
dfa.h:326: parse error before `int'
options.c: In function `init_variables':
options.c:270: invalid operands to binary |
options.c: In function `prefs_allocate':
options.c:472: `RE_CHAR_CLASSES' undeclared (first use in this function)
options.c:472: (Each undeclared identifier is reported only once
options.c:472: for each function it appears in.)
options.c:472: `RE_CONTEXT_INDEP_ANCHORS' undeclared (first use in this function
options.c:473: `RE_CONTEXT_INDEP_OPS' undeclared (first use in this function)
options.c:473: `RE_HAT_LISTS_NOT_NEWLINE' undeclared (first use in this function
options.c:474: `RE_NEWLINE_ALT' undeclared (first use in this function)
options.c:474: `RE_NO_BK_PARENS' undeclared (first use in this function)
options.c:474: `RE_NO_BK_VBAR' undeclared (first use in this function)
options.c: In function `options_change':
options.c:782: `RE_CHAR_CLASSES' undeclared (first use in this function)
options.c:782: `RE_CONTEXT_INDEP_ANCHORS' undeclared (first use in this function
options.c:783: `RE_CONTEXT_INDEP_OPS' undeclared (first use in this function)
options.c:783: `RE_HAT_LISTS_NOT_NEWLINE' undeclared (first use in this function
options.c:784: `RE_NEWLINE_ALT' undeclared (first use in this function)
options.c:784: `RE_NO_BK_PARENS' undeclared (first use in this function)
options.c:784: `RE_NO_BK_VBAR' undeclared (first use in this function)
make[2]: *** [options.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
[localhost syba/Public/gtkhx-0.8.8] root#


I have pin pointed all the errors in the code, I just don't see what exactly is wrong with the code. I get a whole slew of new errors when messing with gtkhx 0.8.9, if anyone would like to help me port this.


Posts: 14 | From: Lewiston, Maine | Registered: Oct 2001  |  IP: Logged
jerome
Member
Member # 184

posted October 29, 2001 11:19 AM      Profile for jerome        Edit/Delete Post  Reply With Quote 
-pthread? shouldn't it be -lpthread ?
-jerome

Posts: 18 | From: nowhere | Registered: Oct 2001  |  IP: Logged
psyba
Junior Member
Member # 193

posted October 29, 2001 11:53 AM      Profile for psyba   Email psyba   Send New Private Message      Edit/Delete Post  Reply With Quote 
No, pthread is something called by gcc, and is not calling the library I guess(from what I was told). I tried that actually, and still got the same errors. It has something to do with and error in dfa.h which is called by options.c and causes it to mess up. I don't understand the code so I can't fix it.... Ignore -pthread all together, it isn't causing the troubles I don't believe, that same error happens with every other source file before it and they compile fine.

[ October 29, 2001: Message edited by: psyba ]


Posts: 14 | From: Lewiston, Maine | Registered: Oct 2001  |  IP: Logged
psyba
Junior Member
Member # 193

posted October 29, 2001 12:09 PM      Profile for psyba   Email psyba   Send New Private Message      Edit/Delete Post  Reply With Quote 
This is the line of code where it fails:

code:
  
/* dfasyntax() takes three arguments; the first sets the syntax bits described
earlier in this file, the second sets the case-folding flag, and the
third specifies the line terminator. */
extern void dfasyntax PARAMS ((reg_syntax_t, int, int));

I don't see a class(assuming it should be a class) reg_syntac_t being defined or described in that file. It could be in one of the includes, but I am guessing not because of the error? options.c calls that function, leaving more undefines. I really just don't know.....

I would rather see gtkhx 0.8.9 ported, but I get a whole new set of errors. When I download the source there is a broken alias to config.sub, which makes no sense to me at all.... I tried removing that and get more errors, and more..... that's why I am focussing on 0.8.8, seams easier

[ October 29, 2001: Message edited by: psyba ]


Posts: 14 | From: Lewiston, Maine | Registered: Oct 2001  |  IP: Logged
willy wonka
Member
Member # 32

posted November 01, 2001 04:13 PM      Profile for willy wonka   Author's Homepage        Edit/Delete Post  Reply With Quote 
i'm probably talking out of my ass, but it looks more like not a problem with pthread, or with the file, but with make's attempt to use pthread. or maybe gcc's attempt to use pthread. which version of the developers tools are you running?

--------------------

--

-willy
"Freedom will henceforth be compulsory." -Random Party Manifesto


Posts: 92 | Registered: Aug 2001  |  IP: Logged

All times are Pacific Time  

Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Hop To:

Contact Us | macosx.forked.net

Powered by Infopop Corporation
Ultimate Bulletin BoardTM 6.1.0.2