I've built the latest CVS on AIX 5 using xlc and xlC compilers. It seems that autoconf 2.57 produces a configure file which looks for a gnu compatable malloc. This means that malloc(0) should return a none Null value. Since the AIX malloc returns null, the configure adds to config.h :
#define HAVE_MALLOC 0 and
#define malloc rpl_malloc
I have done this and would like to contribute the changes to the repository. This includes an additional file src/nco/malloc.c and changes to: Makefile.am Makefile.in
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've built the latest CVS on AIX 5 using xlc and xlC compilers. It seems that autoconf 2.57 produces a configure file which looks for a gnu compatable malloc. This means that malloc(0) should return a none Null value. Since the AIX malloc returns null, the configure adds to config.h :
#define HAVE_MALLOC 0 and
#define malloc rpl_malloc
As I understand the autoconf documentation, it is your responsibility to provide this rpl_malloc function :
http://www.gnu.org/manual/autoconf/html_node/autoconf_46.html
I have done this and would like to contribute the changes to the repository. This includes an additional file src/nco/malloc.c and changes to: Makefile.am Makefile.in
Jim,
That's great. If you send a patch, I can apply it to the CVS source, since I'm the one that usually deals with the autoconf stuff.
rorik
Okay I've uploaded a patch. I did not send a Makefile.in since we are using different automakes I think it would be better if you build that.