[Wien] Compile errors
Jeff Spirko
spirko at lehigh.edu
Tue Jul 15 17:51:03 CEST 2003
In order to compile things -static in Linux, you need the .a files
that correspond to the .so.# files that are normally used. For
example, for libpthread, the file /lib/libpthread.so.0 comes with
the glibc package that is normally installed. For static
compilation, /usr/lib/libpthread.a is required, which comes with the
glibc-devel package. The current trend is to include the static
libraries only with development packages.
On the other hand, I don't know of any real reason why you can't
just avoid static compilation. Any libraries that are only
available in the static .a form (like SRC_lib/libatlas_athlon.a)
will be linked statically anyway.
On Tue, Jul 15, 2003 at 11:24:34AM -0400, H. Demers wrote:
> Try without the -static Linker Flags, this is how I have it compiled on
> Red Hat 9 with the work around.
>
> Michael Frotscher wrote:
> >Hello, Wien-ML,
> >
> ...
> this is exactly the kind of error I have with the static flag:
>
> /opt/intel/compiler70/ia32/lib/libunwind.a(ptn_ix86.o)(.text+0x76): In
> function `.B2.2':
> : undefined reference to `pthread_mutex_unlock'
> make: *** [spaghetti] Error 1
>
> Good luck!
>
> Hendrix
>
> ps: Moderator: Sorry, I have post with the wrong mail account.
>
> _______________________________________________
> Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
--
Jeff Spirko spirko at lehigh.edu spirko at yahoo.com WD3V |=>
The study of non-linear physics is like the study of non-elephant biology.
All theoretical chemistry is really physics;
and all theoretical chemists know it. -- Richard P. Feynman
More information about the Wien
mailing list