Author Topic: Driver compilation  (Read 4639 times)

darloth

  • Guest
Driver compilation
« on: September 12, 2006, 04:23:59 PM »

I have problems, with compiling 22.2b14. I am quite blank on most issues as it is almost a decade since I played with this.

What is the etc/ dir for, what to be in the bin/ dir, and what

files to config to just get the driver online. Small-stuff in driver

can wait until later :)



This is the output I get in shell when I hit make:

-bash-3.00$ make

mkdir -p obj

rm -f cc.h

echo "/* this file automatically generated by the Makefile */" > cc.h

echo '#define COMPILER "gcc"' >> cc.h

echo '#define OPTIMIZE "-g"' >> cc.h

echo '#define CFLAGS   "-D__USE_FIXED_PROTOTYPES__"' >> cc.h

echo '#define OBJDIR   "obj"' >> cc.h

gcc -D__USE_FIXED_PROTOTYPES__ -o obj/edit_source.o -c edit_source.c

edit_source.c: In function âyyerrorâ:

edit_source.c:125: warning: incompatible implicit declaration of built-in function âexitâ

edit_source.c: In function âyyerrorpâ:

edit_source.c:144: warning: incompatible implicit declaration of built-in function âexitâ

In file included from edit_source.c:533:

preprocess.c: In function âadd_defineâ:

preprocess.c:88: warning: incompatible implicit declaration of built-in function âmallocâ

preprocess.c: In function âhandle_condâ:

preprocess.c:419: warning: incompatible implicit declaration of built-in function âmallocâ

edit_source.c: In function âmaybe_open_input_fileâ:

edit_source.c:540: warning: incompatible implicit declaration of built-in function âmallocâ

edit_source.c: In function âopen_input_fileâ:

edit_source.c:549: warning: incompatible implicit declaration of built-in function âexitâ

edit_source.c: In function âopen_output_fileâ:

edit_source.c:556: warning: incompatible implicit declaration of built-in function âexitâ

edit_source.c: In function âcreate_option_definesâ:

edit_source.c:597: warning: incompatible implicit declaration of built-in function âmallocâ

edit_source.c:606: warning: incompatible implicit declaration of built-in function âexitâ

edit_source.c: In function âhandle_includeâ:

edit_source.c:655: warning: incompatible implicit declaration of built-in function âmallocâ

edit_source.c: In function âmake_efun_tablesâ:

edit_source.c:905: warning: incompatible implicit declaration of built-in function âexitâ

edit_source.c: In function âhandle_local_definesâ:

edit_source.c:1020: warning: incompatible implicit declaration of built-in function âexitâ

edit_source.c: In function âhandle_processâ:

edit_source.c:1091: warning: incompatible implicit declaration of built-in function âexitâ

edit_source.c: In function âhandle_mallocâ:

edit_source.c:1194: warning: incompatible implicit declaration of built-in function âexitâ

edit_source.c: In function âcheck_linux_libcâ:

edit_source.c:1350: warning: incompatible implicit declaration of built-in function âexitâ

edit_source.c: In function âhandle_configureâ:

edit_source.c:1512: warning: incompatible implicit declaration of built-in function âexitâ

edit_source.c:1577: warning: incompatible implicit declaration of built-in function âexitâ

edit_source.c: In function âmainâ:

edit_source.c:1672: warning: incompatible implicit declaration of built-in function âexitâ

edit_source.c:1697: warning: incompatible implicit declaration of built-in function âexitâ

gcc -D__USE_FIXED_PROTOTYPES__ -o obj/edit_hash.o -c hash.c

bison -d -y  make_func.y

rm -f make_func.tab.c

mv y.tab.c make_func.tab.c

gcc -D__USE_FIXED_PROTOTYPES__ -o obj/make_func.tab.o -c make_func.tab.c

gcc -D__USE_FIXED_PROTOTYPES__ obj/edit_source.o obj/edit_hash.o obj/make_func.tab.o -o edit_source

