Hi,
I am porting a device driver (originally written for Linux) over to
UnixWare 1.1/SysVR4. I am attempting to use the idtools, but they
are causing problems.
When using the idbuild command, it appears to not be generating one
of its intermediate source files correctly. Let's say the module's
name is 'foo' (how's THAT for original? ;-) When I run idbuild, it
is supposed to create a file in /etc/conf/pack.d/foo called "mod_conf.c"
and compile it. When it compiles it, it returns an error. My attempt
to do an idbuild looks like this:
----------------------------------------------------------------------
/etc/conf/bin/idbuild -K -M foo
The following loadable modules will be configured now:
foo
"mod_conf.c", line 17: undefined symbol: foodevflag
"mod_conf.c", line 17: non-constant initializer: op "U&"
ERROR: 'mod_conf.c' will not compile properly
*** Error code 1 (bu21)
make: fatal error.
----------------------------------------------------------------------
The problem is that this variable, foodevflag, is referenced, but not
declared in this file. Since I've used the -K option, mod_conf.c is
left behind. By manually adding in a declaration of that flag (which
is, BTW, properly defined in one of my driver's source files), I can
continue the build using the -Q option. Everything then works fine.
I'm pretty sure I'm just missing a flag or a directive in a
configuration file, but I haven't had much luck finding it. Has
anyone else seen something like this?
Thanks for your help...
Frank
--
Frank Drake "It's a great day for hockey" - Bob Johnson
InterACTics, Inc. Tel: +1-617-674-0050
420 Bedford Street, Suite 265 FAX: +1-617-674-0125