Porting from unix to linux
Hi all It has been four days that I try to port a C program that runs perfectly on SGI station (MIPS R12000 processor) to Linux (RH7.1 on dual PIII box). Since I failed to find the answer (to the question following) on the net, and before starting reading the code(about 900 lines), I decided to try this forum. If you think it's offtopic or annoying, please ingnore this message Well, the problem is: I'm porting a program that runs perfecly on SGI station (R12000 processor). I've copied all the sources, headers, custom libraries (there were two of them) and the Makefile. There were some troubles with pointer initiations, but I managed to overcome them. In some point, when main() calls a function called search(...) which is in search.c file, the program crushes upon the first line. Electric Fence (with all possible options) did not found any problem before search() is called. It's worth to note that the entire program has only one malloc and no free(). Some more details: Compiler used on R1200: MIPSpro Compilers: Version 7.2.1 On linux : gcc version 2.96 2731 (Red Hat Linux 7.1 2.96-81) with -ggdb option and no optimization Here is the output of the core examination by gdb (the binary compiled by cc with -ggdb flag). Segmentation fault (core dumped) [bgbg:13:13:08 sc]$ gdb scwrl core GNU gdb 5.0rh-5 Red Hat Linux 7.1 Copyright 2001 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... Core was generated by `./scwrl -i pdb10.pdb -o pdb_out.pdb'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libefence.so.0...done. Loaded symbols for /usr/lib/libefence.so.0 Reading symbols from /lib/i686/libm.so.6...done. Loaded symbols for /lib/i686/libm.so.6 Reading symbols from /lib/i686/libc.so.6...done. Loaded symbols for /lib/i686/libc.so.6 Reading symbols from /lib/i686/libpthread.so.0...done. warning: Unable to set global thread event mask: generic error [New Thread 1024 (LWP 6783)] Error while reading shared library symbols: Cannot enable thread event reporting for Thread 1024 (LWP 6783): generic error Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 #0 find_lowest () at search.c:174 174 bg=5; (gdb) where #0 find_lowest () at search.c:174 #1 0x08049fbb in main (argc=5, argv=0xb74c) at main.c:483 #2 0x40073177 in __libc_start_main (main=0x8048eb0 , argc=5, ubp_av=0xb74c, init=0x8048af0 <_init>, fini=0x807d240 <_fini>, rtld_fini=0x4000d3c4 <_dl_fini>, stack_end=0xb73c) at ../sysdeps/generic/libc-start.c:129 (gdb) thanks a lot = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Porting from unix to linux
Sorry, just forgotten one thing: deleting the call to the function in main() solves the crush problem, but since this is the key function inthe whole program this is not an option = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Two links with general (I hope) interest
you might want take a look at these sites: Distro Watch http://www.distrowatch.com Microsoft Linux ;-) http://www.mslinux.org/ = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
[SUMMARY]:book recomendation needed
Hi and thanks all the responders. This is the summary of the answers "Pinchas Rosenfeld" <[EMAIL PROTECTED]>: >"Red Hat Linux: The Complete Reference" by R. peterson is a >fine book ... My Favorite is: "Using Red Hat Linux" (Get the Newest edition), the newest edition is RH6.2 special edition. I think I prefer newer one, thow you may buy a used book for $6.06 (on amazon.com) Shaul Karl <[EMAIL PROTECTED]>: >1) My experience is that www.bookpool.com will turned out cheaper. I >have not look at the specific titles you mention. those titles are more expensive, so are the shipping rates > Have you looked at the LDP guides? >huji mirrors it too (http://www.cs.huji.ac.il/docs/LDP), and for a good yes, while the howtos and guides are written by specialists in their field, I'm looking for something written by professional wrigther (and yes, there is "all in one book" consideration). In addition, I don't have access to large-scale printer. I think, LDP is fine for look-really-in-depth into specific topic >(3) Just curious, what have you bought for C++? Tom Swan's C++ and "Thinking in C++" by B.Eckel (great book!!!) Thanks again for the help = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Worth reading
hi all! Hope these two articles will interest some of you. http://www.haaretz.co.il/hasite/pages/ShArtPE.jhtml?itemNo=91337&contrassID=2&subContrassID=18&sbSubContrassID=0 http://www.haaretz.co.il/hasite/pages/ShArtPE.jhtml?itemNo=91333&contrassID=2&subContrassID=18&sbSubContrassID=0 = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: tucows linux directory
On Thursday 06 June 2002 15:53, Ben-Nes Michael wrote: > Nope, i browesd Tucows yesterday from linux RH7.3 with no problem. > > Look Again, from what i understand you dont need to press linux again > becouse you already there. > I'm blind idiot, thanks and sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
a question on C++
Hi list! Can anyone help me with a problem i have? i've written a c++ program (using kdevelop under radhat 7.1) which takes 12 parameters. i need to run it several hundred times, changing each time another parameter. in order to do this another program was writen with a for loop in it. the loop contains system() comand, that boots the big program. everything goes ok untill i logout. when i do logout, the programs are killed. how can i prevent this? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Browser pool
Hi all. I'm making a short pool regarding browsers used among Linux people (a friend of mine build a web-site and he wants that anyone will be able to read it) All I ask you to do is to send a message to [EMAIL PROTECTED] with a word "pool" in the subject and the name of the browser in the body. If you use more than one browser, write them in order of significance from the most used to the less used (one in each line). If someone is interested, I can publish the results on this list. Thanks a lot = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
pool: refinment
sorry for not telling this in first place, but I'm interested in browsers used under Linux = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: New Linux Project
>You see it would be also > desirable to organize Jerusalem Linux club. > Good idea! = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
envirament troubles
I'm trying to install QT-2.3.1 on RH7.1. I have /usr/local/qt-2.3.1 directory and a symlink /usr/local/qt pointing to it for some reason when I login as root and execute env command, I get QTDIR=/usr/lib/qt-2.3.0. This prevents me from running ./configure The error message is The environment variable $QTDIR is not set correctly. It is currently set to "/usr/lib/qt-2.3.0", but it should be set to this directory, which is "/usr/local/qt". The problem is that I can't find a file that declare this variable. Any ideas? P.S if this matters, I use bash shell, and yes, I've checked ~/.bashrc and ~/.bash_profile = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
ftp://ftp.cs.huji.ac.il/mirror/GNU and Konqueror
Hi all! I'm trying to enter ftp://ftp.cs.huji.ac.il/mirror/GNU using Konqueror, (RH7.1). 5 minutes after klicking the link on http://www.gnu.org/order/ftp.html, nothing happened. Doing this in Netscape brings me to the mirror with no problem Interesting, don't you think? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: "Takanon" in transparent format [Was: Re: Hamakor website]
On Sunday 29 December 2002 15:44, Gilad Ben-Yossef wrote: .. > We will. The only reason the takanon is like this is because it was > written by lawyers (being a legal document) for Rasham Ha Amutut which > works with (you guessed it) DOC files and it is still being debated by Which means that the amuta has a chance of making changes even before it exists, by insisting to register with transparent format documents. I think that the Suprime Court (in case you get there) will be on it's (amuta's) side. > > Once we shall have a final version of the takanon (as is approved by the > registrar) we will, of course, publish it in a transparent format. > > Thanks, > Gilad. = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: problems with partrition table
On Tuesday 18 November 2003 17:49, Oron Peled wrote: Sorry for the lame question, but what are magic numbers? Before working on the raw device, I though it would be a good idea to know what I'm doing. Googling for ["magic numbers" ext3 fdisk] leads to zillions mailing list archives, so if anyone can point me to a resource which has more or less comprehensive explanations, I'll be glad to hear. What I uderstand from Oron's answer is that some number marks the start and the end of a prartition, so by knowing in which blocks they appear, one can reconstruct the partition table. Am I correct? > I had similar problem (partition table mess) a long time ago (~8 years): > Ignored numbers which where not in regular intervals > (false alarms) what intervals can be considered as "regular" > 3. Ran 'fsck -b ' > 4. If all is good (it was in my case), than we can trust the > superblock data (start and size of partition) > 5. So we can safely use them to fix the partition table > (back then I used Norton-Disk-Doctor under DOS to edit > the partition table. I think today parted would give > you better options -- but didn't check it). > > Hope it helps, To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]