Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not build on Windows 7: getting link errors #4

Open
ptschip opened this issue Oct 23, 2015 · 2 comments
Open

does not build on Windows 7: getting link errors #4

ptschip opened this issue Oct 23, 2015 · 2 comments

Comments

@ptschip
Copy link

ptschip commented Oct 23, 2015

Generating Code...
LD [C:/WinDDK/7600.16385.1/bin/x86/x86/link.exe] mia/ip_fw2.obj mia/ip_fw_pfil
.obj mia/ip_fw_sockopt.obj mia/ip_fw_dynamic.obj mia/ip_fw_table.obj mia/ip_fw_l
og.obj mia/radix.obj mia/in_cksum.obj mia/ip_dummynet.obj mia/ip_dn_io.obj mia/i
p_dn_glue.obj mia/dn_heap.obj mia/dn_sched_fifo.obj mia/dn_sched_wf2q.obj mia/dn
_sched_rr.obj mia/dn_sched_qfq.obj mia/dn_sched_prio.obj mia/ipfw2_mod.obj mia/b
sd_compat.obj mia/md_win.obj mia/miniport.obj mia/protocol.obj mia/passthru.obj
mia/debug.obj
Microsoft (R) Incremental Linker Version 9.00.30729.207
Copyright (C) Microsoft Corporation. All rights reserved.

LINK : warning LNK4108: /ALIGN specified without /DRIVER; image may not run
LINK : fatal error LNK1181: cannot open input file 'C:/MinGW/msys/1.0/release.ob
j'

I really don't see where release.obj is getting built or not build. The file does not exist but I don't know why it would be looking for it under c:/mingw/msys/1.0/ ???

@sgeto
Copy link

sgeto commented May 14, 2018

replace / with - or // in the "linker options" section in kipfw/Makefile to prevent bash from confusing linker flags with directories/files.

@sgeto
Copy link

sgeto commented May 14, 2018

    #linker options
    LDFLAGS  = /MERGE:_PAGE=PAGE /MERGE:_TEXT=.text
    LDFLAGS += /SECTION:INIT,d /OPT:REF /OPT:ICF
    LDFLAGS += /IGNORE:4198,4010,4037,4039,4065,4070,4078,4087,4089,4221
    LDFLAGS += /INCREMENTAL:NO //RELEASE //NODEFAULTLIB //WX
    LDFLAGS += //DEBUG //debugtype:cv,fixup,pdata
    LDFLAGS += /version:6.1 /osversion:6.1 /functionpadmin:5
    LDFLAGS += //safeseh //pdbcompress
    LDFLAGS += /STACK:0x40000,0x1000 //driver /base:0x10000 /align:0x80
    LDFLAGS += /stub:$(DDK)\\lib\\wxp\\stub512.com
    LDFLAGS += /subsystem:native,5.01 /entry:GsDriverEntry@8
    LDFLAGS += /out:$(OBJDIR)/ipfw.sys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants