Header malloc_g/malloc still not workin in 6.2

bridged with qdn.public.devtools
Post Reply
Rejean Senecal

Header malloc_g/malloc still not workin in 6.2

Post by Rejean Senecal » Thu Sep 26, 2002 3:22 pm

I trying to use the header file <malloc_g/malloc.h> to debug some memory
problem.
I could not use it in QNX 6.1 beacause of some header problem with
Dimkumware.
Now i got theses errors in QNX 6.2 NC.

nice
QCC -O0 -DNDEBUG -w8 -Wc,-mcpu=pentium,-march=pentium,-fno-pic,-fomit-frame
-pointer,-freg-struct-return -I . -I ../../Common/Global -I
.../../Common/Global -I ../../Common/Templates -c -o obj/IpcClient.o
../IpcClient.cpp
In file included from /usr/include/cpp/xlocale:9,
from /usr/include/cpp/xiosbase:4,
from /usr/include/cpp/streambuf:4,
from /usr/include/cpp/xlocnum:8,
from /usr/include/cpp/ios:4,
from /usr/include/cpp/ostream:4,
from /usr/include/cpp/istream:4,
from /usr/include/cpp/iostream:4,
from ./IpcClient.cpp:34:
/usr/include/cpp/xlocinfo: In function `int std::_LStrcoll<char>(const char
*, const char *, const char *, const char *, const std::_Collvec *)':
/usr/include/cpp/xlocinfo:155: `strcoll' undeclared in namespace `std'
/usr/include/cpp/xlocinfo:155: warning: control reaches end of non-void
function `std::_LStrcoll<char>(const char *, const char *, const char *,
const char *, const std::_Collvec *)'
/usr/include/cpp/xlocinfo: In function `size_t std::_LStrxfrm<char>(char *,
char *, const char *, const char *, const std::_Collvec *)':
/usr/include/cpp/xlocinfo:197: `strxfrm' undeclared in namespace `std'
/usr/include/cpp/xlocinfo:197: warning: control reaches end of non-void
function `std::_LStrxfrm<char>(char *, char *, const char *, const char *,
const std::_Collvec *)'
../IpcClient.cpp: In method `bool IpcClient::Send(IpcMsgBase *)':
../IpcClient.cpp:151: implicit declaration of function `int strerror(...)'
/usr/include/cpp/xlocnum: In function `static class
std::ostreambuf_iterator<char,std::char_traits<char> >
std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char> >
::_Iput(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, char *, unsigned int)':
/usr/include/cpp/xlocnum:722: instantiated from
`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char> >
::do_put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, long unsigned int) const'
/usr/include/cpp/xlocnum:656: instantiated from
`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char> >
::put(std::ostreambuf_iterator<char,std::char_traits<char> >, std::ios_base
&, char, long unsigned int) const'
/usr/include/cpp/ostream:203: instantiated from
`std::basic_ostream<char,std::char_traits<char> >::operator <<(unsigned
int)'
../IpcClient.cpp:49: instantiated from here
/usr/include/cpp/xlocnum:954: `memmove' undeclared in namespace `std'
/usr/include/cpp/xlocnum: In function `static class
std::ostreambuf_iterator<char,std::char_traits<char> >
std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char> >
::_Fput(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, const char *, unsigned int, unsigned int, unsigned
int, unsigned int)':
/usr/include/cpp/xlocnum:777: instantiated from
`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char> >
::do_put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, double) const'
../IpcClient.cpp:167: instantiated from here
/usr/include/cpp/xlocnum:884: `memchr' undeclared in namespace `std'
/usr/include/cpp/xlocnum:777: instantiated from
`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char> >
::do_put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, double) const'
../IpcClient.cpp:167: instantiated from here
/usr/include/cpp/xlocnum:896: `memchr' undeclared in namespace `std'
cc: /usr/lib/gcc-lib/ntox86/2.95.3/cc1plus error 33
make:

Jens H Jorgensen

