Re: [ROOT] Problem with signal/slot in macro: Fink problem??

From: Remi Mommsen (remigius.mommsen@cern.ch)
Date: Sun Dec 07 2003 - 21:23:59 MET


Hi,

I'm sorry for responding late, but I had a hard disk crash )-; Anyhow, 
I'm now up and running again.

Frankly, I've lost the line of discussion with Eddie, as it is quite 
hard to follow a discussion when you hear only one side.... Therefore, 
I would be glad if someone could summarise the current problem and 
maybe send a nice simple example of the current problem(s).

However, I tried your old example (testconnect) on my Mac (OS X 10.3.1 
with newest fink and root 3.10/01 from fink, i.e. release version) 
before and after the hard disk crash. I have exactly the same problems 
as Christian describes in his first mail. Of interest might be, that I 
first upgraded my machine from 10.2.8 to 10.3.1 (no clean install, just 
recompiled those fink packages which had to), while after the crash I 
started off with a clean disk, a clean install and fresh compiled fink 
packages (beside those which were available from fink bin dist which 
weren't many).

Just one comment on Fink (the Fink program) versions: I cannot imagine 
how the Fink version can cause any differences in the application 
programs. Fink just handles the package dependencies, version 
management and so forth. It does not interfere in the way the packages 
are build or which packages are used by a given package. Therefore the 
crucial point would be to compare package versions.

Cheers,
		Remi


On Dec 7, 2003, at 8:09 AM, cstrato wrote:

> Dear Eddie
>
> 1. The EXTRA_CCFLAGS problem is solved, I got trapped
>    in the <cr> on Mac vs <lf> on Linux difference.
>
> 4. According to your list, I am using a newer version
>    of fink: Fink 0.16.2
>    I am also enclosing my list. Like you, I compiled
>    the source of the packages using FinkCommander.
>
> I am afraid that my problem might be caused by my newer
> version of Fink, since on Jaguar with the old Fink
> version I did not have this problem.
>
> Best regards
> Christian
>
> Edmond Offermann wrote:
>
>> Dear Christian,
>> 1. Not being a "make" specialist, I believe
>>    that variables are initialized empty,
>>    so EXTRA_CCFLAGS += is in our case equal to
>>    EXTRA_CCFLAGS =
>> There must still be something wrong in your
>> MyConfig.mk file, any hidden characters ??
>> Just try once
>> CC =
>> EXTRA_CCFLAGS +=
>> CXX =
>> LD =
>> EXTRA_CXXFLAGS +=
>> EXTRA_LDFLAGS =
>> XLIBS +=
>> 2. The fact that radioGui shows more libraries
>>     is ok because you linked in the Makefile
>>    through GLIBS to all the graphic libraries
>>    In root/cint it is pulled in through
>>    // The following libs are also useful to have, make
>> sure they are loaded...
>>    gROOT->LoadClass("TGeometry",   "Graf3d");
>>    gROOT->LoadClass("TTree",       "Tree");
>>    gROOT->LoadClass("TMatrix",     "Matrix");
>>    gROOT->LoadClass("TMinuit",     "Minuit");
>>    gROOT->LoadClass("TPostScript", "Postscript");
>>    gROOT->LoadClass("TCanvas",     "Gpad");
>>    gROOT->LoadClass("THtml",       "Html");
>> in rint/src/TRint.cxx
>> 4. my gcc_select gives exactly what you have
>>    fink --help   gives: Fink 0.16.0
>>    I have attached the list of "fink list" that
>>    I have installed.
>>    Let me stress again that I did not install
>>    through dselect but used fink install which
>>    gets the source file ande compiles it on your
>>    machine
>> Eddy
>> --- cstrato <cstrato@aon.at> wrote:
>>> Dear Eddy
>>>
>>> 1, Sorry, the missing "\" was my mistake, however,
>>> correcting
>>>    it did not help. I still get the following error
>>> when compiling:
>>>
>>> Makefile:307: main/src/ssh2rpd.d: No such file or
>>> directory
>>> Makefile:309: build/dummy.d: No such file or
>>> directory
>>> EXTRA_CCFLAGS +=
>>> -I/Users/testuser/ROOT/cern/include/root-3.10.01/ -DPower_Macintosh 
>>> -DDarwin -Wall
>>> -Wmissing-prototypes -Wno-unknown-pragmas -pipe -fsigned-char 
>>> -fno-common
>>> -D_REENTRANT -g EXTRA_CXXFLAGS +=
>>> -I/Users/testuser/ROOT/cern/include/root-3.10.01/ -DPower_Macintosh 
>>> -DDarwin EXTRA_LDFLAGS = -Llib 
>>> -L/Users/testuser/ROOT/cern/lib/root-3.10.01/ 
>>> -L/Users/testuser/ROOT/cern -O -pipe -W -Wall
>>> -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude 
>>> -DHAVE_CONFIG -DINCLUDEDIR=\"/usr/include\" -DOBJSUFFIX=\".o\" -o 
>>> build/rmkdepend/cppsetup.o -c
>>> build/rmkdepend/cppsetup.c
>>> EXTRA_CCFLAGS: Command not found
>>> make: *** [build/rmkdepend/cppsetup.o] Error 127
>>>
>>>    As you see, the command EXTRA_CCFLAGS is not
>>> found.
>>>    I tried to look in google, it should be defined
>>> in
>>>    /usr/share/lib/make/make.rules, however, this
>>> path
>>>    does not exist, and searching the disk for
>>> "make.rules"
>>>    did not give any results.
>>>    Do you know, where EXTRA_CCFLAGS should be
>>> defined?
>>>    In your last mail you mention that EXTRA_xx are
>>> used in
>>>    all Makefiles in the config directory, but there
>>> they
>>>    are not defined?
>>>
>>> 2, Currently, I learn a lot from you. I tested the
>>> command
>>>    "otool" with the following results for root.exe
>>> and for
>>>    radioGui. It seems that radioGui loads more
>>> libraries
>>>    than root.exe:
>>>
>>> otool -L /Users/rabbitus/ROOT/root/bin/root.exe
>>> /Users/rabbitus/ROOT/root/bin/root.exe:
>>>         /Users/rabbitus/ROOT/root/lib/libCore.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>         /Users/rabbitus/ROOT/root/lib/libCint.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>         /Users/rabbitus/ROOT/root/lib/libHist.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>         /Users/rabbitus/ROOT/root/lib/libGraf.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>        /Users/rabbitus/ROOT/root/lib/libGraf3d.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>         /Users/rabbitus/ROOT/root/lib/libTree.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>        /Users/rabbitus/ROOT/root/lib/libMatrix.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>         /Users/rabbitus/ROOT/root/lib/libRint.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>         /usr/lib/libSystem.B.dylib (compatibility
>>> version 1.0.0, current version 71.0.0)
>>>
>>> otool -L radioGui
>>> radioGui:
>>>         libGuiUtilsX.dylib (compatibility version
>>> 0.0.0, current version 0.0.0)
>>>         /Users/rabbitus/ROOT/root/lib/libCore.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>         /Users/rabbitus/ROOT/root/lib/libCint.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>         /Users/rabbitus/ROOT/root/lib/libHist.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>         /Users/rabbitus/ROOT/root/lib/libGraf.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>        /Users/rabbitus/ROOT/root/lib/libGraf3d.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>         /Users/rabbitus/ROOT/root/lib/libGpad.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>         /Users/rabbitus/ROOT/root/lib/libTree.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>         /Users/rabbitus/ROOT/root/lib/libRint.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>        /Users/rabbitus/ROOT/root/lib/libPostscript.dylib 
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>        /Users/rabbitus/ROOT/root/lib/libMatrix.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>        /Users/rabbitus/ROOT/root/lib/libPhysics.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>         /Users/rabbitus/ROOT/root/lib/libGui.dylib
>>> (compatibility version 0.0.0, current version 0.0.0)
>>>         /usr/lib/libSystem.B.dylib (compatibility
>>> version 1.0.0, current version 71.0.0)
>>>
>>> 3, I followed your suggestion with:
>>>   "gSystem->Load("/blah/bla/.../libGuiUtilsX.so");"
>>>    Sorrowly, this does not have any effect on the
>>> outcome.
>>>
>>> 4, With regard to your guess that I am loading an
>>> outdated library:
>>>    I deleted my HD before doing a clean install of
>>> Panther and XCode,
>>>    however as Apple Developer I received Panther
>>> directly from ADC.
>>>    "gcc_select" gives:
>>>    gcc version 3.3 20030304 (Apple Computer, Inc.
>>> build 1495)
>>>    I have installed the newest Fink 0.6.2 Binary
>>> Installer and
>>>    installed the necessary packages from source
>>> code.
>>>    I am always downloading the newest root version
>>> from CVS.
>>>    Therefore, it is not quite clear to me which
>>> library could
>>>    be outdated?
>>>
>>> BTW, I cc the mail to roottalk, since your
>>> suggestions might
>>> also be of interest to others, and maybe the other
>>> MacRooters
>>> might also have some ideas.
>>>
>>> Best regards and thank you for your continuous help
>>> Christian
>>>
>>>
>>> Edmond Offermann wrote:
>>>
>>>> Dear Christian,
>>>>
>>>> Make sure that "everything" is on one (!) line
>>>> so
>>>> EXTRA_CCFLAGS += blah
>>>>
>>>> or
>>>> EXTRA_CCFLAGS += \
>>>> blah
>>>>
>>>> but not
>>>> EXTRA_CCFLAGS +=
>>>> blah
>>>>
>>>> Coming back to your problem . I am afraid that
>>>
>>> these
>>>
>>>> compiler/loader flags are not going to solve your
>>>> problem > I think that you are loading an outdated
>>>> library either from root/apple or fink .
>>>>
>>>> An interesting way to check what you are actually
>>>> loading is done through the "otool" command .
>>>> For instance, in order to see which libraries
>>>> are loaded through the "root" command, I give
>>>> the following otool command (see man otool):
>>>>
>>>> otool -L
>>>
>>> /Users/eddyo/cern/bin/root-3.10.00/root.exe
>>>
>>>> /Users/eddyo/cern/bin/root-3.10.00/root.exe:
>>>>
>>>
>> === message truncated ===
> (i)  apt               0.5.4-35      Advanced front-end for dpkg
> (i)  apt-shlibs        0.5.4-35      Advanced front-end for dpkg
>  i   base-files        1.8.0-1       Directory infrastructure
>  i   bzip2             1.0.2-12      Block-sorting file compressor
>  i   bzip2-dev         1.0.2-12      Developer files for bzip2 package
>  i   bzip2-shlibs      1.0.2-12      Shared libraries for bzip2 package
>  i   cctools           495-1         [virtual package representing the 
> developer ...
>  i   cctools-extra     20030516-2    Extra software from cctools
>  i   cctools-single-m  1.0-1         [virtual package, your dev tools 
> support -si...
>  i   darwin            7.0.0-1       [virtual package representing the 
> kernel]
>  i   debianutils       1.23-11       Misc. utilities specific to 
> Debian (and Fink)
>  i   dlcompat          20030629-15   Dynamic loading compatibility 
> library (dummy)
>  i   dlcompat-dev      20030629-15   Dynamic loading compatibility 
> library dev pa...
>  i   dlcompat-shlibs   20030629-15   shared libraries for dlcompat
> (i)  dpkg              1.10.9-27     The Debian package manager
>  i   enscript          1.6.1-1       Converts text files to PostScript
>  i   fink              0.16.2-1      The Fink package manager
> (i)  fink-prebinding   0.5-1         Tools for enabling prebinding in 
> Fink
> (i)  gdbm              1.8.0-7       GNU dbm library
> (i)  gdbm-shlibs       1.8.0-7       Shared libraries for gdbm package
>  i   gettext           0.10.40-17    Message localization support
>  i   gettext-bin       0.10.40-17    Executables for gettext package
>  i   gettext-dev       0.10.40-17    Developer files for gettext 
> package
> (i)  giflib-bin        4.1.0-17      GIF image format handling 
> library, LZW-enabl...
> (i)  giflib-shlibs     4.1.0-17      GIF image format handling 
> library, LZW-enabl...
>  i   gzip              1.2.4a-6      The gzip file compressor
>  i   libiconv          1.9.1-11      Character set conversion library
>  i   libiconv-bin      1.9.1-11      Executables for libiconv package
>  i   libiconv-dev      1.9.1-11      Developer files for libiconv 
> package
>  i   libjpeg           6b-6          JPEG image format handling library
>  i   libjpeg-bin       6b-6          Executables for libjpeg package
>  i   libjpeg-shlibs    6b-6          Shared libraries for libjpeg 
> package
> (i)  libpng3           1.2.5-14      PNG image format handling library
> (i)  libpng3-shlibs    1.2.5-14      Shared libraries for libpng3 
> package
>  i   libtiff           3.5.7-7       TIFF image format library and 
> tools
>  i   libtiff-bin       3.5.7-7       Executables for libtiff package
>  i   libtiff-shlibs    3.5.7-7       Shared libraries for libtiff 
> package
>  i   libungif          4.1.0final-2  GIF image format handling 
> library, LZW-free ...
>  i   macosx            10.3.1-1      [virtual package representing the 
> system]
> (i)  ncurses           5.3-20031018  Full-screen ascii drawing library
>  i   ncurses-dev       5.3-20031018  Development files for ncurses 
> package
>  i   ncurses-shlibs    5.3-20031018  Shared libraries for ncurses 
> package
>  i   openmotif3        2.2.2-5       Official Implementation of 
> OSF/Motif (2.2 exp)
>  i   openmotif3-shlib  2.2.2-5       Official Implementation of 
> OSF/Motif (2.2 exp)
>  i   storable-pm       1.0.14-6      Placeholder for versioned 
> Storable packages
>  i   storable-pm560    1.0.14-3      Perl module for persistent data 
> structures, ...
>  i   system-java13     1.3.1-1       [virtual package representing 
> Java 1.3.1]
>  i   system-java13-de  1.3.1-1       [virtual package representing 
> Java 1.3.1 dev...
>  i   system-java14     1.4.1-1       [virtual package representing 
> Java 1.4.1]
>  i   system-java14-de  1.4.1-1       [virtual package representing 
> Java 1.4.1 dev...
>  i   system-perl       5.8.1-1       [virtual package representing 
> perl]
>  i   system-xfree86    2:4.3-1       [placeholder for user installed 
> x11]
> (i)  tar               1.13.25-11    GNU tar - tape archiver
> (i)  unzip             5.50-14       Decompression compatible with 
> pkunzip
>  i   windowmaker       0.80.1-3      GNUstep (NeXT-like) Window Manager
>  i   windowmaker-shli  0.80.1-3      GNUstep (NeXT-like) Window Manager
>  i   xaw3d             1.5-5         Athena widget set with 3D look
>  i   xaw3d-shlibs      1.5-5         Athena widget set with 3D look
>  i   xemacs            21.4.9-14     Highly customizable text editor
>  i   xemacs-base-pkg   1.71-1        Basic files needed for xemacs 
> package instal...
>  i   xemacs-efs-pkg    1.29-1        Allows xemacs to fetch files from 
> the FTP si...
>


---------------------------------------------------------------------
Computers are like air-conditioners, they stop working properly when
you open Windows.                                         (Anonymous)

*********************************************************************
Remigius K. Mommsen                 e-mail: mommsen@slac.stanford.edu
University of California, Irvine       URL:    http://cern.ch/mommsen
c/o SLAC                             voice:        ++1 (650) 926-3595
2575 Sand Hill Road #35                fax:        ++1 (650) 926-3882
Menlo Park, CA 94025, US              home:        ++1 (650) 233-9041
*********************************************************************



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET