Re: [ROOT] root can't be compiled on FreeBSD of ix86?

From: celacunza@netscape.net
Date: Fri Nov 10 2000 - 10:00:06 MET


hi Hucheng.

there are many problems.

first of all, try these settings in MyConfig.mk:

     EXTRA_CXXFLAGS+=-DUSE_SOCKLEN_T -O0
     INSTALL:=cp -pR
     INSTALLDATA:=cp -pR
     X11TTFLIBEXTRA=-Llib -lGX11
     TREEPLAYERLIBEXTRA=-Llib -lProof

that should get true type fonts working and some other stuff.

the -O0 switch isn't really necessary.
i put it there because the optimizer in gcc-2.95.2 eats up
200MB of memory compiling TAttParticle.cxx and TDatabasePDG.cxx.
if you have enough RAM, you can leave it off.

you may also need to repair the root-config script.
run this command

     root-config --libs --glibs --cflags

and see if it reports the right directories.
on my system, it reports this

     $(ROOTSYS)/lib
     $(ROOTSYS)/include

but ROOT actually installed things here:

     $(ROOTSYS)/lib/root
     $(ROOTSYS)/include/root

if you have that problem too, you'll need to fix it
before you can compile any of the tests that come with ROOT.

in addition, some of those tests are shared objects which
will fail at run time (due to unresolved symbols) so you will 
also need to add the line indicated below

     ifeq ($(ARCH),freebsd4)
     # FreeBSD with glibc
     CXX           = g++
     CXXFLAGS      = -O -pipe -W -Wall -fPIC
     LD            = g++
     LDFLAGS       = -O
>    LDFLAGS      += $(ROOTGLIBS)
     SOFLAGS       = -shared -Wl,-x
     endif

to the Makefile in $(ROOTSYS)/doc/root/test/.

good luck.
you'll need it.

-- christian.

ps.
i don't know why CINT is complaining about ios::bin.
you should ask Masaharu about that.


"Hucheng CHEN" <chc@bnl.gov> wrote:
>
> Hi, Christian:
> 
> Thank you very much for your reply, I have compiled root on FreeBSD almost
> successfully. I have still two questions, after I install and run it, there
> is a warning prompt:
> 
> Warning: Automatic variable ios::bin allocated in global scope
> FILE:/usr/local/cern/root/share/root/cint/include/iosenum.h LINE:17
> 
> If I try to use Ture Type Fonts, there will be error info about
> libGX11TTF.so loading:
> 
> dlopen error: /usr/local/cern/root/lib/root/libGX11TTF.so: Undefined symbol
> "__ti5TGX11"
> Load Error: Dynamic link library /usr/local/cern/root/lib/root/libGX11TTF.so
> can not load
> 
> In fact I can find libGX11TTF.so in /usr/local/cern/root/lib/root/
> directory, I don't know why it can't be loaded correctly. Would you please
> give me some advice? Thank you very much.
> 
> Best Regards,
> 
> Hucheng
> -----------------------------------------------------------------
>  ------------------------------   Hucheng CHEN
>      _/_/_/_/   _/    _/   _/     Omega Group
>     _/    _/   _/_/  _/   _/      Physics Department
>    _/_/_/     _/ _/ _/   _/       Building 510
>   _/    _/   _/  _/_/   _/        P. O. Box 5000
>  _/_/_/_/   _/    _/   _/_/_/_/   Brookhaven National Laboratory
>  Brookhaven National Laboratory   Upton, NY 11973-5000
>  ------------------------------   USA
> --------------------------------  Tel: +1-631-344-3468
>  Home Phone: +1-631-344-1210      Fax: +1-631-344-5568
>  URL: http://www.bnl.gov          E-Mail: chc@bnl.gov
>       http://www.phy.bnl.gov              Hucheng.Chen@cern.ch
> -----------------------------------------------------------------
> ----- Original Message -----
> From: <celacunza@netscape.net>
> To: "Hucheng CHEN" <chc@bnl.gov>
> Cc: <roottalk@pcroot.cern.ch>
> Sent: Monday, November 06, 2000 1:38 AM
> Subject: Re: [ROOT] root can't be compiled on FreeBSD of ix86?
> 
> 
> >
> > hi Hucheng.
> >
> > create MyConfig.mk in the top level ROOT directory
> > and put these lines in it:
> >
> >      EXTRA_CXXFLAGS+=-DUSE_SOCKLEN_T
> >      INSTALL:=cp -pR
> >      INSTALLDATA:=cp -pR
> >
> > the first line will fix the problem compiling net.cxx
> > and the other two lines are necessary for "gmake install".
> >
> > -- christian.
> >
> >
> > > Hi, rooters:
> > >
> > > Does anyone compile root on FreeBSD 4.1.1 successfully? I try to
> configure
> > > it by ./configure freebsd4, but because of some errors of net.cxx file
> it
> > > aborts during compiling.
> > >
> > > Would you please give me some advice? Thank you very much.
> > >
> > > Hucheng
> 
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET