[Nexus-developers] Problem installing NeXus 3.0.0 on Mac OS X
Akeroyd, FA (Freddie)
F.A.Akeroyd at rl.ac.uk
Tue Jul 26 10:15:43 BST 2005
There seems to be a problem with linking c and c++ together on Darwin in
some cases when using gcc 4 as the C++ compiler still uses gcc 3. You
may be able to get round it by forcing the default c compiler to be gcc3
(i think the command is called gcc_select or you could specify
--with-cc=gcc3 to configure). Alternatively, it should be fixed by
adding the extra library
-lSystemStubs
To the link line - I've added a check for this library to the download
http://nexus.isis.rl.ac.uk/kits/nexus-latest.tar.gz
As to the other problem, if you run the command
ranlib /usr/local/lib/libmxml.a
Does that fix it?
Freddie
> -----Original Message-----
> From: nexus-developers-bounces at anl.gov [mailto:nexus-developers-
> bounces at anl.gov] On Behalf Of Bilheux, Jean-Christophe (j35)
> Sent: 25 July 2005 18:52
> To: nexus-developers at anl.gov
> Subject: [Nexus-developers] Problem installing NeXus 3.0.0 on Mac OS X
>
> Hello everybody,
>
> Michael Reuters (that I would like to thank another time) and I tried
to
> install again NeXus 3.0.0 on my Mac OS X. Here are the problems we
had.
>
> I attached first the current.env and current.machine files describing
the
> system I use.
>
> First we downloaded the HDF4 source (latest official realease: 4.2r1)
> Before we compiles and installed it, we had to install the jpeg
libraries
> (libjpeg, libjpeg-bin and libjpeg-shlibs). To do that we used the
> FinkCommander.
>
> The compile and make went smoothly.
>
> Then we did the downloaded the xml library. We tried the Mini-XML
2.2.2
> and
> the FreeBSD port 2.2.2 versions. Both seemed to compile and make
correctly
> but here are the error message we get when we try to "make" into
nexus-
> 3.0.0
>
>
> ld: warning -L: directory name (/lib) does not exist
> ld: table of contents for archive: /usr/local/lib/libmxml.a is out of
> date;
> rerun ranlib(1) (can't load from it)
> /usr/bin/libtool: internal link edit command failed
>
> When we try the same thing without xml
>
> ./configure --without-xml
>
> Here what we get:
>
> g++ -g -O2 -o nxdir main.o string_util.o tree.o data.o data_writer.o
> -Wl,-bind_at_load -L/usr/local/lib ../../src/.libs/libNeXus.a -lmfhdf
-
> ldf
> /sw/lib/libjpeg.a /usr/local/lib/libxml2.a -ldl -lpthread
> /usr/lib/libiconv.dylib /Users/j35/hdf5-1.6.4/hdf5/lib/libhdf5.a -lm
-lz
> ld: Undefined symbols:
> _fprintf$LDBLStub
> _sprintf$LDBLStub
> make[2]: *** [nxdir] Error 1
>
> I can't wait to work on NeXus 3.0.0 so I hope you will be able to help
me
> solving this problem. Thanks a lot to all of you.
>
> Jean
>
>
> ---------
> Jean-Christophe Bilheux
> Spallation Neutron Source
> Oak Ridge National Laboratory
> Oak Ridge, TN, 37831
> K210A - MS 6361
> Work phone:(865)241-6969
> Work Fax:(865)241-5991
>
>
>
More information about the NeXus-developers
mailing list