'Framework not defined' while building newly merged master

8 views
Skip to first unread message

David Winn

unread,
Feb 18, 2010, 11:19:09 AM2/18/10
to Cappuccino & Objective-J
When I try to build the newly merged master branch, I get the
following error. Am I missing a step somewhere? I could build the
master and jake branches just before the merge, but not loader.

Looking at the stack trace and jakefiles, the best I can guess is that
'framework' should be defined by a system library somewhere that I
don't have installed.

Thanks,
David


# Remove any previous cappuccino install
> sudo rm -rf /usr/local/narwhal

# Check versions
> cat /etc/system-release
Fedora release 12 (Constantine)
> rhino
Rhino 1.7 release 0.7.r2.fc12 2009 07 28
> gcc -v
Target: i686-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --
infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/
bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --
enable-checking=release --with-system-zlib --enable-__cxa_atexit --
disable-libunwind-exceptions --enable-gnu-unique-object --enable-
languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --
disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-
gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-
mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-
multilib --with-ppl --with-cloog --with-tune=generic --with-arch=i686
--build=i686-redhat-linux
Thread model: posix
gcc version 4.4.3 20100127 (Red Hat 4.4.3-4) (GCC)
> doxygen -v
Doxygen version 1.6.1

# Bootstrap(Take all defaults)
> sudo ./bootstrap.bat

# Build
> export CAPP_BUILD=/home/dwinn/cappuccino/capp
> jake sudo-install
(in /home/dwinn/work/cappuccino)
(in /home/dwinn/work/cappuccino)
(in /home/dwinn/work/cappuccino/Objective-J)
Copying... CommonJS/objj-executable
Copying... CommonJS/package.json
Building... /home/dwinn/work/cappuccino/capp/Debug/CommonJS/objective-
j/lib/objective-
j.js
Building... /home/dwinn/work/cappuccino/capp/Debug/CommonJS/objective-
j/lib/objective-j/
jake.js
Building... /home/dwinn/work/cappuccino/capp/Debug/CommonJS/objective-
j/lib/objective-j/
loader.js
Building... /home/dwinn/work/cappuccino/capp/Debug/CommonJS/objective-
j/lib/objective-j/
compiler.js
Building... /home/dwinn/work/cappuccino/capp/Debug/CommonJS/objective-
j/lib/objective-j/rhino/regexp-rhino-
patch.js
Building... /home/dwinn/work/cappuccino/capp/Debug/CommonJS/objective-
j/lib/objective-j/jake/
applicationtask.js
Building... /home/dwinn/work/cappuccino/capp/Debug/CommonJS/objective-
j/lib/objective-j/jake/
bundletask.js
Building... /home/dwinn/work/cappuccino/capp/Debug/CommonJS/objective-
j/lib/objective-j/jake/
environment.js
Building... /home/dwinn/work/cappuccino/capp/Debug/CommonJS/objective-
j/lib/objective-j/jake/
frameworktask.js
Copying... CommonJS/lib/objective-j/jake/LICENSES/LGPL-v2.1
Copying... CommonJS/lib/objective-j/jake/LICENSES/MIT
Copying... CommonJS/bin/objjc
Copying... CommonJS/bin/cplutil
Copying... CommonJS/bin/objj
Building... /home/dwinn/work/cappuccino/capp/Debug/Objective-J/
Objective-
J.js
Build took 1 second
(in /home/dwinn/work/cappuccino/CommonJS)
Build took 732 millseconds
(in /home/dwinn/work/cappuccino/Foundation)
org.mozilla.javascript.EcmaError: ReferenceError: "framework" is not
defined. (/home/dwinn/work/cappuccino/Foundation/Jakefile#26)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:
3753)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:
3731)
at
org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:
3816)
at
org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:
1826)
at
org.mozilla.javascript.ScriptRuntime.getNameFunctionAndThis(ScriptRuntime.java:
2231)
at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:
1506)
at script(/home/TRELLISWARE/dwinn/work/cappuccino/Foundation/
Jakefile:26)
at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:845)
at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:
164)
at
org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:
2504)
at
org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:294)
at
org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:
129)
at
org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
at
org.mozilla.javascript.gen._usr_local_narwhal_engines_rhino_bootstrap_js_1._c_anonymous_5(Unknown
Source)
at
org.mozilla.javascript.gen._usr_local_narwhal_engines_rhino_bootstrap_js_1.call(Unknown
Source)
at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:
1702)
at script(/usr/local/narwhal/lib/sandbox.js:115)
at script(/usr/local/narwhal/packages/jake/lib/jake/
application.js:525)
at script(/usr/local/narwhal/packages/jake/lib/jake/
application.js:128)
at script(/usr/local/narwhal/packages/jake/lib/jake/
application.js:73)
at script(/usr/local/narwhal/packages/jake/bin/jake:5)
at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:845)
at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:
164)
at
org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:
2504)
at
org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:294)
at
org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:
129)
at
org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
at
org.mozilla.javascript.gen._usr_local_narwhal_engines_rhino_bootstrap_js_1._c_anonymous_5(Unknown
Source)
at
org.mozilla.javascript.gen._usr_local_narwhal_engines_rhino_bootstrap_js_1.call(Unknown
Source)
at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:
1702)
at script(/usr/local/narwhal/lib/sandbox.js:115)
at script(/usr/local/narwhal/lib/sandbox.js:231)
at script.narwhal(narwhal.js:254)
at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:845)
at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:
164)
at
org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:
97)
at
org.mozilla.javascript.gen._usr_local_narwhal_engines_rhino_bootstrap_js_1._c_anonymous_1(Unknown
Source)
at
org.mozilla.javascript.gen._usr_local_narwhal_engines_rhino_bootstrap_js_1.call(Unknown
Source)
at
org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
at
org.mozilla.javascript.gen._usr_local_narwhal_engines_rhino_bootstrap_js_1._c_script_0(Unknown
Source)
at
org.mozilla.javascript.gen._usr_local_narwhal_engines_rhino_bootstrap_js_1.call(Unknown
Source)
at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:
426)
at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:
3157)
at
org.mozilla.javascript.gen._usr_local_narwhal_engines_rhino_bootstrap_js_1.call(Unknown
Source)
at
org.mozilla.javascript.gen._usr_local_narwhal_engines_rhino_bootstrap_js_1.exec(Unknown
Source)
at
org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:563)
at
org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:
485)
at
org.mozilla.javascript.tools.shell.Main.processFile(Main.java:451)
at
org.mozilla.javascript.tools.shell.Main.processSource(Main.java:443)
at
org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:196)
at org.mozilla.javascript.tools.shell.Main
$IProxy.run(Main.java:117)
at org.mozilla.javascript.Context.call(Context.java:521)
at
org.mozilla.javascript.ContextFactory.call(ContextFactory.java:535)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:179)
at org.mozilla.javascript.tools.shell.Main.main(Main.java:157)
ReferenceError: "framework" is not defined.

