EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: dm2k not compiling :(
From: Heinrich du Toit <[email protected]>
Cc: [email protected]
Date: Tue, 14 Aug 2007 14:53:50 +0200
I have ubuntu version 6.01 I think.
running kernel 2.6.20-15-generic
gcc version 4.1.2
libc6 package version = 2.5-0ubunutu
I have - /lib/libc-2.5.so and /lib/libc.so.6

I don't think it's something with my linux.
I think I totally wrecked dm2k trying to get it to compile :(
Maybe you can upload your dm2k source somewhere?




On Tue, 2007-08-14 at 21:39 +0900, guobao shen wrote:
> It is casued by the library version.
> 
> Which linux distribution do you use?  What is the version?
> 
> I tried it on Scientific Linux (3.0.4, 4.0.2 or 4.0.3?) and Fedora Core 5. 
> I did not have such problem.
> 
> Guobao
> 
> > -----Original Message-----
> > From: [email protected] 
> > [mailto:[email protected]] On Behalf Of Heinrich du Toit
> > Sent: Tuesday, August 14, 2007 9:20 PM
> > Cc: [email protected]
> > Subject: RE: dm2k not compiling :(
> > 
> > no good :(
> > I commented out the dld stuff in the Makefile's 
> > 
> > Now I get:
> > /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section 
> > .tbss mismatches non-TLS reference in 
> > ../../../../lib/linux-x86//libPrintUtils.a(xwd.o)
> > /lib/libc.so.6: could not read symbols: Bad value
> > collect2: ld returned 1 exit status
> > 
> > I guess this is bad?
> > 
> > On Tue, 2007-08-14 at 20:57 +0900, guobao shen wrote:
> > > Hi Heinrich,
> > > 
> > > I compiled the DM2K on my Scientific Linux, and did those 
> > exactly you did.
> > > To pass the compilation, I also commented the dld library 
> > out. It ran 
> > > smoothly on my pc.
> > > 
> > > Guobao
> > > J-PARC Control Group
> > > 
> > > > -----Original Message-----
> > > > From: [email protected] 
> > > > [mailto:[email protected]] On Behalf Of 
> > Heinrich du Toit
> > > > Sent: Tuesday, August 14, 2007 7:37 PM
> > > > To: TechTalk EPICS
> > > > Subject: dm2k not compiling :(
> > > > 
> > > > I have many problems getting dm2k to compile
> > > > 
> > > > first of all under graphX/printUtils in dsimple.c:
> > > > I had to remove the char*malloc; stuff Added stdlib.h include.
> > > > 
> > > > Also had to fixup char*calloc; somewhere .
> > > > 
> > > > Then it had #include <xpm.h>
> > > > So I had to make a symlink to X11/xpm.h
> > > > 
> > > > then in resourcePallette.c:
> > > > I had to add: define FLDNAME_SZ 4
> > > > as for some reason it doesn't get that from the correct .h file.. 
> > > > even if I add #include "dm2kCdev.h" ??
> > > > 
> > > > And now finally it breaks on:
> > > > g++: /usr/lib/libdld.1: No such file or directory
> > > > 
> > > > here is the last part of the output from running make:
> > > > 
> > > > 
> > > > make[2]: Entering directory
> > > > `/home/heinrich/EPICS/extensions/src/dm2k-2.5.3/dm2k/O.linux-x86'
> > > > make[3]: Entering directory
> > > > `/home/heinrich/EPICS/extensions/src/dm2k-2.5.3/dm2k/O.linux-x86'
> > > > ../Makefile.Host:410: warning: overriding commands for 
> > target `dm2k'
> > > > /home/heinrich/EPICS/base-3.14.9/config/RULES.Host:428: warning:
> > > > ignoring old commands for target `dm2k'
> > > > g++ -ansi -pedantic -o dm2k -g  -Wall -Woverloaded-virtual
> > > > -Wwrite-strings -Wconversion -Wpointer-arith -Winline   
> > -I../../graphX
> > > > -I../../xc -I. -DCONFIG_NO_TEAR_OFF -DPROMPT_TO_EXIT=0 
> > > > -DBUILT_AT="\"Tue Aug 14 12:34:32 SAST 2007\""
> > > > -DBUILT_BY="\"heinrich\""
> > > > -DDM2K_HELP_PATH="\"http://help.bessy.de/Dm2k\""; -DUSE_XPM
> > > > -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/X11 
> > > > -I/usr/X11R6/include -I/usr/X11R6/include/X11 
> > > > -I/usr/contrib/X11R5/include -D_X86_ -Dlinux -fPIC -D_REENTRANT  
> > > > -DUNIX -D_BSD_SOURCE -DEXPL_TEMPL -I. -I..
> > > > -I../../../../include/os/Linux -I../../../../include 
> > > > -I/home/heinrich/EPICS/base-3.14.9/include/os/Linux
> > > > -I/home/heinrich/EPICS/base-3.14.9/include
> > > > -D_POSIX_C_SOURCE=199506L      -L../../../../lib/linux-x86/
> > > > -L/home/heinrich/EPICS/base-3.14.9/lib/linux-x86/ 
> > /usr/lib/libdld.1
> > > > -Wl,-rpath,/home/heinrich/EPICS/extensions/lib/linux-x86
> > > > -Wl,-rpath,/home/heinrich/EPICS/base-3.14.9/lib/linux-x86
> > > > -Wl,-rpath,/home/heinrich/EPICS/base-3.14.9/lib/linux-x86
> > > > -Wl,-rpath,../../../../lib/linux-x86 actions.o amDialog.o 
> > > > browserHelp.o callbacks.o channelPalette.o colorPalette.o 
> > display.o 
> > > > dmInit.o eventHandlers.o faceplateBase.o faceplateGUI.o 
> > > > faceplateGUICallback.o faceplateDm2k.o getArchiveData.o help.o 
> > > > help_protocol.o dm2k.o dm2kArc.o dm2kBar.o dm2kByte.o 
> > > > dm2kCartesianPlot.o dm2kChoiceButtons.o dm2kCommon.o 
> > dm2kComposite.o 
> > > > dm2kControl.o dm2kDelay.o dm2kDynSymbol.o dm2kImage.o 
> > > > dm2kIndicator.o dm2kMenu.o dm2kMessageButton.o dm2kMeter.o 
> > > > dm2kMonitor.o dm2kOval.o dm2kPixmap.o dm2kPolygon.o 
> > dm2kPolyline.o 
> > > > dm2kRectangle.o dm2kRelatedDisplay.o dm2kShellCommand.o 
> > > > dm2kStripChart.o dm2kText.o dm2kTextEntry.o dm2kTextUpdate.o 
> > > > dm2kValuator.o dm2kWidget.o objectPalette.o productDescription.o 
> > > > resourcePalette.o shared.o
> > > > updateMonitors.o utils.o xgif.o clipbd.o dm2kCA.o    
> > -lJpt -lXpm -lca
> > > > -lCom -lUnix -lANLwidgets -lPrintUtils -lGraphX -lXm -lXt 
> > -lX11 -lXext
> > > > -lXmu  -lm -lXp -lSM -lICE -ldl   -lpthread -lreadline 
> > -lcurses -lrt
> > > > -lm
> > > > g++: /usr/lib/libdld.1: No such file or directory
> > > > make[3]: *** [dm2k] Error 1
> > > > make[3]: Leaving directory
> > > > `/home/heinrich/EPICS/extensions/src/dm2k-2.5.3/dm2k/O.linux-x86'
> > > > make[2]: *** [dm2k] Error 2
> > > > make[2]: Leaving directory
> > > > `/home/heinrich/EPICS/extensions/src/dm2k-2.5.3/dm2k/O.linux-x86'
> > > > make[1]: *** [buildInstall.linux-x86] Error 2
> > > > make[1]: Leaving directory
> > > > `/home/heinrich/EPICS/extensions/src/dm2k-2.5.3/dm2k'
> > > > make: *** [dm2k.buildInstall] Error 2
> > > > 
> > > > 
> > > > I'm not trying to compile with CDEV
> > > > I do have: /usr/lib/libdl.so ect
> > > > what is libdld ?
> > > > 
> > > > -Heinrich
> > > > 
> > > > 
> > > > 
> > > 
> > 
> 


Replies:
RE: dm2k not compiling :( guobao shen
References:
RE: dm2k not compiling :( guobao shen

Navigate by Date:
Prev: RE: dm2k not compiling :( guobao shen
Next: Re: a technicality ? Kay-Uwe Kasemir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: dm2k not compiling :( guobao shen
Next: RE: dm2k not compiling :( guobao shen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·