
Hexen II and HexenWorld software renderer,
compilation for non-Intel:

Problem files:
	d_edge.c, d_polyse.c, d_scan.c, d_sprite.c,
	r_aclip.c, r_alias.c, r_edge.c
Problem functions:
	See below.

-----------------------------------------------

R_GenerateTSpans() doesn't exist for non-Intel:

r_edge.c: In function `R_BeginEdgeFrame':
r_edge.c:140: error: `R_GenerateTSpans' undeclared (first use in this function)
r_edge.c:140: error: (Each undeclared identifier is reported only once
r_edge.c:140: error: for each function it appears in.)
make: *** [r_edge.o] Error 1

-----------------------------------------------

The non-Intel version of R_GenerateSpans() uses the FoundTrans variable,
but that's just another story :  For Intel, it is declared in r_edgea.asm.
For non-Intel: d_edge.c has it commented out in its D_DrawSurfaces() func.
For compilation to reach to an end, I add a
#define R_GenerateTSpans R_GenerateSpans
in r_edge.c, and here is the final failune with rest of the missing things:


d_edge.c: In function `D_DrawSurfaces':
d_edge.c:668: warning: implicit declaration of function `D_DrawSpans16T'

   Note:
	D_DrawSpans16T	-> in  d_draw16t.asm

d_polyse.c: In function `D_RasterizeAliasPolySmooth':
d_polyse.c:728: warning: implicit declaration of function `D_PolysetCalcGradientsT5'
d_polyse.c:730: warning: implicit declaration of function `D_PolysetCalcGradientsT'
d_polyse.c:732: warning: implicit declaration of function `D_PolysetCalcGradientsT2'
d_polyse.c:734: warning: implicit declaration of function `D_PolysetCalcGradientsT3'
d_polyse.c:832: warning: implicit declaration of function `D_PolysetScanLeftEdgeT5'
d_polyse.c:834: warning: implicit declaration of function `D_PolysetScanLeftEdgeT'
d_polyse.c:836: warning: implicit declaration of function `D_PolysetScanLeftEdgeT2'
d_polyse.c:838: warning: implicit declaration of function `D_PolysetScanLeftEdgeT3'
d_polyse.c:954: warning: implicit declaration of function `D_PolysetDrawSpans8T5'
d_polyse.c:956: warning: implicit declaration of function `D_PolysetDrawSpans8T'
d_polyse.c:958: warning: implicit declaration of function `D_PolysetDrawSpans8T2'
d_polyse.c:960: warning: implicit declaration of function `D_PolysetDrawSpans8T3'

   Note:
	D_PolysetCalcGradientsT,
	D_PolysetScanLeftEdgeT,
	D_PolysetDrawSpans8T	-> in  d_polysa2.asm

	D_PolysetCalcGradientsT2,
	D_PolysetScanLeftEdgeT2,
	D_PolysetDrawSpans8T2	-> in  d_polysa3.asm

	D_PolysetCalcGradientsT3,
	D_PolysetScanLeftEdgeT3,
	D_PolysetDrawSpans8T3	-> in  d_polysa4.asm

	D_PolysetCalcGradientsT5,
	D_PolysetScanLeftEdgeT5,
	D_PolysetDrawSpans8T5	-> in  d_polysa5.asm


d_scan.c: In function `Turbulent8':
d_scan.c:269: warning: implicit declaration of function `D_DrawSingleZSpans'
d_scan.c:376: warning: implicit declaration of function `D_DrawTurbulent8TSpan'
d_scan.c:379: warning: implicit declaration of function `D_DrawTurbulent8TQuickSpan'

   Note:
	D_DrawSingleZSpans	-> in  d_draw.asm

	D_DrawTurbulent8TSpan,
	D_DrawTurbulent8TQuickSpan -> in  d_scana.asm

d_sprite.c: In function `D_DrawSprite':
d_sprite.c:584: warning: implicit declaration of function `D_SpriteDrawSpansT'
d_sprite.c:586: warning: implicit declaration of function `D_SpriteDrawSpansT2'

   Note:
	D_SpriteDrawSpansT	-> in  d_spr8t.asm
	D_SpriteDrawSpansT2	-> in  d_spr8t2.asm

