Bug 1151 - undefined reference to `_mpi_sgi_init'
Summary: undefined reference to `_mpi_sgi_init'
Status: RESOLVED DUPLICATE of bug 1150
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.16
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-02 13:41 UTC by Andreas Pfeil
Modified: 2005-08-07 13:57 UTC (History)
1 user (show)

See Also:
Host: mips-sgi-irix6.5
Target: mips-sgi-irix6.5
Build: mips-sgi-irix6.5
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Pfeil 2005-08-02 13:41:07 UTC
-bash3-3.00$ gcc -v
Using built-in specs.
Target: mips-sgi-irix6.5
Configured with: ../gcc-4.0.0/configure --cache-file=../configure.cache
--prefix=/usr/gnu --bindir=/usr/gnu/bin --sbindir=/usr/gnu/sbin
--libdir=/usr/gnu/lib32 --disable-nls --disable-multilib --disable-intl
--with-gnu-as --with-as=/usr/gnu/bin/mips-sgi-irix6.5-as --with-gnu-ld
--with-ld=/usr/gnu/bin/mips-sgi-irix6.5-ld --enable-languages=c,c++
Thread model: single
gcc version 4.0.0


Problem:
When linking the executable with -lC or -lpthreads the linker (GNU ld version
2.16 complains:

/usr/lib/../lib32/libC.so: undefined reference to `_mpi_sgi_init'
/usr/lib32/libpthread.so: undefined reference to `_mpi_sgi_init'

This makes compiling a lot of programms impossible. , (Qt and Motif for example,
but also gdb).

Comandline:
g++ -fno-exceptions -o sliders .obj/debug-shared/main.o
.obj/debug-shared/slidersgroup.o .obj/debug-shared/window.o
.obj/debug-shared/moc_slidersgroup.o .obj/debug-shared/moc_window.o  
-L/usr/compile/Trolltech/Qt/qt-x11-commercial-desktop-4.0.0/lib
-L/usr/compile/Trolltech/Qt/qt-x11-commercial-desktop-4.0.0/lib -lQtGui_debug
-lSM -lICE -lXext -lX11 -lm -lQtCore_debug -lC -lpthread
Comment 1 H.J. Lu 2005-08-07 13:57:50 UTC

*** This bug has been marked as a duplicate of 1150 ***