Bug #338
closedError compiling 1.6 on HEAD
0%
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/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
- Error code 1
- Error code 1
- Error code 1
Stop in /home/victor/wc/src.
Updated by frank over 18 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
Updated by dillon over 18 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
<dillon@backplane.com>