Toolchain issue

Dale Anderson dale@st8vrt.com
Sat, 30 Apr 2005 11:07:01 +1200


--Apple-Mail-5--930131971
Content-Type: multipart/alternative;
	boundary=Apple-Mail-6--930131970


--Apple-Mail-6--930131970
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

Hi All

As mentioned in the IRC channel I have been having issues with building 
the EFL on kfreebsd .

It appears theres still an issue with the basic toolchain when linking 
against a c++ library .

The case is , code written in C and compiled with the system c compiler 
is crashing in the malloc initialization when linked against a shared 
library written in and compiled with the system c+ compiler .

Attached is a case in point , which runs fine on linux (and presumably 
on freebsd although cant test that at the moment)

(the crash is that __environ is NULL, so malloc crashes trying to get 
at the environment via a null pointer)

(Thanks to 
--Apple-Mail-6--930131970
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=US-ASCII

Hi All 


As mentioned in the IRC channel I have been having issues with
building the EFL on kfreebsd . 


It appears theres still an issue with the basic toolchain when linking
against a c++ library . 


The case is , code written in C and compiled with the system c
compiler is crashing in the malloc initialization when linked against
a shared library written in and compiled with the system c+ compiler .


Attached is a case in point , which runs fine on linux (and presumably
on freebsd although cant test that at the moment) 


<fontfamily><param>Lucida Grande</param><x-tad-smaller>(the crash is
that __environ is NULL, so malloc crashes trying to get at the
environment via a null pointer)</x-tad-smaller></fontfamily>


(Thanks to 
--Apple-Mail-6--930131970--

--Apple-Mail-5--930131971
Content-Transfer-Encoding: base64
Content-Type: application/x-gzip;
	x-unix-mode=0644;
	name="cpplib.tar.gz"
Content-Disposition: attachment;
	filename=cpplib.tar.gz

H4sIAN+8ckIAA+2XW2+bMBTH8+xPcVoeuqnjEq7Suk1qm6iLFFVTu5c9ocQ4YI3ZEYZlU9XvXnMJ
66q22Qvppp3fAwb7gIHj/znHdL3O+dIeDYmjiYKgaTUP2+Z87LieH3ihE7kjZ+y6YTSCYNC36qhU
uSgARoWU5XN2u8Yfftw/Am393zYWpUPMUf+P0Pef9r8fbv3veYG2G/uOr/2/l5/4n/vf4ILmVcLg
sFsC2SEh3yVPSCJn5avX5IbcEvLSb4kMxe/6zwaZY5f+x6HzS/+Rp/XvRQ7qfy8YfCUStoK4XQFx
FhNDX3PB7neRPky8Uz+VTbWFsrIPhMTx2fRidhlPpufz6zZwQBs4TurB6eVkO2QwkfAVRpK/jE7/
y4rniaWG03/0jP616nv9R17Q6N8NUP/7wDgAe8mFrTJC0uNjMFMwV2tOwVTZomAJmBL0Aunyg5LQ
V4okpbQxr/sKmbZHS/fNLTDz1q5/ZmcUb2TxVT1uShjNJBxdrxcbwUUKgm1AZSzP38B5WeTmBEoJ
7AcvrSMyn8Tz2dnV6dWX+NPp54/vrbd2pQq7XsoJW1apvhFDzZ/Q5//GIcPMsTP/O33970ZRXf/r
XQDm/73waP3PRUm+Lbhoyn/o2Kb17XXByqoQ4JzoDcJLfwWCIAiCIAiCIAiCIAiCIAiCIPe5Axmg
IA8AKAAA

--Apple-Mail-5--930131971
Content-Type: multipart/alternative;
	boundary=Apple-Mail-7--930131970


--Apple-Mail-7--930131970
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

Matt for having a look into this and setting up the test )

Use the build script to setup basic cpp lib and build binaries.

Regards
Dale.



--Apple-Mail-7--930131970
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=US-ASCII

Matt for having a look into this and setting up the test ) 


Use the build script to setup basic cpp lib and build binaries. 


Regards

Dale.


 


--Apple-Mail-7--930131970--

--Apple-Mail-5--930131971--