This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++ compiler cannot create executables.


On Mon, 19 Mar 2001, Alexandre Oliva wrote:
> What is it that you think is wrong with this file?  Looks reasonable
> to me...
It looked that way to me as well.

> >configure:2543: gcc -o conftest -g -O2   conftest.c  1>&5
> >/tmp/ccKP70uF.o: In function `main':
> >/root/tar/php-4.0.4pl1/configure:2538: undefined reference to
> >`pthread_mutexattr_init' > /root/tar/php-4.0.4pl1/configure:2539: undefined
> >reference to `pthread_create'

> Looks like the PHP configure is missing the flags to link the threads
> library in.  Or maybe it does that later on?  I.e., it has nothing to
> do with GCC.
Don't really know enough about this to even comment.

> >/usr/bin/ld: cannot find -lqt

> So, it couldn't find the qt library.  Again, why do you think this is
> a problem in GCC?
Yes. That and X11. But the only reason I emailed this list is that the exact
same package has worked severel times before. In fact, it worked several times
the same day before it gave up. I am not saying that it is gcc. On the other
hand, gcc is the one that errors and I was hoping someone who knew enough about
it could point me to the real problem.

I believe due to the problems with gcc not being able to find X11 or qt that
there might be a problem with the linker or maybe ldconfig. I believe the
problem might be related to the running of ldconfig to add a lib path
(something I have done several times before without problems).

At any rate, can you give me a clue as to where the real problem might reside?

--
Lewis Bergman
Texas Communications
4309 Maple St.
Abilene, TX 79602
915-695-6962


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]