Skip to Content.
Sympa Menu

sm-sorcery - [SM-Sorcery] Sorcery messing up something

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: Eric Sandall <eric AT sandall.us>
  • To: sm-sorcery AT lists.ibiblio.org
  • Subject: [SM-Sorcery] Sorcery messing up something
  • Date: Tue, 14 Oct 2003 19:25:58 -0700

I'm having a problem installing dime-cvs (custom spell for a WorldForge
client)
that has nothing to do with it being the CVS code (as I'll explain below).

If I compile using 'cast dime-cvs' (with variations of '-r' and '-c' every now
and then), I receive this error eventually:

make[5]: Entering directory `/usr/src/dime-cvs-head/src/components/ogre'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src
-I/usr/include/libxml2
-I/usr/include/wfmath-0.2 -I/usr/include/Eris-1.2
-I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2
-I/usr/include/skstream-0.3 -I/usr/lib/skstream-0.3/include
-I/usr/include/Atlas-C++-0.5 -I/usr/include/wfmath-0.3
-I/usr/include/varconf-1.0 -march=pentium3 -mmmx -mfpmath=sse -msse -Os
-I/usr/include/SDL -D_REENTRANT -Wall -DGCC_3_1 -DEXT_HASH
-I/usr/include/OGRE
-I/usr/include/freetype2 -DUSE_CPP_UNIT -DNDEBUG -MT DimeOgre.o -MD -MP -MF
".deps/DimeOgre.Tpo" \
-c -o DimeOgre.o `test -f 'DimeOgre.cpp' || echo './'`DimeOgre.cpp; \
then mv -f ".deps/DimeOgre.Tpo" ".deps/DimeOgre.Po"; \
else rm -f ".deps/DimeOgre.Tpo"; exit 1; \
fi
In file included from /usr/include/OGRE/OgreStdHeaders.h:10,
from /usr/include/OGRE/OgrePrerequisites.h:74,
from /usr/include/OGRE/Ogre.h:28,
from DimeOgre.h:110,
from DimeOgre.cpp:167:
/usr/include/c++/3.3.1/cstdlib:103: error: `malloc' not declared
make[5]: *** [DimeOgre.o] Error 1

However, if I use the same commands to get there from a normal bash shell,
dime
compiles fine. For some reason, the configure script cannot find that I have
malloc in my system, and so sets HAVE_MALLOC 0 in config.h. Attached is the
patch (malloc.patch) I use after the ./configure in BUILD and the differences
between a configuration using Sorcery and one using regular bash
(configure.differences.bz2).

Any ideas why Sorcery breaks this?

-sandalle

--
PGP Key Fingerprint: FCFF 26A1 BE21 08F4 BB91 FAED 1D7B 7D74 A8EF DD61
http://search.keyserver.net:11371/pks/lookup?op=get&search=0xA8EFDD61

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/E/IT$ d-- s++:+>: a-- C++(+++) BL++++VIS>$ P+(++) L+++ E-(---) W++ N+@ o?
K? w++++>-- O M-@ V-- PS+(+++) PE(-) Y++(+) PGP++(+) t+() 5++ X(+) R+(++)
tv(--)b++(+++) DI+@ D++(+++) G>+++ e>+++ h---(++) r++ y+
------END GEEK CODE BLOCK------

Eric Sandall | Source Mage GNU/Linux Developer
eric AT sandall.us | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Attachment: configure.difference.bz2
Description: application/bzip

diff -uprN dime-cvs-head.firstconfigure/config.h dime-cvs-head/config.h
--- dime-cvs-head.firstconfigure/config.h   2003-10-14 15:29:18.000000000 -0700
+++ dime-cvs-head/config.h  2003-10-14 15:30:45.000000000 -0700
@@ -21,7 +21,7 @@
                                                                                                                            
 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
    to 0 otherwise. */
-#define HAVE_MALLOC 0
+#define HAVE_MALLOC 1
                                                                                                                            
 /* Define to 1 if you have the <memory.h> header file. */
 #define HAVE_MEMORY_H 1
@@ -85,4 +85,4 @@
 /* #undef inline */
                                                                                                                            
 /* Define to rpl_malloc if the replacement function should be used. */
-#define malloc rpl_malloc
+/* #undef malloc */



Archive powered by MHonArc 2.6.24.

Top of Page