EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: Problem in compiling WebCA
From: Stefan Heim <[email protected]>
To: Umashankar Panda <[email protected]>
Cc: [email protected]
Date: Wed, 03 Sep 2008 17:43:46 +0200
Hi,

On Thu, 2008-08-21 at 14:07 +0530, Umashankar Panda wrote:
> I am facing this problem while compling WebCA 1.1.0. What can be the
> probable cause?
> [...]
> /usr/bin/g++ -c   -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
> -D_XOPEN_SOURCE=500        -D_X86_  -DUNIX  -D_BSD_SOURCE -Dlinux
> -D_REENTRANT -DEMBED_CA_REPEATER  -I../../../gecko-sdk/include  -ansi
> -O3  -Wall          -g -fPIC -I. -I.. -I../../../include/os/Linux
> -I../../../include
> -I/home/umashankar/epics/base-3.14.9/include/os/Linux
> -I/home/umashankar/epics/base-3.14.9/include        ../plugin.cpp
> ../plugin.cpp: In function 'char* stringValue(const NPString&)':
> ../plugin.cpp:48: error: 'strncpy' was not declared in this scope
> ../plugin.cpp: In member function 'virtual bool
> ScriptablePluginObject::GetProperty(void*, NPVariant*)':
> ../plugin.cpp:354: error: 'strdup' was not declared in this scope
> ../plugin.cpp:354: error: 'strlen' was not declared in this scope
> ../plugin.cpp:359: error: 'strdup' was not declared in this scope
> ../plugin.cpp:359: error: 'strlen' was not declared in this scope
> ../plugin.cpp: In function 'void push_connection_event(CPlugin*,
> [...]

looks like you are very likely using gcc >= 4.1 (check output of "g++
--version") and are missing a

#include <cstring>

line at the top of npca/src/plugin.cpp . Just put the line there and it
will compile.

HTH,
-Stefan


References:
Problem in compiling WebCA Umashankar Panda

Navigate by Date:
Prev: Alias PV gateway seems unreliable Angelic Ebbers
Next: Re: RTEMS vs VxWorks Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Problem in compiling WebCA Tom Pelaia
Next: EPICS in Industrial setting David Dudley
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·