gtkhx and pthread

Find out how to get that @*&^$&@ thing to compile!

gtkhx and pthread

Postby psyba » Sun Oct 28, 2001 5:54 pm

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?
psyba
 
Posts: 14
Joined: Fri Oct 26, 2001 7:00 pm
Location: Lewiston, Maine

Re: gtkhx and pthread

Postby psyba » Mon Oct 29, 2001 4:59 pm

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
psyba
 
Posts: 14
Joined: Fri Oct 26, 2001 7:00 pm
Location: Lewiston, Maine

Re: gtkhx and pthread

Postby psyba » Mon Oct 29, 2001 5:10 pm

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 [img]images/icons/tongue.gif"%20border="0[/img]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.
psyba
 
Posts: 14
Joined: Fri Oct 26, 2001 7:00 pm
Location: Lewiston, Maine

Re: gtkhx and pthread

Postby jerome » Mon Oct 29, 2001 7:19 pm

-pthread? shouldn't it be -lpthread ?
-jerome
jerome
 
Posts: 18
Joined: Sun Oct 21, 2001 7:00 pm
Location: nowhere

Re: gtkhx and pthread

Postby psyba » Mon Oct 29, 2001 7:53 pm

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 ]
psyba
 
Posts: 14
Joined: Fri Oct 26, 2001 7:00 pm
Location: Lewiston, Maine

Re: gtkhx and pthread

Postby psyba » Tue Oct 30, 2001 8:09 am

This is the line of code where it fails:

<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><HR><pre>
/* 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));
</pre>[/quote]

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 [img]images/icons/smile.gif"%20border="0[/img]

[ October 29, 2001: Message edited by: psyba ]
psyba
 
Posts: 14
Joined: Fri Oct 26, 2001 7:00 pm
Location: Lewiston, Maine

Re: gtkhx and pthread

Postby orange1 » Fri Nov 02, 2001 12:13 am

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
orange1
 
Posts: 92
Joined: Tue Aug 21, 2001 7:00 pm


Return to Compile Problems

Who is online

Users browsing this forum: No registered users and 12 guests

cron