Hi

Usually a parse error means some form of format problem. With the C languages,
it tends to be mismatched braces or parentheses or a missing ";". In this case,
the problem will be before the section you cut out, it's just that the compiler 
finally got confused here. Mismatched braces would be my guess here, though
that would only be a starting point.

Ed Hoeffner
1-271 BSBE
312 Church St. SE
Mpls, MN 55455
hoeffner at dcmir.med.umn.edu
612-625-2115
612-625-2163 fax

On Thu, Apr 25, 2002 at 04:02:08PM -0500, Chuck Milam wrote:
>=20
>=20
> gcc -Wall -I. -I/usr/local/include -I/usr/include -I/usr/include/pcap=20
> -I/usr/include/pcap/net `libnet-config --defines`   -c -o detect.o=20
> detect.c
> detect.c: In function `thread_init':
> detect.c:124: parse error before `{'
> detect.c:125: parse error before `{'
> make: *** [detect.o] Error 1
>=20
[snip]
>=20
> void thread_init()
> {
>   tag =3D 0;
>   th_mutex =3D PTHREAD_MUTEX_INITIALIZER;
>   local_mutex =3D PTHREAD_COND_INITIALIZER;
> }
>=20
Grep /usr/include for thread_init. It might be already defined inline
somewhere.

florin

--=20

"If it's not broken, let's fix it till it is."

41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4

--32u276st3Jlj2kUU
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8yJDmNLPgdTuQ3+QRApKsAJ9rNa1gpMeo97hnNWBluHWGhhEbzQCfZiGx
pNdKt+XO9ugV/VXijYNqTYk=
=ZgsI
-----END PGP SIGNATURE-----

--32u276st3Jlj2kUU--
_______________________________________________
Twin Cities Linux Users Group Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org
tclug-list at mn-linux.org
https://mailman.mn-linux.org/mailman/listinfo/tclug-list