[FLASH-USERS] error in compiling Sedov example - FIXED

Justin T Parsons justin-parsons at uiowa.edu
Wed Oct 1 22:06:07 EDT 2008


Hello

Here is an update on a problem I had a while back.

After putting the problem on the back burner for quite a while I revisited
it this week.  I fiddled about for a while and I found that building HDF5
(1.6.7) from source eliminated the error.  Oddly enough, I encountered this
error on two very different machines.

Cheers,
:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-
Justin Parsons
http://jussn.beevomit.org
:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-


On Tue, Aug 19, 2008 at 4:37 PM, Paul M. Rich <richp at flash.uchicago.edu>wrote:

> Justin,
>
> I've seen things like this happen like this before and these look like
> they are from libpthread.  Effectively it is a dependency of a
> dependency.  Are you linking statically or dynamically in your
> Makefile.h?  You can try manually including that library in your
> Makefile.h to ensure that these symbols are defined.
>
> Does that help?
>
> Paul Rich
> --------------------------------
> richp at flash.uchicago.edu
> ASC Flash Center
> University of Chicago
>
>
> Parsons, Justin T wrote:
> > Greetings!
> >
> > I'm in the process of testing my FLASH install and familiarizing myself
> with the code.  I've been trying to compile the Sedov problem but keep
> running in to this error:
> >
> > --ERROR--
> > /home/jussn/mpich2-install/lib/libmpich.a(simple_pmi.o): In function
> `PMI_Init':
> > simple_pmi.c:(.text+0x1fcd): warning: Using 'gethostbyname' in statically
> linked applicatio
> > ns requires at runtime the shared libraries from the glibc version used
> for linking
> > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/librt.a(aio_misc.o): In
> function `__aio_e
> > nqueue_request':
> > (.text+0x1c3): undefined reference to `pthread_getschedparam'
> > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/librt.a(aio_misc.o): In
> function `__aio_e
> > nqueue_request':
> > (.text+0x2dd): undefined reference to `pthread_cond_signal'
> > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/librt.a(aio_misc.o): In
> function `__aio_e
> > nqueue_request':
> > (.text+0x3f7): undefined reference to `pthread_attr_init'
> > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/librt.a(aio_misc.o): In
> function `__aio_e
> > nqueue_request':
> > (.text+0x407): undefined reference to `pthread_attr_setdetachstate'
> > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/librt.a(aio_misc.o): In
> function `__aio_e
> > nqueue_request':
> > (.text+0x41c): undefined reference to `pthread_attr_setstacksize'
> > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/librt.a(aio_misc.o): In
> function `__aio_e
> > nqueue_request':
> > (.text+0x489): undefined reference to `pthread_attr_destroy'
> > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/librt.a(aio_misc.o): In
> function `handle_
> > fildes_io':
> > (.text+0x676): undefined reference to `pthread_getschedparam'
> > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/librt.a(aio_misc.o): In
> function `handle_
> > fildes_io':
> > (.text+0x6bd): undefined reference to `pthread_setschedparam'
> > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/librt.a(aio_misc.o): In
> function `handle_
> > fildes_io':
> > (.text+0x790): undefined reference to `pthread_cond_signal'
> > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/librt.a(aio_misc.o): In
> function `handle_
> > fildes_io':
> > (.text+0x9d1): undefined reference to `pthread_attr_init'
> > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/librt.a(aio_misc.o): In
> function `handle_
> > fildes_io':
> > (.text+0x9e1): undefined reference to `pthread_attr_setdetachstate'
> > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/librt.a(aio_misc.o): In
> function `handle_
> > fildes_io':
> > (.text+0xa7c): undefined reference to `pthread_cond_timedwait'
> > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/librt.a(aio_notify.o):
> In function `__aio
> > _notify_only':
> > (.text+0xa9): undefined reference to `pthread_attr_init'
> > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/librt.a(aio_notify.o):
> In function `__aio
> > _notify_only':
> > (.text+0xb9): undefined reference to `pthread_attr_setdetachstate'
> > collect2: ld returned 1 exit status
> > make: *** [flash3] Error 1
> > --ERROR--
> >
> > I'm not quite sure where to go from here.  Makefile.h in my "object" dir
> has the correct paths and, I believe, I've installed all necessary libraries
> and deps.  Any tips?
> >
> > System is Ubuntu 8.04 with AMD 32bit.
> >
> >
> > Cheers
> > Justin Parsons
> > http://jussn.beevomit.org
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20081001/0d1a0132/attachment.htm>


More information about the flash-users mailing list