Re: Header malloc_g/malloc still not workin in 6.2

Post by Jens H Jorgensen » Thu Sep 26, 2002 3:54 pm

If you just need a simple memory debugging library
then try ElectricFence or refence. You can find the
port here:

http://sourceforge.net/projects/openqnx/

--
Jens



"Rejean Senecal" <rsenecal@oerlikon.ca-no-spam> wrote in message
news:amv8uu$47b$1@inn.qnx.com...
I trying to use the header file <malloc_g/malloc.h> to debug some memory
problem.
I could not use it in QNX 6.1 beacause of some header problem with
Dimkumware.
Now i got theses errors in QNX 6.2 NC.

nice

QCC -O0 -DNDEBUG -w8 -Wc,-mcpu=pentium,-march=pentium,-fno-pic,-fomit-frame
-pointer,-freg-struct-return -I . -I ../../Common/Global -I
../../Common/Global -I ../../Common/Templates -c -o obj/IpcClient.o
./IpcClient.cpp
In file included from /usr/include/cpp/xlocale:9,
from /usr/include/cpp/xiosbase:4,
from /usr/include/cpp/streambuf:4,
from /usr/include/cpp/xlocnum:8,
from /usr/include/cpp/ios:4,
from /usr/include/cpp/ostream:4,
from /usr/include/cpp/istream:4,
from /usr/include/cpp/iostream:4,
from ./IpcClient.cpp:34:
/usr/include/cpp/xlocinfo: In function `int std::_LStrcoll<char>(const
char
*, const char *, const char *, const char *, const std::_Collvec *)':
/usr/include/cpp/xlocinfo:155: `strcoll' undeclared in namespace `std'
/usr/include/cpp/xlocinfo:155: warning: control reaches end of non-void
function `std::_LStrcoll<char>(const char *, const char *, const char *,
const char *, const std::_Collvec *)'
/usr/include/cpp/xlocinfo: In function `size_t std::_LStrxfrm<char>(char
*,
char *, const char *, const char *, const std::_Collvec *)':
/usr/include/cpp/xlocinfo:197: `strxfrm' undeclared in namespace `std'
/usr/include/cpp/xlocinfo:197: warning: control reaches end of non-void
function `std::_LStrxfrm<char>(char *, char *, const char *, const char *,
const std::_Collvec *)'
./IpcClient.cpp: In method `bool IpcClient::Send(IpcMsgBase *)':
./IpcClient.cpp:151: implicit declaration of function `int strerror(...)'
/usr/include/cpp/xlocnum: In function `static class
std::ostreambuf_iterator<char,std::char_traits<char
std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char
::_Iput(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, char *, unsigned int)':
/usr/include/cpp/xlocnum:722: instantiated from
`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char
::do_put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, long unsigned int) const'
/usr/include/cpp/xlocnum:656: instantiated from
`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char
::put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base
&, char, long unsigned int) const'
/usr/include/cpp/ostream:203: instantiated from
`std::basic_ostream<char,std::char_traits<char> >::operator <<(unsigned
int)'
./IpcClient.cpp:49: instantiated from here
/usr/include/cpp/xlocnum:954: `memmove' undeclared in namespace `std'
/usr/include/cpp/xlocnum: In function `static class
std::ostreambuf_iterator<char,std::char_traits<char
std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char
::_Fput(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, const char *, unsigned int, unsigned int, unsigned
int, unsigned int)':
/usr/include/cpp/xlocnum:777: instantiated from
`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char
::do_put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, double) const'
./IpcClient.cpp:167: instantiated from here
/usr/include/cpp/xlocnum:884: `memchr' undeclared in namespace `std'
/usr/include/cpp/xlocnum:777: instantiated from
`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char
::do_put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, double) const'
./IpcClient.cpp:167: instantiated from here
/usr/include/cpp/xlocnum:896: `memchr' undeclared in namespace `std'
cc: /usr/lib/gcc-lib/ntox86/2.95.3/cc1plus error 33
make:

