Hi all,
I have the following scenario but strlcpy is not supported in GCC4.1 and that's the C compiler i am using .
Does anyone know of a similar way this canbe achieved ..
if (strlcpy(addr.s path, options.cpath,
sizeof(addr.spa th)) >= sizeof(addr.spa th)
User Profile
Collapse
-
a replacement for strlcpy
-
GCC 4.1.1 on redhat 4.5
Hi,
Does anyone know how Ican use inline function calls when i have optimize turned off like so -00 -ggdb so that i can have debug symbols for debugging .
I am using gcc version 4.1.1 I have been looking on the gcc man pages and having no luck in finding the solution ...
In order for iinline functions it needs to have -02 (optimise level switched on)
Any one know what i could use -
GNU LINKER gcc2.15 with GCC4.1.1
Hi all,
I am trying to link in shared objects but when i do I get undefined symbols
with my LDFLAGS += -L $(PLATFORM_LIBS )
I am can overcome this by using -shared however I don't want a shared object
Does anyone know what flag i can use so that I don't get undefined symbols with the GNU ld version 2.15.92.0.2
Thanks -
Segmentation Fault produced with no core using strace to Debug
Hi,
Has any one used strace to investigate a process that falls over with a segmentation fault and produces no core so that I can use a debugger to investigate it.
I can't use the starce -p <pid> coz the process doesn't come up ...
Anyone with any ideas how I can go about debugging this process ...
Any suggestions much appreciated ! -
I am trying to bring up a server that is doing some Authentication using the following class implementations
import java.security.K eyStore;
import java.security.c ert.Certificate Exception;
import java.security.c ert.X509Certifi cate;
import javax.net.ssl.T rustManager;
import javax.net.ssl.T rustManagerFact ory;
import javax.net.ssl.X 509TrustManager ;
it falls over on managerFactory. init(keystore);... -
-
"java.security.NoSuchProviderException: no such provider: SunJSSE"
Hi ,
I am getting the following error when using java version 1.5
"java.security. NoSuchProviderE xception: no such provider: SunJSSE"
Has anyone any ideas why i am getting this error ..
Thanksyour help much appreciated ! -
I have used hp CC compiler and Sun compiler and it works fine , Is this some fault with GNU CC do you know ?Leave a comment:
-
GCC4.1.1 file name with the same directory name
Hi all ,
I have the following scenario where i ma trying to build a program that has the same name as the subdir and within that subdir it needs to build and link in the those objects to create the PROG .
but GCC get all confused and complains saying that it's a directory and bombs out.
has anyone seen this befor with GCC
the PROG name is t
cc -O -DNOODBC -I/home/t/cvs/FB1023/src/include -I/usr/local64/include... -
Thanks all ....
Goit it sorted using this -- some comoilers threat void differently
int delta= (long int)arg;...Leave a comment:
-
convert Void * to an int using GCC 4.1.1
Hi ,
I have the following where i want to take a void * and convert it to an int
void *contending(voi d *arg)
{
int delta = (void *) arg;
}
error: invalid conversion from void* to int
Any ideas how i can achieve this using GCC 4.1.1
Any help much appreciated ! -
This is the error
[echo] Compiling acceptance test runner and utilities
[javac] Compiling 1 source file to /home/t/cvs/F4.3.7B1023/src/acceptance/bin.ppc64
[javac] /home/t/cvs/F4.3.7B1023/src/acceptance/java/com/openet/acceptance/converter/DumpAvsToAvsXml Gzip.java:21: package com.sun.org.apa che.xml.interna l.serialize does not exist
[javac] import com.sun.org.apa che.xml.interna l.serialize.Out putFormat;
...Leave a comment:
-
com.sun.org.apache.xml.internal.serialize Jave 1.5
Hi all ,
I am having a issue with importing the following
import com.sun.org.apa che.xml.interna l.serialize.Out putFormat;
import com.sun.org.apa che.xml.interna l.serialize.XML Serializer;
using the following version of java
However when i look in the jre I see it's location has changed FROM
com.sun.org.apa che.xml.interna l.serialize
TO
org/apache/xml/serialize/Serializer.clas s
Has... -
Do You Know how I can force it to use the crypto as i don't want to update the sytem library ...
ThanksLeave a comment:
-
OPENSSL (0.9.6b)
Hi ,
I am linking openssl-0.9b.tar but it's picking up the definition in /usr/local/unistd.h
the definition in /usr/local/unistd.h
#ifdef __USE_XOPEN
/* Encrypt at most 8 characters from KEY using salt to perturb DES. */
extern char *crypt (__const char *__key, __const char *__salt)
__THROW __nonnull ((1, 2));
whereas in in crypto include/des.h doesn't have this __THROW... -
BOURNE SHELL -Evaluating a file list
Hi ,
Has any one any idea how i can achieve the following where i want to check which ?.pid i am evaluating .
What I have is - but it keeps deafulting to error message" unkown process"
Anyone have any ideas ???
$HOME/dir/log/axyyy.pid
$HOME/dir/log/b.pid
FILELIST = `find $HOME/dir/log -name "*.pid" -print`
case $FILELIST in
... -
Shell wild card characters
Hi,
Does anyone know how i could use wild chars like so:
echo "-->This is ${MY_HOME}/config/log/test{*}.pid";
The file will start like so with
test123.pid
test12421.pid
testrqwrqwr.pid
test435ytft.pid
Does anyone know how i could achive this ???? -
-
Find memory leaks using the unix commands within a script ???
Hi ,
I want to script that can detect memory leaks form local applications on hp and sun.
I know there are gui tools that can do that ...
But I want to use ps or pmap within my script to catch a memory leak ...
the size of application memory will obviously be increasing so thats how i will detect the memory leak..
But if i dump out the the info from the top command and check the pid process.
... -
Can you have a look at this implementation please as I feel there is a better approach to this implementation:
thanks
class classificationS et
{
public:
ClassifictaionS et( int startDateTime = 4712548, int endDateTime=124 556, char * classBandType = NULL)
: m_classBandSet( NULL)
{
}
~classification Set()
{
delete...Leave a comment:
No activity results to display
Show More
Leave a comment: