Programming :: Code For Few Warning Messages?

Oct 2, 2010

For the following compilation warning message I need to create some sample program in C for self study. Also I am looking for some good web link where all the C warnings are described.

1. Warning #47: incompatible redefinition of macro "entity" . Undefine macro before
2. Warning #167: argument of type is incompatible with parameter of type
3. Warning #175: subscript out of range

[code]....

View 1 Replies


ADVERTISEMENT

Programming :: Error Messages Generated When Compiling C++ Code?

Jul 3, 2010

Is there an online resource to lookup error messages generated when compiling C++ code?

View 5 Replies View Related

Programming :: C/c++ Code Is Used To Parse Type - Length - Value Messages?

Feb 12, 2011

Does anyoe have any example c/c++ code that is used to parse type-length-value messages.

The only decent article I can find on the web is:
http://en.wikipedia.org/wiki/Type-length-value

Bur it does not give any examples of parsing etc..

View 1 Replies View Related

Programming :: Logging Messages From Program Doesn't Reach /var/log/messages?

Jul 13, 2011

I have a syslog-ng running and kernel build of 2.6.34.8 I use a syslog API in my program with facility LOG_LOCAL5 and and levels debug err and crit and info. when I ran on the older syslog facility I had everything logged fine as I intended. now I have written these rules into the syslog-ng.conf:

