From: Loren James Rittle <rittle@latour.rsch.comm.mot.com>
To: jwilkins@madscience.dyndns.org
Cc: gcc@gcc.gnu.org
Subject: Re: gcc 2.95.2 and pthreads on FreeBSD 3.4
Date: Mon, 20 Mar 2000 14:42:00 -0000 [thread overview]
Message-ID: <200003202240.QAA58738@latour.rsch.comm.mot.com> (raw)
> I just installed gcc 2.95.2 through the ports system on a FreeBSD 3.4
> machine. I then changed the Makefile for an application I am working on
> to refer to gcc295 instead of gcc.
> When I try to build the app, it compiles fine, but complains at the link
> phase as follows:
> gcc295 -g -pg -pthread -O [FILES].o -lpcap -o [TARGET]
> utils.o: In function `my_read':
> /home/jwilkins/[app]/utils.c:288: undefined reference to
[...]
> If I remove the -pthread option and use -lpthread instead, everything
> resolves, but I get a bus error on execution...
> It seems to be some sort of naming problem, as pthread_create is found..
If you can send me a small testcase that displays the problem, then I
would be happy to look at the problem.
Also, exactly which port from /usr/port did you install? What options
did you give make? And what is the exact CVS version number of the
Makefile (found with: grep '$FreeBSD' /usr/ports/lang/egcs/Makefile)?
Regards,
Loren
next reply other threads:[~2000-03-20 14:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-20 14:42 Loren James Rittle [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-03-18 20:43 Jonathan Wilkins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200003202240.QAA58738@latour.rsch.comm.mot.com \
--to=rittle@latour.rsch.comm.mot.com \
--cc=gcc@gcc.gnu.org \
--cc=jwilkins@madscience.dyndns.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).