Project

General

Profile

Actions

Bug #338

closed

Error compiling 1.6 on HEAD

Added by victor over 17 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Trying to compile DragonFly_RELEASE_1_6 on a machine running
HEAD gives this compilation error:

cc -O -pipe -mtune=pentiumpro -Wunknown-pragmas -Wsystem-headers -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /home/victor/wc/src/bin/dd/args.c
cc -O -pipe -mtune=pentiumpro -Wunknown-pragmas -Wsystem-headers -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /home/victor/wc/src/bin/dd/conv.c
cc -O -pipe -mtune=pentiumpro -Wunknown-pragmas -Wsystem-headers -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /home/victor/wc/src/bin/dd/conv_tab.c
cc -O -pipe -mtune=pentiumpro -Wunknown-pragmas -Wsystem-headers -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /home/victor/wc/src/bin/dd/dd.c
/home/victor/wc/src/bin/dd/dd.c: In function `getfdtype':
/home/victor/wc/src/bin/dd/dd.c:214: error: `D_TAPE' undeclared (first use in this function)
/home/victor/wc/src/bin/dd/dd.c:214: error: (Each undeclared identifier is reported only once
/home/victor/wc/src/bin/dd/dd.c:214: error: for each function it appears in.)
/home/victor/wc/src/bin/dd/dd.c:216: error: `D_DISK' undeclared (first use in this function)
/home/victor/wc/src/bin/dd/dd.c:216: error: `D_MEM' undeclared (first use in this function)
  • Error code 1
Stop in /home/victor/wc/src/bin/dd.
  • Error code 1
Stop in /home/victor/wc/src.
  • Error code 1
Stop in /home/victor/wc/src.
  • Error code 1

Stop in /home/victor/wc/src.

Actions #1

Updated by frank over 17 years ago

I've just seen your posting and I think I can offer an explanation: The
definitions of D_TAPE, D_DISK, and D_MEM have moved from <sys/conf.h> to
<sys/device.h> in HEAD, and the latter is not included in src/bin/dd.c of
DragonFly_RELEASE_1_6. That's why the bootstrap stage fails here.

Regards,
Frank Josellis

Actions #2

Updated by dillon over 17 years ago

:I've just seen your posting and I think I can offer an explanation: The
:definitions of D_TAPE, D_DISK, and D_MEM have moved from <sys/conf.h> to
:<sys/device.h> in HEAD, and the latter is not included in src/bin/dd.c of
:DragonFly_RELEASE_1_6. That's why the bootstrap stage fails here.
:
:Regards,
:Frank Josellis

Ok, I committed the change to the 1.6 release branch and updated
the slip tag, simply adding an additional #include. I have not tested
whether this fixes the compilation issue under HEAD, but at least it
doesn't break native buildworlds on 1.6 :-)
-Matt
Matthew Dillon
&lt;&gt;
Actions

Also available in: Atom PDF