EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  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  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Compiling ChannelArchiver1.9.1 or 1.10.2 on Windows XP
From: Kay-Uwe Kasemir <[email protected]>
To: Wang Yanke <[email protected]>, [email protected]
Date: Mon, 29 Sep 2003 09:48:45 -0600
Hi:

The archiver sources for EPICS base R3.13 require a patch
to the net_convert.h source such that the conversion routines like dbr_ntohd
get exported.

The documentation that comes with the archiver mentions this:

"Use of EPICS base
net_convert.h and osiTime.* might cause compile errors. ...

net_convert.h
....With some versions of EPICS base this has caused problems for WIN32, Linux and other architectures that require byte-swapping: If you get missing dbr_htond messages from the linker, your net_convert.h and convert.c don't export those functions.
Solution: Find where the missing routines are defined in net_convert.h as macros and make sure that they are not disabled, ....
"

The details are a tad different for each R3.13.x,
but most often you can look for #if .... && 0 or #if .... && 1
in net_convert.h and change those such that the conversion
functions get defined.

-Kay


PS:
Since this is admittedly a mess, the R3.14-compatible version of the archiver
has the relevant code copied into the archiver sources,
so change to the EPICS base sources are no longer required
(but then the R3.14 archiver still undergoes tests and doesn't fully work, yet).



At 02:43 9/27/2003, Wang Yanke wrote:
>hi,
>  I'm trying to compile the ChannelArchiver1.9.1 using Visual C++ on
>Windows XP and i get the following output(I ran into the same problem
>when i compile ChannelArchiver1.10.2):
>
>
>gmake[3]: Entering directory
>`D:/project/epics/extensions/src/ChannelArchiver/Manager/O.WIN32'
>link -nologo /WARN:3 /debug         -out:ArchiveManager.exe ascii.obj main.obj    d:/project/epics/base/lib/WIN32/ca.lib  d:/project/epics/base/lib/WIN32/Com.lib   ../../../../lib/WIN32/ToolsObj.lib ../../../../lib/WIN32/ChanArchIOObj.lib ws2_32.lib   
>LINK : warning LNK4005: no objects used from library C:\Program Files\Microsoft Visual Studio\VC98\lib\OLDNAMES.lib
>LINK : warning LNK4005: no objects used from library C:\Program Files\Microsoft Visual Studio\VC98\lib\uuid.lib
>ChanArchIOObj.lib(BinValue.obj) : error LNK2001: unresolved external symbol _dbr_ntohd
>ChanArchIOObj.lib(DataFile.obj) : error LNK2001: unresolved external symbol _dbr_ntohd
>ChanArchIOObj.lib(BinValue.obj) : error LNK2001: unresolved external symbol _dbr_ntohf
>ChanArchIOObj.lib(BinCtrlInfo.obj) : error LNK2001: unresolved external symbol _dbr_ntohf
>ChanArchIOObj.lib(BinValue.obj) : error LNK2001: unresolved external symbol _dbr_htond
>ChanArchIOObj.lib(DataFile.obj) : error LNK2001: unresolved external symbol _dbr_htond
>ChanArchIOObj.lib(BinValue.obj) : error LNK2001: unresolved external symbol _dbr_htonf
>ChanArchIOObj.lib(BinCtrlInfo.obj) : error LNK2001: unresolved external symbol _dbr_htonf
>ArchiveManager.exe : fatal error LNK1120: 4 unresolved externals
>gmake[3]: *** [ArchiveManager.exe] Error 1120
>gmake[3]: Leaving directory `D:/project/epics/extensions/src/ChannelArchiver/Manager/O.WIN32'
>gmake[2]: *** [ArchiveManager.exe] Error 2
>gmake[2]: Leaving directory `D:/project/epics/extensions/src/ChannelArchiver/Manager/O.WIN32'
>gmake[1]: *** [install.WIN32] Error 2
>gmake[1]: Leaving directory `D:/project/epics/extensions/src/ChannelArchiver/Manager'
>gmake: *** [all] Error 2
>
>
>  Can anyone help me to resolve this problem?
>
>Best Regards,
>=============================================
>Wang Yanke
>[email protected]
>National Synchrotron Radiation Laboratory
>University of Science and Technology of China
>Heifei, Anhui, China
>=============================================


References:
Compiling ChannelArchiver1.9.1 or 1.10.2 on Windows XP Wang Yanke

Navigate by Date:
Prev: RE: Compiling ChannelArchiver1.9.1 or 1.10.2 on Windows XP Kiman Ha
Next: seq 2.0.6 Laznovsky, Michael
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Compiling ChannelArchiver1.9.1 or 1.10.2 on Windows XP Wang Yanke
Next: RE: Compiling ChannelArchiver1.9.1 or 1.10.2 on Windows XP Kiman Ha
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·