>> Am I missing a configuration step somewhere ?
> It would be helpful to know the exact commands you use as well
> as the cm3.cfg file, the m3makefiles involved, and perhaps some
> of the contents of the /usr/local/cm3/pkg directory. I'm afraid I
> don't even have a guess at what is wrong with your setup without
> this information.
>
To do the installation:
cd /usr/local/src
mkdir cm3
cd cm3
<download>
tar -xvzf cm3-min-POSIX-SOLgnu-d5.2.7.tgz
../cminstall
<take defaults except where needed to work around missing libraries>
tar -xvzf cm3-src-std-5.2.6.tgz
cd scripts
../do-m3-base.sh build
sudo ./do-m3-base.sh ****p
../do-m3-std.sh build
sudo ./do-m3-std.sh ****p
Now for my project.
The m3makefile looks like this:
-----------------
im****t("libm3")
im****t("ui")
im****t("formsvbt")
im****t("set")
include_dir("../../lib/src")
%option("gui","T")
module("EventStream")
module("OptionsDialogue")
module("NodeThread")
module("IniFile")
module("EVForm")
module("ErrorMsg")
module("HelpMsg")
interface("Node")
module("RefreshThread")
module("NSF")
interface("ColourPair")
module("ColourMap")
build_generic_intf("TextNodeTable","Table",["Text","Node"],HIDDEN)
build_generic_impl("TextNodeTable","Table",["Text","Node"])
build_generic_intf("ColourTable","Table",["NSF","ColourPair"],HIDDEN)
build_generic_impl("ColourTable","Table",["NSF","ColourPair"])
build_generic_intf("EventTable","Table",["Event","Event"],HIDDEN)
build_generic_impl("EventTable","Table",["Event","Event"])
build_generic_intf("EventTableSort","SortedTable",
["Event","EventTable"],HIDDEN)
build_generic_impl("EventTableSort","SortedTable",
["Event","Event","EventTable"])
%
% Test program
%
% implementation("TestView")
% Program("TestView")
%
% Resource for the FormsVBT description
%
resource("HelpWindow.fv")
resource("Viewer.fv")
resource("Options.fv")
resource("help.txt")
bundle("ViewerBundle")
implementation("EventViewer")
Program("EventViewer")
% implementation("TestEV")
% Program("TestEV")
----------------
and the included m3makefile
im****t("libm3")
im****t("netobj")
Interface("Event")
implementation("EventKey")
implementation("EventUtil")
Module("Util")
Module("SELock")
Module("EventQueue")
Interface("OpSys")
implementation("OpSys" & OS_TYPE )
netobj("Event","Server")
netobj("Event","Server1")
netobj("Event","Server2")
netobj("Event","Server3")
netobj("Event","Viewer")
-----------------------------
The project is in a directory structure like this
~ - Monitor + lib ---- src
|
+ Viewer - src
|
+ Server - src
|
+ Sender - src
and I do this
% cd ~/Monitor/Viewer
% cm3
--- building in SOLgnu ---
"/usr/local/cm3/pkg/libm3/src/bundleintf/bundle-ov.tmpl", line 4: quake
runtime
error: undefined variable: ROOT
--procedure-- -line- -file---
_im****t_template 4 /usr/local/cm3/pkg/libm3/src/bundleintf/bundle-
ov.tmpl
_im****t_template 4 /usr/local/cm3/pkg/libm3/src/bundleintf/bundle-
ov.tmpl
im****t 267 /usr/local/cm3/pkg/libm3/SOLgnu/.M3EX****TS
include_dir 1 /usr/home/garner/Monitor/Viewer/src/m3makefile
4 /usr/home/garner/Monitor/Viewer/SOLgnu/m3make.args
Fatal Error: package build failed
(this is without hacking the cm3.cfg)
Then if I try
% cm3 -DROOT=/usr/local/cm3
--- building in SOLgnu ---
***
*** runtime error:
*** Exception "PathnamePosix.CheckedRuntimeError" not in RAISES list
*** file "../src/os/POSIX/PathnamePosix.m3", line 98
***
Abort (core dumped)
If I copy the sources from ../lib/src to ./src and integrate the library
m3makefile into the current one, I get
% cm3
--- building in SOLgnu ---
"/usr/local/cm3/pkg/libm3/src/bundleintf/bundle-ov.tmpl", line 4: quake
runtime
error: undefined variable: ROOT
--procedure-- -line- -file---
_im****t_template 4 /usr/local/cm3/pkg/libm3/src/bundleintf/bundle-
ov.tmpl
_im****t_template 4 /usr/local/cm3/pkg/libm3/src/bundleintf/bundle-
ov.tmpl
im****t 267 /usr/local/cm3/pkg/libm3/SOLgnu/.M3EX****TS
include_dir 1 /usr/home/garner/Monitor/Viewer/src/m3makefile
4 /usr/home/garner/Monitor/Viewer/SOLgnu/m3make.args
Fatal Error: package build failed
or
% cm3 -DROOT=/usr/local/cm3
--- building in SOLgnu ---
/usr/local/cm3/m3-comm/stubgen/SOLgnu/stubgen -v1 -sno Event.Server -
T.M3IMPTA
B
/bin/sh: /usr/local/cm3/m3-comm/stubgen/SOLgnu/stubgen: not found
"/usr/local/cm3/pkg/netobj/src/netobj.tmpl", line 37: quake runtime error:
exit
1: /usr/local/cm3/m3-comm/stubgen/SOLgnu/stubgen -v1 -sno Event.Server -
T.M3IM
PTAB
--procedure-- -line- -file---
exec -- <builtin>
_v_netobj 37 /usr/local/cm3/pkg/netobj/src/netobj.tmpl
netobjv1 44 /usr/local/cm3/pkg/netobj/src/netobj.tmpl
netobj 64 /usr/local/cm3/pkg/netobj/src/netobj.tmpl
include_dir 19 /usr/home/garner/Monitor/Viewer/src/m3makefile
5 /usr/home/garner/Monitor/Viewer/SOLgnu/m3make.args
Fatal Error: package build failed
or
% cm3 -DROOT=$HOME
--- building in SOLgnu ---
/usr/home/garner/m3-comm/stubgen/SOLgnu/stubgen -v1 -sno Event.Server -
T.M3IMP
TAB
/bin/sh: /usr/home/garner/m3-comm/stubgen/SOLgnu/stubgen: not found
"/usr/local/cm3/pkg/netobj/src/netobj.tmpl", line 37: quake runtime error:
exit
1: /usr/home/garner/m3-comm/stubgen/SOLgnu/stubgen -v1 -sno Event.Server
-T.M3
IMPTAB
--procedure-- -line- -file---
exec -- <builtin>
_v_netobj 37 /usr/local/cm3/pkg/netobj/src/netobj.tmpl
netobjv1 44 /usr/local/cm3/pkg/netobj/src/netobj.tmpl
netobj 64 /usr/local/cm3/pkg/netobj/src/netobj.tmpl
include_dir 19 /usr/home/garner/Monitor/Viewer/src/m3makefile
5 /usr/home/garner/Monitor/Viewer/SOLgnu/m3make.args
Fatal Error: package build failed
--------------
Any clues ? This is a clean build on a new install of Solaris 9, with a
fairly standard set of utilities (gcc, gmake, libiconv ...).
Thanks,
Robin


|