Programming :: "Message Too Long" Error Returned By The Function Dn_expand Means?
Apr 2, 2010
what "Message too long" error returned by the function dn_expand means?
The function call I used is as follows:
dn_expand(poutput, poutput + output_space_used, *out_rr, output_qname, 255);
I assumed that the error was due to the difference between the 1st argument and 2nd argument, However, changing the difference to the accepted dns message size (512 bytes) or even to no difference at all did nothing to remove the error.
Further, I am trying to check the output after having first compressed a domain name using dn_comp into *out_rr. This function call is in order to check whether the compression is happening correctly.
View 4 Replies
ADVERTISEMENT
Dec 10, 2010
I'm working on a friend's Samsung R530, Intel Core i3 3330M (T430) processor. It had Windows 7 installed, which crashed so I'm trying to recover the files before installing Ubuntu (the recovery partition is gone, there was no facility for making recovery disks and Samsung won't send any out). I put in the Live CD for 10.04 which took ages to load and then gave me the following error message:
udevd (90): worker (181) unexpectedly returned with status 0x0100
udevd (90): worker [180] failed while handling '/devices/pci 0000:00/0000:00:00:00'
which was repeated for [182] and [230] then it all went blank for ages then I got a message saying eject the cd and press enter, just like you do at the end of an install. However, I didn't get an option on whether to boot from the cd or install ubuntu. anyone got any clue what the error message means? and am I correct in thinking that the cd tried to install ubuntu? I've tried 3 different live cds, all of which have previously worked on other machines so I'm pretty sure it's not a cd issue.
But I can't get a single one of them to boot from cd and all throw up the same error messages, except the 9.04 cd, which just hangs. Have also tried a USB live image and got a disk error message. When I try booting from the HDD I get OS not found, boot from cd. Which is not entirely unexpected because of the previous problem with windows but it also seems that Ubuntu hasn't actually installed, or if it has then there's been a problem and it hasn't done it properly.
View 1 Replies
View Related
Sep 18, 2010
I do not get what this method is seeking for? Where do i put a string or somethig that its sopposed to find.
[code]...
Seeks in the stream by the given offset, modified by type. If cancellable is not NULL, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error G_IO_ERROR_CANCELLED will be returned.
[code]...
TRUE if successful. If an error has occurred, this function will return FALSE and set error appropriately if present [URL]...
View 2 Replies
View Related
Dec 23, 2010
Our Fedora-ds was down for some reason,And I got these logs:
[23/Dec/2010:18:59:32 +0200] - libdb: User-specified malloc function returned NULL
[23/Dec/2010:18:59:32 +0200] - id2entry error 12
[23/Dec/2010:18:59:32 +0200] - id2entry get error 12
[code]...
View 1 Replies
View Related
Jul 8, 2010
When I run dmesg I get
Code:
[drm:drm_mode_rmfb] *ERROR* tried to remove a fb that we didn't own
Does anyone have any idea what that means?
Fedora 12 Gnome 2.28
View 2 Replies
View Related
Aug 1, 2010
I'm using gmake (v3.81) to build some c executables. As the first step in the process I run the files through a preprocessor (for embedded SQL). The preprocessor completes successfully, but the gmake reports an error and discontinues buiding the remaining dependencies...
make *** [myfile.c] Error 4
which (according to /usr/include/asm-generic/errno-base.h) means "interrupted System Call". My preprocessor doesn't raise any signals, so I'm not sure what's causing this error.
View 2 Replies
View Related
Apr 13, 2011
I have built a module to load it on a UML instance running a different kernel from the one I'm running on the host host. I have built the module against the headers for the kernel I'm using on the guest but when I try to insmod the module (on the guest, of course), I get a "function not implemented" message.Can insmod be a little more verbose about the function that is not implemented? I tried running strace on the insmod but the error comes from init_module so not much more information is available:
Code:
open("r5r.ko", O_RDONLY) = 3
read(3,
[code]...
View 7 Replies
View Related
Apr 20, 2010
I'm learning how to program kernel drivers, and I'm making a hello world module for that. But I can't find the cause of some errors... My module as three files:
test_regulator.c: Code: /*test_regulator.c
2 */
3 #include <linux/test_regulator.h>
4 #include <linux/module.h>
5 #include <linux/kernel.h>
6 #include <linux/regulator/driver.h>
code....
I don't understand, because I had declared the test_regulator_driver.
View 2 Replies
View Related
Nov 11, 2010
I have been trying to build a file called main.cpp through my make file which is in Linux.
There are functions like
Which are being called. I have included all the necessary headers and also have included the necessary lib.a files in the make file as below:
I am still getting the below error. I use make -j makefile.mak clean all command to make the build.
View 1 Replies
View Related
Oct 9, 2010
I'm trying to compile the hidtouch driver, but hit a snag. The error I get is
[code]....
Context: this is the driver for the touchscreen attached to an LTSP client. The server uses the AMD64 arch, the client uses the 1386 arch, both Debian. The client does start, but lacking a pointer device the pointer is useless. The build takes place on the server, in the i386 chroot of the LTSP setup. Basically, I'm stuck now...
View 5 Replies
View Related
Nov 5, 2010
Am getting errors about "mysql_connect()" for the following code:
Have compiled PHP with MySQL support using the following:
Thought PHP 5.3 has a built-in replacement called mysqlnd, and there's no need to install "php-mysql" RPM.
However, according to the following site this is still required: [url]
Give me an idea whether I really have to install php-mysql RPM in order to use mysql_connect() for PHP?
View 4 Replies
View Related
Apr 13, 2011
I've having problems with my Makefile.
I'm trying to create a program from 2 files - main.cpp that contains the main function, and modules.c that contains the definitions of the functions that are called in main(). modules.c only contain function definitions, no main function.
My Makefile is as follows:
Code:
I have included "modules.h", which contains all the function declarations, in my main.cpp.
When I try to make using this Makefile, I get the error
Code:
If I switch the order of modules.o and main.o in my $(TARGET) line, then I get errors that say "undefined reference to" the functions I have defined in modules.c, in main.cpp.
View 4 Replies
View Related
Nov 16, 2010
Code:
#include <iostream>
using namespace std;
[code]...
View 1 Replies
View Related
May 18, 2010
I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.
View 2 Replies
View Related
Jul 19, 2011
I wrote a test program for learning usage of realloc() and I thin I did everything right but I get this error exactly with my 4th time that while tries to reallocate memory in MakeDSt function for DSt->SArray:
Quote:
realloc(): invalid next size
this is my complete code :
Code:
#include <stdio.h>
#include <stdlib.h>
typedef struct DRA
{
code....
View 2 Replies
View Related
Feb 15, 2010
My level is starter with Ubuntu. Moderate experience with C.Problem starting with programming in C under Ubuntu.I have installed Anjuta IDE and made this classical program.
#include "stdio.h"
main()
{
[code]....
View 2 Replies
View Related
Dec 10, 2010
I logged in as user1 with administrative privileges.I right-clicked on a folder on my desktop, then "Sharing Options", then shared the folder as "docs".Then I created a new user with administrative privileges, user2, and logged in as that user.Then, I deleted user1 - account settings, and files.Then I created a folder on my desktop and tried to share it as "docs", but I get the following error: 'net usershare' returned error 255: net usershare add: failed to add share docs. Error was Operation not permitted
I can share the folder as any other name, just not "docs".My smb.conf file doesn't contain the entry.I'd love to know where the configuration file is that's hi-jacked the name "docs".
View 1 Replies
View Related
May 1, 2010
simple scan error as follows: Failed to save file ImageMagick returned error code 11 Command line: convert -adjoin /tmp/simple-scan-DA9MBV.jpg /tmp/simple-scan-XCK4BV.jpg /tmp/simple-scan-NZVYBV.pdf Stdout: Stderr: using karmic note: I have apparmor extra profiles installed but didn't notice one that related to simple scan or imagemagick. Red herring or not?
View 6 Replies
View Related
Apr 21, 2011
I can't get any updates for my system and keep getting the errors shown below, and suggestions peeps?
E: linux-image-2.6.28-11-generic: subprocess installed post-removal script returned error exit status 1
E: linux-image-2.6.28-13-generic: subprocess installed post-removal script returned error exit status 1
E: linux-image-2.6.28-14-generic: subprocess installed post-removal script returned error exit status 1
E: linux-image-2.6.28-15-generic: subprocess installed post-removal script returned error exit status 1
E: linux-image-2.6.28-19-generic: subprocess installed post-removal script returned error exit status 1
View 9 Replies
View Related
May 9, 2011
I have just upgraded my ubuntu to 11.04 .After it is done ,I could install any software ,the error is as follows:
E: Sub-process /usr/bin/dpkg returned an error code (1)
I wonder what is the meaning of the error.
View 3 Replies
View Related
Jul 6, 2011
Installed Fedora 15, ran the updates, so everything is by default, so the .bashrc file just runs the version in /etc
sftp gives me an error message too long.
I went into to the .bashrc file and commented out the call to the /etc version and I still get the sftp error.
How can this be fixed?
View 1 Replies
View Related
Apr 6, 2011
After customizing my .bashrc for a nice pretty shell locally I decided I wanted it to look nice remotely to I created a ~/.bash_profile in my home directory so I wouldn't have to type bash upon logging in I'd just be greeted with my colors and customizations. I placed the files on 2 remote locations and ssh'd in and worked just like it wanted it to, later that same day I tried to sftp in to one of the locations and it kept disconnecting me after I'd input my password, but I could still ssh in just fine. After trying a few suggestions from the web like [URL] with no success I decided to ask some friends. They narrowed it down to the motd and echo's in my .bashrc. Finally I asked a very experienced developer about it and so without further adue here is the .bashrc / .bash_profile
BASHRC:
Code:
PS1='[e[0;32m]u[e[1;34m]@h[e[m] [e[1;34m]w[e[m] [e[1;32m]$[e[m] [e[1;37m]'
# Source global definitions
if [ -f /etc/bashrc ]; then
[code]....
Unfortunately I forgot to mention to get it to launch the terminal with the greeting / fortune you have to have the echos uncommented in the .bashrc locally, or know more about shell scripting than I [wouldn't surprise me at all if someone is able to expand upon my bashrc and fix my minor problem] and have it not echo or execute fortune on sftp only somehow. So if you have fortune uncommented be prepared to be unable to sftp IN to the box that it is uncommented on.
View 9 Replies
View Related
Mar 14, 2011
I dont know how to put this that somobody would understand my problem but here we go. I have problem like said in title.I am unable to upgrade my kernel. Sunaptics says that I have 2.6.35-28 installed. I tried to reinstall 2.6.35-28 via synaptics but it gives me error.
Thats what uname -a says:
pekka@pekka-laptop:~$ uname -a
Linux pekka-laptop 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:48 UTC 2011 i686 GNU/Linux
Tried to install 2.6.35-27 via terminal thats what I get:
Code:
pekka@pekka-laptop:~$ sudo apt-get install linux-image-2.6.35-27
[sudo] password for pekka:
Reading package lists... Done
Building dependency tree
code....
dpkg: error processing linux-image-2.6.35-25-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-image-2.6.35-25-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
pekka@pekka-laptop:
View 9 Replies
View Related
Mar 17, 2010
I just wrote a simple perl script to compare the following two files
[Code]...
View 7 Replies
View Related
Dec 8, 2010
I prefer to delete trailing slahes from pathes. Until now I used sed:
Code: $ myPath=/home/ladygaga///
$ echo "$myPath" | sed 's//*$//'
/home/ladygaga I played around to accomplish the same with on-board means of bash without using sed, but for example this line only deletes one trailing slash:
Code: $ myPath=/home/ladygaga///
$ echo ${myPath%/*}
/home/ladygaga// Is there a way to delete trailing slahes with just on-board means of bash?
View 2 Replies
View Related
Jan 9, 2011
My simple bash-script replaces --> by the HTML-entity for the right arrow. To be precise, it replaces --*> by → Until now, I used sed, for example:
Code: $ flight='AMS --> JFK'
$ echo "$flight" | sed -e 's/ --*> / → /g'
AMS → JFK With sed, -* matches zero or more dashes, because for sed the * is the Kleene Star matching zero or more instances of the previous element. So with sed, --*> matches exactly what I want:
Code:
->
-->
--->
---->
Because sed seems oversized for that task, I played around to accomplish the same with on-board means of bash without using sed. On first thought, this line looks like doing the same but it isn't:
Code: $ flight='AMS --> JFK'
$ echo "${flight// --*> / → }"
AMS → JFK As I recently learnt in this forum, this * isn't the Kleene Star. It is a multi-character wildcard matching any zero or more consecutive characters. So here, --*> matches:
Code:
->
-->
--->
---->
-<>
->>
-abc> And if you continue your flight to SEA, then the result is totally wrong because the * matches greedily:
Code: $ flight='AMS --> JFK --> SEA' $ echo "${flight// --*> / → }" AMS → SEA
The sed line above would produce the correct result and would match the dashes correctly.
View 3 Replies
View Related
Dec 29, 2010
I needed to find the time it takes to execute a for loop... I decided to use the gettimeofday() function and wrote the following code:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sched.h> // for use of sched_setaffinity
[code]....
View 9 Replies
View Related
Jan 2, 2010
i'am tring to use generic netlink and can't find function for blocking not busy waiting receive. I'll try to explain myself. Generic netlink receive mechanism based on callback function - when module receives something,this function invoked. But this is not so good if you need to send something and receive answer. I mean something like that :
sendmsg(); if(recvmsg() < 0) goto err; I need generic netlink recv() function, or some mechanism to implement it. I just want to stay in "recvmsg()" function until i have answer(until call_back function invoked).
View 1 Replies
View Related
Feb 4, 2010
I've installed openMPI-1.4.1 on my laptop and I'm trying to compile some fortran code I've written using MPI. I downloaded the openMPI-1.4.1 file from the openMPI website and used the shell script they provide to install it. This is the shell script:
shell$ cd openmpi-1.4.1
shell$ ./configure --prefix=/usr/local
shell$ make all install
There was an additional line extracting the tar file, but I did this by hand. The first time I ran this script there was an error on the final stage saying that a directory couldn't be created because of lack of permission. I decided to run the script again this time as a sudo.
Having run the script again everything appeared to install properly, however when I went to compile some fairly simple code I got a message saying that the compiler couldn't find MPI. I was using this command: gfortran messages.f90 -o messages I looked on the openMPI website where it recommends compiling with a compiler called mpif. However when I type mpif messages.f90 -o messages I get an error message saying mpif isn't a recognized command......
View 2 Replies
View Related
Mar 3, 2010
I have a shell script 'Test.sh' echo "Enter The File Name" read FILE_NAME echo "Enter The First Column"
read Col
RowNum=2
Diff=4
Data=" "
ColNumFrom=`grep -i $Col Data.csv | cut -d "," -f2`
ColNumFrom=`expr $ColNumFrom - 1`
[Code]...
When I run the File for Col 'AA02', it works fine but for Col as 'AB01', is throws following error sed: Function 2s@(.{302}).{4}@1 @ cannot be parsed.
View 14 Replies
View Related