Robert Rutherford

Re: Header malloc_g/malloc still not workin in 6.2

Post by Robert Rutherford » Fri Sep 27, 2002 7:39 am

Just curious, but does ElectricFence work with both the Dinkum and GNU/GCC
C++ libraries?

Rob Rutherford

"Jens H Jorgensen" <jhj@remove-nospam-videk.com> wrote in message
news:amva4f$4t9$1@inn.qnx.com...
If you just need a simple memory debugging library
then try ElectricFence or refence. You can find the
port here:

http://sourceforge.net/projects/openqnx/

--
Jens



"Rejean Senecal" <rsenecal@oerlikon.ca-no-spam> wrote in message
news:amv8uu$47b$1@inn.qnx.com...
I trying to use the header file <malloc_g/malloc.h> to debug some memory
problem.
I could not use it in QNX 6.1 beacause of some header problem with
Dimkumware.
Now i got theses errors in QNX 6.2 NC.

nice


QCC -O0 -DNDEBUG -w8 -Wc,-mcpu=pentium,-march=pentium,-fno-pic,-fomit-frame
-pointer,-freg-struct-return -I . -I ../../Common/Global -I
../../Common/Global -I ../../Common/Templates -c -o obj/IpcClient.o
./IpcClient.cpp
In file included from /usr/include/cpp/xlocale:9,
from /usr/include/cpp/xiosbase:4,
from /usr/include/cpp/streambuf:4,
from /usr/include/cpp/xlocnum:8,
from /usr/include/cpp/ios:4,
from /usr/include/cpp/ostream:4,
from /usr/include/cpp/istream:4,
from /usr/include/cpp/iostream:4,
from ./IpcClient.cpp:34:
/usr/include/cpp/xlocinfo: In function `int std::_LStrcoll<char>(const
char
*, const char *, const char *, const char *, const std::_Collvec *)':
/usr/include/cpp/xlocinfo:155: `strcoll' undeclared in namespace `std'
/usr/include/cpp/xlocinfo:155: warning: control reaches end of non-void
function `std::_LStrcoll<char>(const char *, const char *, const char *,
const char *, const std::_Collvec *)'
/usr/include/cpp/xlocinfo: In function `size_t std::_LStrxfrm<char>(char
*,
char *, const char *, const char *, const std::_Collvec *)':
/usr/include/cpp/xlocinfo:197: `strxfrm' undeclared in namespace `std'
/usr/include/cpp/xlocinfo:197: warning: control reaches end of non-void
function `std::_LStrxfrm<char>(char *, char *, const char *, const char
*,
const std::_Collvec *)'
./IpcClient.cpp: In method `bool IpcClient::Send(IpcMsgBase *)':
./IpcClient.cpp:151: implicit declaration of function `int
strerror(...)'
/usr/include/cpp/xlocnum: In function `static class
std::ostreambuf_iterator<char,std::char_traits<char
std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char
::_Iput(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, char *, unsigned int)':
/usr/include/cpp/xlocnum:722: instantiated from
`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char

::do_put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, long unsigned int) const'
/usr/include/cpp/xlocnum:656: instantiated from
`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char

::put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base
&, char, long unsigned int) const'
/usr/include/cpp/ostream:203: instantiated from
`std::basic_ostream<char,std::char_traits<char> >::operator <<(unsigned
int)'
./IpcClient.cpp:49: instantiated from here
/usr/include/cpp/xlocnum:954: `memmove' undeclared in namespace `std'
/usr/include/cpp/xlocnum: In function `static class
std::ostreambuf_iterator<char,std::char_traits<char
std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char
::_Fput(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, const char *, unsigned int, unsigned int,
unsigned
int, unsigned int)':
/usr/include/cpp/xlocnum:777: instantiated from
`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char

