compile problem on OS X 10.4.1

Pete Wyckoff pw at osc.edu
Mon Aug 22 18:08:36 EDT 2005


dbertram at osc.edu wrote on Mon, 22 Aug 2005 16:56 -0400:
> Compiling for 10.4.1(tiger) leaves 3 undefined symbols.  
> Everything else *looks* clean...
> 
> What breaks:
> gcc  -o mpiexec mpiexec.o get_hosts.o start_tasks.o task.o event.o
> util.o config.o stdio.o growstr.o pmi.o gm.o ib.o p4.o rai.o
> concurrent.o exedist.o -L/usr/local/torque/lib -lpbs -llog
> ld: Undefined symbols:
> _fprintf$LDBLStub
> _snprintf$LDBLStub
> _sprintf$LDBLStub
> make: *** [mpiexec] Error 1
> 
> Any ideas of how to fix this?

You might google around a bit; it's likely a mac-specific thing as
those are bog-standard symbols lots of programs use.  One page said
to add "-lSystemStubs" at the end of the link line.  Another said to
use gcc 3.3 instead of 4.0.  Neither of these answers is very
satisfactory.  Perhaps you compiled torque with a different compiler
than you're trying to use for mpiexec?

If you figure it out, let us all know.  I can add a hack to the
configure.in script if necessary.

		-- Pete


More information about the mpiexec mailing list