r_aclip.c: In function `R_AliasClipTriangle':
r_aclip.c:319: warning: implicit declaration of function `D_PolysetDrawT5'
r_aclip.c:321: warning: implicit declaration of function `D_PolysetDrawT'
r_aclip.c:323: warning: implicit declaration of function `D_PolysetDrawT2'
r_aclip.c:325: warning: implicit declaration of function `D_PolysetDrawT3'

   Note:
	D_PolysetDrawT	-> in  d_polysa2.asm
	D_PolysetDrawT2	-> in  d_polysa3.asm
	D_PolysetDrawT3	-> in  d_polysa4.asm
	D_PolysetDrawT5	-> in  d_polysa5.asm

r_alias.c: In function `R_AliasPreparePoints':
r_alias.c:344: warning: implicit declaration of function `D_PolysetDrawT5'
r_alias.c:346: warning: implicit declaration of function `D_PolysetDrawT'
r_alias.c:348: warning: implicit declaration of function `D_PolysetDrawT2'
r_alias.c:350: warning: implicit declaration of function `D_PolysetDrawT3'

   Note: (see above)

r_alias.c: In function `R_AliasPrepareUnclippedPoints':
r_alias.c:716: warning: implicit declaration of function `D_PolysetDrawFinalVertsT5'
r_alias.c:721: warning: implicit declaration of function `D_PolysetDrawFinalVertsT'
r_alias.c:726: warning: implicit declaration of function `D_PolysetDrawFinalVertsT2'
r_alias.c:731: warning: implicit declaration of function `D_PolysetDrawFinalVertsT3'
r_alias.c:736: warning: implicit declaration of function `D_PolysetDrawFinalVerts'

   Note:
	D_PolysetDrawFinalVerts		-> in  d_polyse.c, d_polysa.asm
	Intel version of D_PolysetDrawFinalVerts is:
	    void D_PolysetDrawFinalVerts (finalvert_t *p1, finalvert_t *p2, finalvert_t *p3)
	But (possibly old) non-Intel version in d_polyse.c is;
	    void D_PolysetDrawFinalVerts (finalvert_t *fvert, int num_verts)

	D_PolysetDrawFinalVertsT	-> in  d_polysa2.asm
	D_PolysetDrawFinalVertsT2	-> in  d_polysa3.asm
	D_PolysetDrawFinalVertsT3	-> in  d_polysa4.asm
	D_PolysetDrawFinalVertsT5	-> in  d_polysa5.asm