::do_put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, double) const'
./IpcClient.cpp:167: instantiated from here
/usr/include/cpp/xlocnum:884: `memchr' undeclared in namespace `std'
/usr/include/cpp/xlocnum:777: instantiated from
`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char

::do_put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, double) const'
./IpcClient.cpp:167: instantiated from here
/usr/include/cpp/xlocnum:896: `memchr' undeclared in namespace `std'
cc: /usr/lib/gcc-lib/ntox86/2.95.3/cc1plus error 33
make:



Jens H Jorgensen

Re: Header malloc_g/malloc still not workin in 6.2

Post by Jens H Jorgensen » Fri Sep 27, 2002 1:11 pm

I know for sure that it works with the Dinkum library. I have not tried it
with libg++ - but I have seen that is has been ported to a number of GNU
based platforms (like Linux), so I would think it would work with libg++. In
the original Dinkum distribution of 6.2 there seem to be a bug in ifstream
(I think it was), that has since been fixed. Efence actually seem to detect
that problem, so if you are using the orginal 6.2 libcpp then you might see
some problems when using ifstream. 6.1 libcpp works without a problem.

--
Jens
"Robert Rutherford" <ruzz@NoSpamPlease.ruzz.com> wrote in message
news:an11ff$d2s$1@inn.qnx.com...
Just curious, but does ElectricFence work with both the Dinkum and GNU/GCC
C++ libraries?

Rob Rutherford

"Jens H Jorgensen" <jhj@remove-nospam-videk.com> wrote in message
news:amva4f$4t9$1@inn.qnx.com...
If you just need a simple memory debugging library
then try ElectricFence or efence. You can find the
port here:

http://sourceforge.net/projects/openqnx/

--
Jens



"Rejean Senecal" <rsenecal@oerlikon.ca-no-spam> wrote in message
news:amv8uu$47b$1@inn.qnx.com...
I trying to use the header file <malloc_g/malloc.h> to debug some
memory
problem.
I could not use it in QNX 6.1 beacause of some header problem with
Dimkumware.
Now i got theses errors in QNX 6.2 NC.

nice



QCC -O0 -DNDEBUG -w8 -Wc,-mcpu=pentium,-march=pentium,-fno-pic,-fomit-frame
-pointer,-freg-struct-return -I . -I ../../Common/Global -I
../../Common/Global -I ../../Common/Templates -c -o obj/IpcClient.o
./IpcClient.cpp
In file included from /usr/include/cpp/xlocale:9,
from /usr/include/cpp/xiosbase:4,
from /usr/include/cpp/streambuf:4,
from /usr/include/cpp/xlocnum:8,
from /usr/include/cpp/ios:4,
from /usr/include/cpp/ostream:4,
from /usr/include/cpp/istream:4,
from /usr/include/cpp/iostream:4,
from ./IpcClient.cpp:34:
/usr/include/cpp/xlocinfo: In function `int std::_LStrcoll<char>(const
char
*, const char *, const char *, const char *, const std::_Collvec *)':
/usr/include/cpp/xlocinfo:155: `strcoll' undeclared in namespace `std'
/usr/include/cpp/xlocinfo:155: warning: control reaches end of
non-void
function `std::_LStrcoll<char>(const char *, const char *, const char
*,
const char *, const std::_Collvec *)'
/usr/include/cpp/xlocinfo: In function `size_t
std::_LStrxfrm<char>(char
*,
char *, const char *, const char *, const std::_Collvec *)':
/usr/include/cpp/xlocinfo:197: `strxfrm' undeclared in namespace `std'
/usr/include/cpp/xlocinfo:197: warning: control reaches end of
non-void
function `std::_LStrxfrm<char>(char *, char *, const char *, const
char
*,
const std::_Collvec *)'
./IpcClient.cpp: In method `bool IpcClient::Send(IpcMsgBase *)':
./IpcClient.cpp:151: implicit declaration of function `int
strerror(...)'
/usr/include/cpp/xlocnum: In function `static class
std::ostreambuf_iterator<char,std::char_traits<char
std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char

::_Iput(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, char *, unsigned int)':
/usr/include/cpp/xlocnum:722: instantiated from