Tom Robinson

unread,
Feb 19, 2010, 6:03:29 AM2/19/10
to objec...@googlegroups.com
Paul B. also had this error, and I tried reproducing it on my Ubuntu box but wasn't able to. He's going to look into it more.

"framework" is defined in the Objective-J build tools, and is supposed to be loaded automatically once it's built by the "common.jake" file (loaded by all the Jakefiles).

-tom

> --
> You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
> To post to this group, send email to objec...@googlegroups.com.
> To unsubscribe from this group, send email to objectivej+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/objectivej?hl=en.
>

Paul Baumgart

unread,
Feb 19, 2010, 8:15:39 AM2/19/10
to objectivej
Hey, so I got it working on my end. David, please let me know if the
changes work for you. ( git clone
http://github.com/paulbaumgart/cappuccino.git )

First, a fix for the "framework not defined" error:
http://github.com/paulbaumgart/cappuccino/commit/3765371151e9ec164e1d44288138f83230119e11

Then, a fix for the super-pedantic sudo version on Ubuntu, to make
jake sudo-install work also:
http://github.com/paulbaumgart/cappuccino/commit/e7141c6f288e738468eeab2d0dce77a659d868f6

Note that the 2nd fix adds another file to the root cappuccino
directory: shell_config_file.sh. This isn't strictly necessary, but is
more "DRY" compliant. I'm happy to put that file somewhere else or
inline the commands if anyone objects.

Best,
Paul

David Winn

unread,
Feb 19, 2010, 11:43:48 AM2/19/10
to Cappuccino & Objective-J
Your patches fixed it for me. Thanks for the quick response.
David

On Feb 19, 5:15 am, Paul Baumgart <paulbaumg...@gmail.com> wrote:
> Hey, so I got it working on my end. David, please let me know if the
> changes work for you. ( git clonehttp://github.com/paulbaumgart/cappuccino.git)
>

> First, a fix for the "framework not defined" error:http://github.com/paulbaumgart/cappuccino/commit/3765371151e9ec164e1d...


>
> Then, a fix for the super-pedantic sudo version on Ubuntu, to make

> jake sudo-install work also:http://github.com/paulbaumgart/cappuccino/commit/e7141c6f288e738468ee...

Reply all
Reply to author
Forward
0 new messages