if test \( ! -r configure.h \) -o \( ! -r configuration \); then \

    rm -f configuration; \

    touch configuration; \

fi

if test "Machine `uname -a` Configure version 5" = "`cat configuration`"; then \

    echo "Skipping configuration ..."; \

else \

    ./edit_source -configure; \

    echo "Machine `uname -a` Configure version 5" > configuration; \

fi

Skipping configuration ...

./edit_source -options -malloc -build_func_spec 'gcc -E -no-cpp-precomp -D__USE_FIXED_PROTOTYPES__' \

              -process grammar.y.pre

Using 'local_options' file ...

Writing build options to option_defs.c ...

Using memory allocation package: sysmalloc.c

Building compiler files ...

gcc: unrecognized option '-no-cpp-precomp'

In file included from options_incl.h:1,

                 from std.h:14,

                 from spec.h:5,

                 from func_spec.c:1:

local_options:661:17: warning: extra tokens at end of #undef directive

gcc: unrecognized option '-no-cpp-precomp'

In file included from ./options_incl.h:1,

                 from ./std.h:14,

                 from ./spec.h:5,

                 from packages/uids_spec.c:1:

./local_options:661:17: warning: extra tokens at end of #undef directive

gcc: unrecognized option '-no-cpp-precomp'

In file included from ./options_incl.h:1,

                 from ./std.h:14,

                 from ./spec.h:5,

                 from packages/external_spec.c:1:

./local_options:661:17: warning: extra tokens at end of #undef directive

gcc: unrecognized option '-no-cpp-precomp'

gcc: unrecognized option '-no-cpp-precomp'

gcc: unrecognized option '-no-cpp-precomp'

In file included from ./options_incl.h:1,

                 from ./std.h:14,

                 from ./spec.h:5,

                 from packages/contrib_spec.c:1:

./local_options:661:17: warning: extra tokens at end of #undef directive

gcc: unrecognized option '-no-cpp-precomp'

In file included from ./options_incl.h:1,

                 from ./std.h:14,

                 from ./spec.h:5,

                 from packages/db_spec.c:1:

./local_options:661:17: warning: extra tokens at end of #undef directive

gcc: unrecognized option '-no-cpp-precomp'

In file included from ./options_incl.h:1,

                 from ./std.h:14,

                 from ./spec.h:5,

                 from packages/sockets_spec.c:1:

./local_options:661:17: warning: extra tokens at end of #undef directive

gcc: unrecognized option '-no-cpp-precomp'

In file included from ./options_incl.h:1,

                 from ./std.h:14,

                 from ./spec.h:5,

                 from packages/develop_spec.c:1:

./local_options:661:17: warning: extra tokens at end of #undef directive

gcc: unrecognized option '-no-cpp-precomp'

In file included from ./options_incl.h:1,

                 from ./std.h:14,

                 from ./spec.h:5,

                 from packages/event_spec.c:1:

./local_options:661:17: warning: extra tokens at end of #undef directive

gcc: unrecognized option '-no-cpp-precomp'

In file included from ./options_incl.h:1,

                 from ./std.h:14,

                 from ./spec.h:5,

                 from packages/math_spec.c:1:

./local_options:661:17: warning: extra tokens at end of #undef directive

Creating 'grammar.y' from 'grammar.y.pre' ...



./edit_source -process packages/Makefile.pre

Creating 'packages/Makefile' from 'packages/Makefile.pre' ...



./edit_source -process packages/GNUmakefile.pre

Creating 'packages/GNUmakefile' from 'packages/GNUmakefile.pre' ...



./edit_source -process mudlib/Makefile.pre

Creating 'mudlib/Makefile' from 'mudlib/Makefile.pre' ...



./edit_source -process mudlib/GNUmakefile.pre

Creating 'mudlib/GNUmakefile' from 'mudlib/GNUmakefile.pre' ...



./edit_source -build_efuns -build_applies

Building efun tables ...