options {
flush_lines (0);
time_reopen (10);
log_fifo_size (1000);

[code]....

the last two rules show my program gnssapp. the result is all debug levels or crit or err levels I don't see any of them !

View 3 Replies View Related

General :: Warning Messages And Numerical Recipes Functions In C?

Jun 19, 2010

I am using some "Numerical Recipes in C" routines in my C code.(I am using ludcmp() & lubksb().)These are used to find inverse of a matrix.After compiling my c code, I get following warning messages.I have not understood them at all. What is the meaning of these and why did they pop up and how to remove them?

Code:
nrutil.h:11: warning: 'sqrarg' defined but not used
nrutil.h:14: warning: 'dsqrarg' defined but not used

[code]....

View 7 Replies View Related

Debian Configuration :: Udev Warning Messages At Boot After Upgrade?

Apr 23, 2011

I've done an upgrade from lenny to squeeze.Now, I'm getting a lot of udev warning messages at the boot time.Knows someone howto remove them?

View 6 Replies View Related

Ubuntu :: 10.04 - Remove Synaptic Unsigned Repos Warning Messages?

Oct 31, 2010

I am running Ubuntu 10.04.How do I make Synaptic stop giving warning messages about unsigned repositories?

View 2 Replies View Related

Software :: Scan Dmesg Contonusly For Warning Or Fatal Messages?

Sep 5, 2010

I scan dmesg continuously for warning or fatal messages and mail the lines containing the errors to someone.- I presume a script can be used.- How can this process involked at system startup ?

View 2 Replies View Related

Software :: Why Gcc Make Error / Warning Messages Don't Show Color Font

Mar 17, 2009

rencently, i move develop env from one linux machine to another, two linux have same gcc and make version, but at new linux machine make warning/error messages dont show color font(in old linux machine, warning messages is yellow, but now, it is white).so, when make, there are all white messages, i cant focus on warning and error.

View 1 Replies View Related

Debian :: (warning) Fsck Died With Exit Status 4 Failed (code 4)

Feb 19, 2013

My system has stopped to boot at all...

Code: Select alldone.
Setting parameters of disc: (none).
Setting preliminary keymap...done.
Activating swap...done.
Checking root file system...fsck from util-linux-ng 2.17.2

[Code] ....

An automatic file system check (fsck) of the root filesystem failed. A manual fsck must be performed, then the system restarted. The fsck should be performed in maintenance mode with the root filesystem mounted in read-only mode. ... failed!

The root filesystem is currently mounted in read-only mode. A maintenance shell will now be started. After performing system maintenance, press CONTROL-D to terminate the maintenance shell and restart the system. ... (warning).

Give root password for maintenance
(or type Control-D to continue): _

For now, I just don't know what I should to do next to my system has started to work again...

View 14 Replies View Related

Programming :: Selenium Java Code Into Equivalent Php Code?

Mar 30, 2011

I need to rewrite the selenium java code into its equivalent php code.

View 5 Replies View Related

Ubuntu Installation :: Ubuntu 11.04 With Hp Mini - Won't Boot - Goes To The Desktop Theme Then Freezes With Three Warning Messages

Jun 9, 2011

I have a hp mini 1033cr. Awhile ago I installed ubuntu netbook edition, well I was new to Ubuntu so I clicked upgrade. Well everything was going good and then it restarted. when I came up to the log in page I typed my password and now it won't boot. it goes to the desktop theme but then freezes with three warning messages.

1st could not update ICEauthority file /home/adam/.ICEauthority

2nd There is a problem with the configuration server. (/usr/lib/libgcond-sanity-check-2 exited with status 256)

3rd Nautilus could not create the following required folders: /home/adam/desktop, /home/adam/.nautilus

I have tried a fresh install with a disc I burnt and ran with my external dvd drive. Well guess what it decided to not boot from it. I have also tried several other discs including a windows xp disc. it always boots back to the hard drive.

View 3 Replies View Related

Debian :: Debian Testing: Warning Messages While Updating?

Aug 12, 2011

I'm running Debian Testing and since some time ago I'm getting the following messages:Any ideas how to solve this warnings?

(gtk-update-icon-cache:9204): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
Processing triggers for gconf2 ...

[code]....

View 5 Replies View Related

Ubuntu Networking :: Configuring The Network Interface Via Dhcp - Network Messages - Code: 00 55 89 E5 0f 1f 44 00 00 Fa 5d C3 90 8d 74 26

Apr 7, 2011

I am totally new to Linux and have just installed ubuntu 10.10. After configuring the network interface via dhcp I started getting these messages that come in so frequently I can't configure anything else.

[87.186415] Stack:

Why I am getting this messages and more importantly how do I get rid of them.

The installation is on a VM on Hyper-V.

View 1 Replies View Related

Programming :: Suppress A Particular Warning

Jul 22, 2010

In gcc, does anyone know how to suppress a particular warning. I want to suppress "warning: useless storage class specifier in empty declaration"

View 6 Replies View Related

Programming :: GD Warning - Trying To Load Font

Feb 24, 2011

I am running a PHP script using the GD library on a Linux server. When I try to load a font using PHP's imageloadfont(), GD replies with:

Code:
gd warning: product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
Linux kernel is 2.6, PHP version is 5.2.9 and GD is 2.0.34.

I have tried several different font but all have the same issue. Does anyone know what the error means?

View 2 Replies View Related

Programming :: Get The Log (syslog) Messages Through Application?

Mar 30, 2009

I want read the log messages to my 'c' application , i am using the fedora core 8 operating system , how to read the system log messages(syslog) through my application.

View 3 Replies View Related

Programming :: Block Messages On A Message Queue ?

Dec 3, 2010

I'm facing a scenario in which i need to block messages from being passed onto a message queue when my code is running. how to proceed.

View 8 Replies View Related

Programming :: CAPA -STLS Does Not Delete Messages

Sep 6, 2010

I have designed a simple mail client to download messages/data to a file.

The server type is CAPA STLS which means can handle noncrypted and encrypted logins.

I have a problem which is that POP3 CAPA STLS mail server does not want to delete messages. It deletes the messages on the non STLS side.

For an STLS session, I receive the +Ok for a Deleted message.

Language C, Library openssl, IP4.
Compiler: gcc.

View 1 Replies View Related

Programming :: Keep Track Of Messages Sent From Server And Not Get Stuck?

Dec 14, 2010

I am writing a client chat server program in java. The chat server is already written. I created the interface and I connected to the chat server. The server keeps sending protocol messages to whom ever is connected, also it keeps sending specific protocol every 10 sec to check if user is still online.My problem is when I connect from my interface to the chat server, the program gets stuck, I can not press any other button because after connection my program keeps receiving commands from server(I have a method to keep reading after connection). How can I keep track of messages sent from server and not get stuck i.e press other buttons or type in the interface?

View 2 Replies View Related

Programming :: Doing SQL Stuff From Received Email Messages

Apr 25, 2009

I was wondering if you could recommend a simple way to achieve functionality where received email messages are automatically processed and used in SQL commands (depending on certain criteria, of course). For example, say I have made a PHP-based blog application and it's located at example.com and I'd like to give members the option of posting to their blogs by sending email to a special @example.com address. The email messages received there will be inserted into a database depending on the sender's address, with the body becoming the post and the subject line becoming the post's title, etc.

Another example could be how those trouble ticket systems let customers submit tickets via email, while the support agents operate via a database-driven Web application. Is this the type of thing one must code from scratch, or is there an open source solution out there which only needs to be configured accordingly?

View 4 Replies View Related

Programming :: POP3 And Leave Messages On Server ?

Mar 10, 2010

According to RFC 1939: "POP3 is not intended to provide extensive manipulation operations of mail on the server; normally, mail is downloaded and then deleted." However most of the mail clients have that option "Leave messages on server" after they have been downloaded. How is it done?

I tried sniffing mail traffic with Wireshark, but the only POP3 provider I have is Gmail and its POP3 access is SSL secured, so I was unable to gather any info from this... I tried downloading sources of Thunderbird and Evolution and checked what are they doing with "leaving messages", but it seems my C++ skills are not enough - I was unable to understand what is happening when "leaving"...

Suggest me some POP3 provider, that is providing unsecured POP3 access, so I could try again reverse engineering with Wireshark?

View 8 Replies View Related

Programming :: Script For Searching Through Messages For Multiple FTP Hits

Oct 25, 2010

My script looks really crap and messy, the logic isn't great and I'm not hugely happy with it. Also it echo's $i instead of an actual IP address (line 10). How to improve this. It basically searches through /var/log/messages for multiple FTP hits and when the hit count is higher than a specific number the IP is added to a config file and ftp is restarted. There are some obvious flaws in my script.

Code:
MAXHITS=0
TOPHITS=`grep "FTP session closed." /var/log/messages* | awk '{print $7}' | sed -e 's/^.*[//' -e 's/].*$//' | uniq -c | sort -nr`
HITNUMB=`echo $TOPHITS | awk '{print $1}'`
IPHIT=`echo $TOPHITS | awk '{print$2}'`
HIGHIP=`echo $TOPHITS | grep $HITNUMB | grep $IPHIT | awk '{print $2}'`

if [ $HITNUMB -gt $MAXHITS ]; then
for i in $HIGHIP;
do
echo $i
sed -i '78s/$/,$i/' /opt/etc/proftpd.conf
/root/ftp restart
done
else
echo "not greater than $MAXHITS"
fi

I'm not even sure what will happen if I get multiple responses for my $TOPHITS. It would be cool if it could search for IP's already blacklisted somehow, it might actually be easier to just create a file with a set of blacklisted IP's or something.

View 14 Replies View Related

Programming :: Ld: Warning: Cannot Find Entry Symbol _start

Sep 23, 2010

I am writing a sample nasm program via terminal.It's a basic one ,it only demonstrates the usage of the zero and sign flags and print relevant message to the output. Here are the code:

Code:

SECTION .data; data section
errMsg:db "Error !",10
errLen:equ $-errMsg
zeroMsg: db "Zero flag",10
zeroLen: equ $-zeroMsg

[Code]....

View 2 Replies View Related

Programming :: Where Printk Messages Stored When Call Insmod

Jul 8, 2011

where the printk messages are stored when we call a insmod? I'm using Slackware, and I think my distro can store these messages on others place.

View 3 Replies View Related

Programming :: Socket C++ / Send And Receive Messages In Server?

Jan 2, 2009

I'm trying implement a small server for a university work, my server is creating, binding and listening but it don't accept any connection, these are the files I'm using in server:

Code:

// Definition of the Socket class
#ifndef SOCKET_H
#define SOCKET_H
#include <sys/types.h>
code....

I've made a client just for test it, but no ones run well, the server is always returning -1 when accept is called!!

What should I do to send and receive messages in this server??

View 3 Replies View Related

Programming :: SVN Add Folder - Svn - Warning: 'newfolder' Is Already Under Version Control

Feb 1, 2011

I have a new folder in my directory, called 'newfolder'

When I create a diff file there is no mention of this new folder in it.

When I do 'svn add newfolder' it says: svn: warning: 'newfolder' is already under version control.

How do I get my newfolder to be included in my diff file so that it is included when someone else patches my file in their own directory

View 1 Replies View Related

Programming :: Warning: Ignoring Return Value Of Size_t Write?

Nov 1, 2010

I've just moved onfrom developing some code on Debian (gcc 4.1) to Ubuntu (gcc4.4) and a warning in my g++ code has appeared. Basically in some serial prot code I get this errorwarning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_resultfrom function

void TxChar(COMPORT *port,unsigned char letter)
{
pthread_mutex_lock( &txmutex );

[code]....

View 7 Replies View Related

Programming :: Warning: This System Can Not Link To Static Lib Archive

Jan 27, 2010

I'm trying to link 'aubio' (a lib) and its failing on one of ts dep's with this error.

Code:

$ make
Making all in src
make[1]: Entering directory `/home/John/Externals/aubio/aubio-0.3.2/src'
make all-am

[code]....

"Warning: This system can not link to static lib archive /usr/local/lib/libff"

I've configured/make/make installed fftw and its doing just fine in the usr/lib folder, so I'm at a loss at how to fix this. Do I need to build fftw again using some kind of shared make switch? I couldn't find any referance about that.

View 3 Replies View Related

Programming :: Error/warning Message S From For Simple Perl Script

Mar 17, 2010

I just wrote a simple perl script to compare the following two files

[Code]...

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved