mainAVR In-System Programmer - Support: sr #103577, can't compile 20040311 on fedora3...

 
 

sr #103577: can't compile 20040311 on fedora3 x86_64 - NULL undefined

Submitter:  None
Submitted:  Tue 16 Nov 2004 10:40:49 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  2 - Minor Status:  Done
Privacy:  Public Assigned to:  troth
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 17 Nov 2004 02:51:11 AM UTC, comment #1: 

This was fixed in cvs a while back. I just did a successful build in Fedora Core 3 on i386. I suspect that it will work on ix86_64 too.

Here's the ChangeLog entry:

2004-10-11  Theodore A. Roth  <troth@openavr.org>
[Contributed by Margarita Manterola <margamanterola@gmail.com>]

        * configure.ac (AC_INIT): Bump version.

        * src/Global.h: Include stddef.h so that NULL is always defined, making
        the code g++-3.4 compatible.

Theodore A. Roth <troth>
Tue 16 Nov 2004 10:40:49 PM UTC, original submission:  

./configure completes ok.

compile complains about NULL. added
#include <string.h>
at line 31 of Global.h and all is well.


16:29:10 nomad /prog/avr/uisp-20040311# make
Making all in src
make[1]: Entering directory `/prog/avr/uisp-20040311/src'
make  all-am
make[2]: Entering directory `/prog/avr/uisp-20040311/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT Avr.o -MD -MP -MF ".deps/Avr.Tpo" \
  -c -o Avr.o `test -f 'Avr.C' || echo './'`Avr.C; \
then mv -f ".deps/Avr.Tpo" ".deps/Avr.Po"; \
else rm -f ".deps/Avr.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT AvrAtmel.o -MD -MP -MF ".deps/AvrAtmel.Tpo" \
  -c -o AvrAtmel.o `test -f 'AvrAtmel.C' || echo './'`AvrAtmel.C; \
then mv -f ".deps/AvrAtmel.Tpo" ".deps/AvrAtmel.Po"; \
else rm -f ".deps/AvrAtmel.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT AvrDummy.o -MD -MP -MF ".deps/AvrDummy.Tpo" \
  -c -o AvrDummy.o `test -f 'AvrDummy.C' || echo './'`AvrDummy.C; \
then mv -f ".deps/AvrDummy.Tpo" ".deps/AvrDummy.Po"; \
else rm -f ".deps/AvrDummy.Tpo"; exit 1; \
fi
In file included from AvrDummy.h:31,
                 from AvrDummy.C:38:
Global.h: In member function `void TPt<TRec>::MkRef()':
Global.h:43: error: `NULL' undeclared (first use this function)
Global.h:43: error: (Each undeclared identifier is reported only once for each function it appears in.)
Global.h: In member function `void TPt<TRec>::UnRef()':
Global.h:44: error: `NULL' undeclared (first use this function)
Global.h: In constructor `TPt<TRec>::TPt()':
Global.h:46: error: `NULL' undeclared (first use this function)
Global.h: In member function `TRec* TPt<TRec>::operator->() const':
Global.h:57: error: `NULL' undeclared (first use this function)
Global.h: In member function `TRec& TPt<TRec>::operator*() const':
Global.h:58: error: `NULL' undeclared (first use this function)
Global.h: In member function `TRec& TPt<TRec>::operator[](int) const':
Global.h:59: error: `NULL' undeclared (first use this function)
make[2]: * [AvrDummy.o] Error 1
make[2]: Leaving directory `/prog/avr/uisp-20040311/src'
make[1]: * [all] Error 2
make[1]: Leaving directory `/prog/avr/uisp-20040311/src'
make: * [all-recursive] Error 1
16:29:24 nomad /prog/avr/uisp-20040311#

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-11-17 troth Reassign ItemFrom group AVR In-System Programmer, support tracker To group AVR In-System Programmer, bugs tracker
2004-11-17 troth StatusNone Done
    Assigned toNone troth
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code