touch mallocwrapper.c

touch malloc.c

touch files

make -C packages 'CC=gcc' 'CFLAGS=-D__USE_FIXED_PROTOTYPES__ -g' 'OBJDIR=../obj' 'RANLIB=ranlib' 'AR=ar' 'A=a' 'O=o'

make[1]: Entering directory `/var/www/vhosts/legendaryrealms.net/cgi-bin/srmud/driver/v22.2b14sr/packages'

gcc -I../obj -I.. -D__USE_FIXED_PROTOTYPES__ -g -o ../obj/uids.o -c uids.c

In file included from ../options_incl.h:1,

                 from ../std.h:14,

                 from ../lpc_incl.h:4,

                 from uids.c:19:

../local_options:661:17: warning: extra tokens at end of #undef directive

In file included from ../std.h:26,

                 from ../lpc_incl.h:4,

                 from uids.c:19:

../std_incl.h:110:25: error: mach/mach.h: No such file or directory

make[1]: *** [../obj/uids.o] Error 1

make[1]: Leaving directory `/var/www/vhosts/legendaryrealms.net/cgi-bin/srmud/driver/v22.2b14sr/packages'

make: *** [packages/packages.a] Error 2

-bash-3.00$


Offline cratylus

  • Your favorite and best
  • Administrator
  • ***
  • Posts: 1020
  • Cratylus@Dead Souls <ds> np
    • View Profile
    • About Cratylus
Driver compilation
« Reply #1 on: September 18, 2006, 04:33:59 PM »

I was hoping someone else would pipe up, because

all I have for you is guesswork and conjecture.



At the risk of offending your skills, let me ask,



did you run "make clean" and then ./build.MudOS ?



From the fatal error at the end there, it looks like the

driver compile process is expecting a mach system,

but can't find the appropriate headers.



Is that what you're running? An apple computer?



Which gcc version are you using?



Offline Tricky

  • BFF
  • ***
  • Posts: 189
  • I like what I code and I code what I like!
    • View Profile
Driver compilation
« Reply #2 on: September 18, 2006, 04:57:10 PM »

Umm... Crat, this was sorted out some time ago. I suggeseted ./build.MudOS and it compiled for him.



Tricky


Offline cratylus

  • Your favorite and best
  • Administrator
  • ***
  • Posts: 1020
  • Cratylus@Dead Souls <ds> np
    • View Profile
    • About Cratylus
Driver compilation
« Reply #3 on: September 18, 2006, 05:06:57 PM »

Sorry...I didn't see it on here so I didn't know.



Glad he's set!



Offline Atomic

  • BFF
  • ***
  • Posts: 115
  • To infinity and beyond!
    • View Profile
Re: Driver compilation
« Reply #4 on: January 18, 2007, 04:03:00 AM »
To go on with driver-issues:

Running DS on Linux Debian 3.1 clean install.
I recompiled the driver that comes with the DS-package and it gives me tons of
warnings/errors. I'll post that when I'm at home again.

Apart from the downloaded zip-file and the attribute-settings
(some things didn't want to execute because they missed the right execute-settings, ./configure f.i.)
the driver will start and the mud seems to run fine.

Any reasons for these warnings/errors compiling MudOS?
Always remember that the early bird gets the worm first, but the fi...*SNAP*...second mouse gets the cheese.

Offline Raudhrskal

  • BFF
  • ***
  • Posts: 214
  • The MUD community needs YOUR help!
    • View Profile
Re: Driver compilation
« Reply #5 on: January 18, 2007, 04:09:24 AM »
I'm using sarge too :)
These warnings are normal. MudOS is somewhat old piece of code, and the today's (end even yesterday's from stable debian) gcc will complain. But code is compiled, so just ignore them
(or do
% make 2>&1 >/dev/null
:) )
I think, therefore i may be wrong.
Please note that if you met a Raudhrskal in a place that's not related to muds, it wasn't me. *sigh*... back when I started there was zero hits on google for that name...