public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* AIX 4.3 link problem
@ 1999-07-14 17:06 Nick Godbey
  0 siblings, 0 replies; only message in thread
From: Nick Godbey @ 1999-07-14 17:06 UTC (permalink / raw)
  To: egcs-bugs

OS: AIX 4.3.2
egcs 1.1.2
linker AIX's linker

I understand that I need to compile with -static
flag to g++. When I don't the programs cores on
multi-threaded operation. When I do I get 
unresovled externals.

g++ -static junk.o -o junk -lpthreads -lc_r -lm_r

ld: 0711-317 ERROR: Undefined symbol: thread_unlock
ld: 0711-317 ERROR: Undefined symbol: thread_waitact
ld: 0711-317 ERROR: Undefined symbol: thread_setmystate_fast
ld: 0711-317 ERROR: Undefined symbol: thread_tsleep
ld: 0711-317 ERROR: Undefined symbol: thread_twakeup
ld: 0711-317 ERROR: Undefined symbol: thread_setstate
ld: 0711-317 ERROR: Undefined symbol: thread_terminate_ack
ld: 0711-317 ERROR: Undefined symbol: thread_setmystate
ld: 0711-317 ERROR: Undefined symbol: thread_tsleep_event
ld: 0711-317 ERROR: Undefined symbol: thread_waitlock_local
ld: 0711-317 ERROR: Undefined symbol: thread_waitlock
ld: 0711-317 ERROR: Undefined symbol: thread_kill
ld: 0711-317 ERROR: Undefined symbol: thread_twakeup_event
ld: 0711-317 ERROR: Undefined symbol: thread_getregs
ld: 0711-317 ERROR: Undefined symbol: thread_init
ld: 0711-317 ERROR: Undefined symbol: thread_setstate_fast
ld: 0711-317 ERROR: Undefined symbol: thread_terminate_unloc


the symbols are in the pthreads library?

thanx
>From mrs@wrs.com Wed Jul 14 19:14:00 1999
From: mrs@wrs.com (Mike Stump)
To: egcs-bugs@egcs.cygnus.com, hjl@varesearch.com
Cc: libc-hacker@sourceware.cygnus.com
Subject: Re: A bad gcc 2.95 bug
Date: Wed, 14 Jul 1999 19:14:00 -0000
Message-id: <199907150214.TAA24755@kankakee.wrs.com>
X-SW-Source: 1999-07/msg00546.html
Content-length: 377

> To: egcs-bugs@egcs.cygnus.com
> Date: Wed, 14 Jul 1999 12:32:06 -0700 (PDT)
> Cc: libc-hacker@sourceware.cygnus.com (GNU C Library)
> From: hjl@varesearch.com (H.J. Lu)

> That is a bug fixed for egcs 1.1.2. Why does it return in gcc 2.95?
> It will screw up glibc. It has to be fixed in gcc 2.95.

I don't understand the bug.  I do understand the error in the code,
though.
>From anthony@accesscable.net Wed Jul 14 20:02:00 1999
From: "Anthony Yuen" <anthony@accesscable.net>
To: <egcs-bugs@egcs.cygnus.com>
Subject: Internal Compiler Error 252
Date: Wed, 14 Jul 1999 20:02:00 -0000
Message-id: <001701bece6e$55cbda20$17028a18@anthony.accesscable.net>
X-SW-Source: 1999-07/msg00547.html
Content-length: 1698

home:~/CPP/Source/YCore$
/usr/local/bin/g++ -v --save-temps -fexceptions -I/home/yuen/CPP/Include
-DLINUX -O2 -c YMain.cpp

Reading specs from
/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)

/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.66/cpp -lang-c++ -v
 -I/home/yuen/CPP/Include
-undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF_
_ -Dunix -Di386 -D__i386__
-Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__ -D__unix -D_
_i386 -D__linux
-Asystem(posix) -D__EXCEPTIONS -D__OPTIMIZE__ -Asystem(unix) -Acpu(i386) -A
machine(i386) -Di386
-D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro 
-D__pentiumpro__ -DLINUX
YMain.cpp YMain.ii
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /home/yuen/CPP/Include
 /usr/local/include/g++
 /usr/local/include
 /usr/local/i686-pc-linux-gnulibc1/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.66/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.66/cc1plus
YMain.ii -quiet -dumpbase YMain.cc
-O2 -version -fexceptions -o YMain.s
GNU C++ version egcs-2.91.66 19990314 (egcs-1.1.2 release)
(i686-pc-linux-gnulibc1) compiled by GNU C
version egcs-2.91.66 19990314 (egcs-1.1.2 release).
YMain.cpp: In function `const class type_info & __tfc()':
YMain.cpp:222: Internal compiler error 252.
YMain.cpp:222: Please submit a full bug report to
`egcs-bugs@egcs.cygnus.com'.
YMain.cpp:222: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for
details.





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-07-14 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-14 17:06 AIX 4.3 link problem Nick Godbey

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).