d_edge.o(.text+0x9a8): In function `D_DrawSurfaces':
: undefined reference to `D_DrawSpans16T'
d_polyse.o(.text+0xd32): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetCalcGradientsT3'
d_polyse.o(.text+0xf9d): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetScanLeftEdgeT3'
d_polyse.o(.text+0x104a): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetDrawSpans8T3'
d_polyse.o(.text+0x110d): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetDrawSpans8T3'
d_polyse.o(.text+0x1129): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetDrawSpans8T2'
d_polyse.o(.text+0x1134): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetDrawSpans8T'
d_polyse.o(.text+0x113f): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetDrawSpans8T5'
d_polyse.o(.text+0x1159): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetDrawSpans8T2'
d_polyse.o(.text+0x1167): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetDrawSpans8T'
d_polyse.o(.text+0x1175): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetDrawSpans8T5'
d_polyse.o(.text+0x13cc): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetScanLeftEdgeT3'
d_polyse.o(.text+0x13f0): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetScanLeftEdgeT2'
d_polyse.o(.text+0x13ff): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetScanLeftEdgeT'
d_polyse.o(.text+0x140e): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetScanLeftEdgeT5'
d_polyse.o(.text+0x1478): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetScanLeftEdgeT2'
d_polyse.o(.text+0x148b): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetScanLeftEdgeT'
d_polyse.o(.text+0x149d): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetScanLeftEdgeT5'
d_polyse.o(.text+0x150c): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetCalcGradientsT2'
d_polyse.o(.text+0x1520): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetCalcGradientsT'
d_polyse.o(.text+0x1534): In function `D_RasterizeAliasPolySmooth':
: undefined reference to `D_PolysetCalcGradientsT5'
d_scan.o(.text+0x9d2): In function `Turbulent8':
: undefined reference to `D_DrawTurbulent8TSpan'
d_scan.o(.text+0xa49): In function `Turbulent8':
: undefined reference to `D_DrawTurbulent8TQuickSpan'
d_scan.o(.text+0xbc0): In function `Turbulent8':
: undefined reference to `D_DrawSingleZSpans'
d_sprite.o(.text+0x10ba): In function `D_DrawSprite':
: undefined reference to `D_SpriteDrawSpansT2'
d_sprite.o(.text+0x10e2): In function `D_DrawSprite':
: undefined reference to `D_SpriteDrawSpansT'
r_aclip.o(.text+0xa34): In function `R_AliasClipTriangle':
: undefined reference to `D_PolysetDrawT3'
r_aclip.o(.text+0xa4f): In function `R_AliasClipTriangle':
: undefined reference to `D_PolysetDrawT2'
r_aclip.o(.text+0xa57): In function `R_AliasClipTriangle':
: undefined reference to `D_PolysetDrawT'
r_aclip.o(.text+0xa5f): In function `R_AliasClipTriangle':
: undefined reference to `D_PolysetDrawT5'
r_alias.o(.text+0x6ea): In function `R_AliasPreparePoints':
: undefined reference to `D_PolysetDrawT3'
r_alias.o(.text+0x72f): In function `R_AliasPreparePoints':
: undefined reference to `D_PolysetDrawT2'
r_alias.o(.text+0x740): In function `R_AliasPreparePoints':
: undefined reference to `D_PolysetDrawT'
r_alias.o(.text+0x751): In function `R_AliasPreparePoints':
: undefined reference to `D_PolysetDrawT5'
r_alias.o(.text+0x140e): In function `R_AliasPrepareUnclippedPoints':
: undefined reference to `D_PolysetDrawFinalVertsT3'
r_alias.o(.text+0x1413): In function `R_AliasPrepareUnclippedPoints':
: undefined reference to `D_PolysetDrawT3'
r_alias.o(.text+0x145d): In function `R_AliasPrepareUnclippedPoints':
: undefined reference to `D_PolysetDrawFinalVertsT2'
r_alias.o(.text+0x1462): In function `R_AliasPrepareUnclippedPoints':
: undefined reference to `D_PolysetDrawT2'
r_alias.o(.text+0x146d): In function `R_AliasPrepareUnclippedPoints':
: undefined reference to `D_PolysetDrawFinalVertsT'
r_alias.o(.text+0x1472): In function `R_AliasPrepareUnclippedPoints':
: undefined reference to `D_PolysetDrawT'
r_alias.o(.text+0x147d): In function `R_AliasPrepareUnclippedPoints':
: undefined reference to `D_PolysetDrawFinalVertsT5'
r_alias.o(.text+0x1482): In function `R_AliasPrepareUnclippedPoints':
: undefined reference to `D_PolysetDrawT5'
r_alias.o(.text+0x14b5): In function `R_AliasPrepareUnclippedPoints':
: undefined reference to `D_PolysetDrawT3'
r_alias.o(.text+0x14c9): In function `R_AliasPrepareUnclippedPoints':
: undefined reference to `D_PolysetDrawT2'
r_alias.o(.text+0x14d3): In function `R_AliasPrepareUnclippedPoints':
: undefined reference to `D_PolysetDrawT'
r_alias.o(.text+0x14dd): In function `R_AliasPrepareUnclippedPoints':
: undefined reference to `D_PolysetDrawT5'
r_edge.o(.text+0x52a): In function `R_LeadingEdge':
: undefined reference to `FoundTrans'
r_edge.o(.text+0x917): In function `R_GenerateSpans':
: undefined reference to `FoundTrans'
r_edge.o(.text+0x96e): In function `R_GenerateSpans':
: undefined reference to `FoundTrans'
r_edge.o(.text+0xca4): In function `R_ScanEdges':
: undefined reference to `FoundTrans'
r_edge.o(.text+0xd51): In function `R_ScanEdges':
: undefined reference to `FoundTrans'
collect2: ld returned 1 exit status
make: *** [h2] Error 1