`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char

::do_put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, long unsigned int) const'
/usr/include/cpp/xlocnum:656: instantiated from

`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char

::put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base
&, char, long unsigned int) const'
/usr/include/cpp/ostream:203: instantiated from
`std::basic_ostream<char,std::char_traits<char> >::operator
(unsigned
int)'
./IpcClient.cpp:49: instantiated from here
/usr/include/cpp/xlocnum:954: `memmove' undeclared in namespace `std'
/usr/include/cpp/xlocnum: In function `static class
std::ostreambuf_iterator<char,std::char_traits<char
std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char

::_Fput(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, const char *, unsigned int, unsigned int,
unsigned
int, unsigned int)':
/usr/include/cpp/xlocnum:777: instantiated from

`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char

::do_put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, double) const'
./IpcClient.cpp:167: instantiated from here
/usr/include/cpp/xlocnum:884: `memchr' undeclared in namespace `std'
/usr/include/cpp/xlocnum:777: instantiated from

`std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char

::do_put(std::ostreambuf_iterator<char,std::char_traits<char> >,
std::ios_base &, char, double) const'
./IpcClient.cpp:167: instantiated from here
/usr/include/cpp/xlocnum:896: `memchr' undeclared in namespace `std'
cc: /usr/lib/gcc-lib/ntox86/2.95.3/cc1plus error 33
make:





Rejean Senecal

Re: Header malloc_g/malloc still not workin in 6.2

Post by Rejean Senecal » Mon Sep 30, 2002 11:39 am

It's not working in 6.1, look at this code. If I compile it with theses
compiler options .
-O0 -w8 -Wc,-mcpu=pentium,-march=pentium,-fno-pic,-fomit-frame-pointer,-fre
g-struct-return

#include <malloc_g/malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <fstream>

using namespace std;
int main(int argc, char *argv)
{
return 0;
}

I got theses errors. What the problem.

In file included from /usr/include/xlocale:9,
from /usr/include/xiosbase:4,
from /usr/include/streambuf:4,
from /usr/include/xlocnum:8,
from /usr/include/ios:4,
from /usr/include/ostream:4,
from /usr/include/istream:4,
from /usr/include/fstream:4,
from ./test.cpp:9:
/usr/include/xlocinfo: In function `int std::_LStrcoll<char>(const char *,
const char *, const char *, const char *, const std::_Collvec *)':
/usr/include/xlocinfo:155: `strcoll' undeclared in namespace `std'
/usr/include/xlocinfo:155: warning: control reaches end of non-void function
`std::_LStrcoll<char>(const char *, const char *, const char *, const char
*, const std::_Collvec *)'
/usr/include/xlocinfo: In function `size_t std::_LStrxfrm<char>(char *, char
*, const char *, const char *, const std::_Collvec *)':
/usr/include/xlocinfo:197: `strxfrm' undeclared in namespace `std'
/usr/include/xlocinfo:197: warning: control reaches end of non-void function
`std::_LStrxfrm<char>(char *, char *, const char *, const char *, const
std::_Collvec *)'
In file included from ./test.cpp:9:
/usr/include/fstream: In method
`std::basic_filebuf<_Elem,_Traits>::basic_filebuf(_Filet * = 0)':
/usr/include/fstream:89: warning: base initializer for
`std::basic_streambuf<_Elem,_Traits>'
/usr/include/fstream:89: warning: will be re-ordered to precede member
initializations
/usr/include/fstream: In method
`std::basic_filebuf<_Elem,_Traits>::basic_filebuf(std::_Uninitialized)':
/usr/include/fstream:98: warning: base initializer for
`std::basic_streambuf<_Elem,_Traits>'
/usr/include/fstream:98: warning: will be re-ordered to precede member
initializations
cc: /usr/lib/gcc-lib/ntox86/2.95.2/cc1plus error 33
make: *** [obj/test.o] Error 1

Post Reply

Return to “qdn.public.devtools”