Applications and Utilities, GNU/Hurd, Windows, Hardware

Function stack reallocation

Submitted by s133pl355
on March 28, 2007 - 3:04am

Hi All - I wish some insight on the possibility of reallocating a function stack to a malloced regions in realtime ie I jump out of a function and the next time I jump in the stack would have moved along with its data. To me it seems unreliable cause the values in the stack have no type hence I would not know if the stack value is a data value or a pointer. If I mistakenly interpret a data value as a pointer I will update the data value resulting in data corruption.

cross compilation issue.

Submitted by _Neo_
on March 26, 2007 - 6:46am
Applications and Utilities

hi

i was trying to cross-compile an app-"gstreamer" for my ARM box.
i configured the package like this:

./configure --host=arm-linux --disable-tests --disable-failing-tests --disable-examples LDFLAGS=-L/home/bayyavs/backup/popt-1.7/.libs/ CPPFLAGS=/home/bayyavs/backup/popt-1.7/

But while compiling,iam getting this error :

arm-linux-gcc : cannot specify -o with -c or -S and multiple compilations

-mv8 Error during gcc compilation

Submitted by Anonymous
on March 15, 2007 - 9:25am
Applications and Utilities

Hi,

I am compiling code using gcc on SunOS. It gives me following error.

---
cc1: error: unrecognized command line option "-mv8"
cc1: error: unrecognized command line option "-msupersparc"
---

I do not wish to simply delete those options from makefile without knowing their effect on compilation.

I will be thankful with your reply.

regards,
Faisal

How to statically compile

Submitted by Anonymous
on March 14, 2007 - 8:04pm
Applications and Utilities

How would I compile a program so any dependencies are built into the resulting binary?

Eg. so I could move the binary to any other system and not worry about shared libraries.

Thanks!

gcc-4.1.2

Submitted by krom
on February 26, 2007 - 5:35pm
Applications and Utilities

hello,

I am attempting to build the latest release of gcc. My current version was preinstalled as:

gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)

And is configured as:

--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux

Where's mercury gone?

Submitted by Anonymous
on February 8, 2007 - 9:59am
Applications and Utilities

Mercury seems to have vanished off the face of the earth (er... site). Will it return? I was looking forward to seeing what's new with the mail_archive module.

Running Windows applications with CrossOver Linux 6.0

Submitted by Dolores Parker
on January 29, 2007 - 11:38am

CodeWeavers this month announced version 6.0 of its flagship Windows compatibility product. Now called CrossOver Linux, the new version is the first with official support for games. With its growing application support and foray into gaming, CrossOver Linux 6 is an excellent alternative for Linux users who are stuck with a Windows application at work or at school.

Head stack transfer of Hard Disk

Submitted by Anonymous
on January 29, 2007 - 5:01am

Hello,

I just found this forum from a link and I must say it is really great and fully packed with valuable information. I have been DR enthusiast for about a year now. Most of the things I learned by trial and error. I am having a problem with a Western digital SATA hard drive and was hoping for some good advice.

Model: WD2500JS-40MVB1
Problem: Drive is clicking.

Although I didn't believe it was an electronic problem, I replaced the PCB anyway.Result: Nothing changed, the drive is still clicking.I am pretty sure that it is a problem with a Head, so I want to replace the Head stack!I have a downer drive, and although I don't have any real experience with Head stack transfers, I have played with the Head stack before, and I am confident that I will be able to successfully make the transfer. My problem is that I don't have a clean room.I was hoping that someone could give me some advice on how to perform this without using an authentic class 100 clean room.

A DIY calendar control in PHP

Submitted by Dolores Parker
on January 25, 2007 - 12:20pm
Applications and Utilities

Taking a stab at writing a portable PHP code for a calendar control, a developer turns out a surprisingly compact, and easily customizable code for just about anyone's particular needs.

Read more

Data Recovery Company Recommendations

Submitted by kevin_476
on January 25, 2007 - 12:02am

Can anyone recommend a data Recovery Company? Like anyone who's had a hard drive crash, I don't want to trust the recovery of my image files to an inexperienced outfit. I have/had a LaCie d2 Big Disk 500GB with about 400GB of files on it. Evidently, the problem is most likely electronic, as there is a small hole burned on the control card. Some of the files are backed up, but not all, and they are all important to me.It's my understanding that the 2 Maxtor drives inside are RAID O configured, which makes recovering the files more complicated. If it's risky to fix, then I want to use a reliable, established company.Any recommendations would be greatly appreciated.If you are pretty sure it is the control board, you can do what the recovery company would probably do anyway...that is to replace the electronics.

High level of Seagate 2.5" SATA drives failing

Submitted by kevin_476
on January 19, 2007 - 1:34am

I am receiving about two of these drives daily. (Momentus 5400.2)

Without exception, they are manufactured in China, and have firmware 7.01. Also, they are all out of Mac computers.

Is anyone else coming across these? Has anyone successfully managed to repair one?

pasting x amd x does not give a valid preprocessing token

Submitted by Anonymous
on January 12, 2007 - 6:45am
Applications and Utilities

I am trying to build my appliaction then i am getting the following error with gcc 3.3.3

pasting "version" and "." does not give a valid preprocessing token.

The source of this error is the following piece of code

#define paste_tokens(a,b) real_paste_tokens(a,b)
#define real_paste_tokens(a,b) a ## b
#define stringify(x) real_stringify(x)
#define real_stringify(x) #x

#define NAME_STRING stringify(paste_tokens(lib, paste_tokens(TARGET, .so)))

Problem with binary of busybox for mipsel GCC-4.1.1

Submitted by Anonymous
on January 12, 2007 - 3:44am
Applications and Utilities

I have a problem with busybox binary on router board image, created with openwrt environment (www.openwrt.org) under gentoo..

My OS System where i compile openwrt is gentoo amd64 (turon64) with gcc-4.1.1 and binutils-2.17 (same problems also with amd64 env with semprion and on 32bit chroot env).
I compile image for router board 532a (that use mipsel processor) but when i try to exec printf command from ash (busybox) shell

Generated assembly for switch statement

Submitted by Anonymous
on December 28, 2006 - 11:28am
Applications and Utilities

If you write a switch statement in C with many cases, the gcc doesn't build a cascade of conditional jumps as it would do for if/then/else or some small switch statements. Instead it does one jump to a location, which is dynamically determined like this:

805f0e1: jmp DWORD PTR [eax*4+134674476]

Of course, this is for efficiency, but does anyone know a way to turn this off and make gcc generate a normal cascade like if/then/else?

Displaying current function

Submitted by Anonymous
on December 22, 2006 - 6:38am
Applications and Utilities

Assume the following scenario

Main calls functions A B C
A calls functions A1 and A2
B calls Functions B1 and B2
C calls functions C1 and C2

Now i insert a break on function B2.

During run time , I need to display the functions that has been called till a particular point.

Assume when the execution is at B2, I need the compiler to print the function names Main,A,A1,A2,B,B1.

How