Re: Linking Event.cxx problem

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Mar 23 2000 - 11:36:27 MET


To run the test programs in $ROOTSYS/test, use the standard makefile
in this directory. Simply do
gmake

to build all test programs.

The list of compile options to be used (see makefile) can be seen via
  root-config --cflags

It is important to compile with the same options that have been used
in building the Root shared libs.

Rene Brun

Yongzhao Zhou wrote:
> 
> Hi, Rooters,
> I tried to make program Event.cxx from $ROOT/test on HP-UX B.10.20 and AIX
> Version 4 under ROOT v2.23. When the codes of Event was linked I got the
> messages as
> 
> on HP-UX:
>   CC -b -g +a1 -z Event.o  EventDict.o -o libEvent.so
>   /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (Event.o) was
>       detected. The linked output may not run on a PA 1.x system.
>   /usr/ccs/bin/ld: DP relative code in file Event.o - shared library must
>       be position
>   independent.  Use +z or +Z to recompile.
>   *** Error exit code 1
>   Stop.
> 
> on AIX:
>   /usr/ibmcxx/bin/makeC++SharedLib -o libEvent.so -L/kloe/soft/onl/root/v2
>      .23/AIX/lib -lNew -lCore -lCint  -lHist -lGraf -lGraf3d -lGpad -lTree
>      -lRint -lPostscript  -lMatrix -lPhysics -p 0 Event.o  EventDict.o
>   ld: 0711-224 WARNING: Duplicate symbol: __priority0x80000000
>   ld: 0711-224 WARNING: Duplicate symbol: .__priority0x80000000
>   ld: 0711-224 WARNING: Duplicate symbol: __cdtors
>   ld: 0711-224 WARNING: Duplicate symbol: .operator<<(TBuffer&,const
>       TObject*)
>   ld: 0711-224 WARNING: Duplicate symbol: operator<<(TBuffer&,const
>       TObject*)
>   ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
>       information.
> 
>   xlC -g Event.o  EventDict.o -L/kloe/soft/onl/root/v2.23/AIX/lib -lNew
>       -lCore -lCint  -lHist -lGraf -lGraf3d -lGpad -lTree -lRint
>       -lPostscript -lMatrix -lPhysics -o Event
>   ld: 0711-224 WARNING: Duplicate symbol: .operator<<(TBuffer&,const
>       TObject*)
>   ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
>       information.
>   ld: 0711-317 ERROR: Undefined symbol: .main
>       make: 1254-004 The error code from the last command is 8.
> 
> I don't know what happened here.
> Thanks a lot for any help.
> Best,
> ZYZ
> 
> ----
> Yongzhao Zhou, KLOE, LNF, INFN, Italy
> Tel:39-06-94032696 Fax:39-06-94032427



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