Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK Beginning Linux Programming, 3rd Edition
This is the forum to discuss the Wrox book Beginning Linux Programming, 2nd Edition by Richard Stones, Neil Matthew, Alan Cox; ISBN: 9780764543739
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK Beginning Linux Programming, 3rd Edition section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 8th, 2005, 06:47 PM
Registered User
 
Join Date: Apr 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default cygwin & coredump

I'm building the book's code using cygwin and ran across a bug that chewed up a considerable amount of my time. As a newbie, perhaps I'm doing something wrong. On the chance that this is a bug, I hope I can save others from grief.

Chapter 4 is where I discovered the problem. It turns out to be inside the makefile.

The problem is that the Makefile contains the statement 'TMP=tmpnam'. The build fails after the program builds a file $(TMP). Apparently, the local tmpnam.exe file that gets built gets called when make attempts to build the remaining files. (Is there a way to disable the pwd to test this?) I've verified this problem on two out of three machines.

Does anybody know about this bug? Can someone please confirm what I'm experiencing?

Here's a simple test to confirm:

Makefile
--------
TMP=tmpnam

all: $(TMP) program
    gcc -c program.c
--------------------------

create two identical files tmpnam.c and program.c with the following code:
--------------------------
#include <stdio.h>

int main()
{
    printf("Hello World!");
}
--------------------------

Type make. This is what I get:

C:\Temp\Chap04\>make
gcc tmpnam.c -o tmpnam
gcc program.c -o program
make: *** [program] Aborted (core dumped)

C:\Temp\Chap04\>ls
Makefile gcc.exe.stackdump program.c tmpnam.c tmpnam.exe

------------

Any ideas?

HTH someone else.



  #2 (permalink)  
Old April 9th, 2005, 01:51 AM
Registered User
 
Join Date: Apr 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

See http://cygwin.com/ml/cygwin/2005-04/msg00357.html

  #3 (permalink)  
Old September 18th, 2005, 07:49 PM
Registered User
 
Join Date: Sep 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

U should try using knoppix, it's alot more stable and reliable. i tried using cygwin and had an enormous amount of hassles. knoppix allows u to hijack any computer, where i have had problems getting by the restrictions the administrators put on our installing stuff.

  #4 (permalink)  
Old September 18th, 2005, 07:51 PM
Registered User
 
Join Date: Sep 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try using knoppix, i had nothing but headaches with cygwin. knoppix also allows u to hijack any computer that will boot from a CD-rom. it bypasses those annoying administrators that put restrictions on a user installing stuff.;)

  #5 (permalink)  
Old November 20th, 2005, 12:14 PM
Registered User
 
Join Date: Mar 2005
Location: , Texas, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The new DVD version of Knoppix is incredible. Just about every applicaion you could want in a distribution and it is a liveDVD. Give it a try. I purchased my copy from LinuxCentral.

Jeff

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript && keeps turnig into &amp;&amp; ayrton Pro VB.NET 2002/2003 3 June 27th, 2005 03:34 PM
send & recive mails from exchange & lotus sever zaheersharief Pro VB 6 1 May 16th, 2005 06:55 AM
Hytech in Cygwin Jfuentes Linux 0 March 3rd, 2005 03:36 PM
Linux & KDE & C++ & QT & MYSQL & Kdevelop Munnnki Linux 0 January 2nd, 2005 05:41 PM
sql & join tables & find a field in multiple table trangd Beginning PHP 2 January 29th, 2004 07:18 PM



All times are GMT -4. The time now is 04:34 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.