Project

General

Profile

Actions

Bug #2390

closed

mingw linker error with rust

Added by Victor Julien about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

  CC       util-var-name.o
  CC       win32-misc.o
make[3]: *** No rule to make target '../rust/target/release/libsuricata.a', needed by 'suricata.exe'.  Stop.
make[3]: *** Waiting for unfinished jobs....
  CC       win32-service.o
make[3]: Leaving directory '/home/victor/dev/suricata/src'
make[2]: *** [Makefile:1148: all] Error 2
make[2]: Leaving directory '/home/victor/dev/suricata/src'
make[1]: *** [Makefile:494: all-recursive] Error 1
make[1]: Leaving directory '/home/victor/dev/suricata'
make: *** [Makefile:422: all] Error 2

victor@win10pro64 MINGW64 ~/dev/suricata
$ ls rust/target/release/
build  deps  examples  native  suricata.lib

victor@win10pro64 MINGW64 ~/dev/suricata
$ file rust/target/release/suricata.lib
rust/target/release/suricata.lib: current ar archive

Looks like we just need to tell the linker to use suricata.lib instead?

Actions #1

Updated by Victor Julien about 7 years ago

  • Status changed from New to Assigned
  • Assignee set to Victor Julien
  • Target version set to 70

Ok yes, all it seems to take it set the library name.

Next I need to add the RUST_LDADD to configure.ac and it builds.

Actions #2

Updated by Victor Julien almost 7 years ago

  • Status changed from Assigned to Closed
  • Target version changed from 70 to 4.1beta1
Actions

Also available in: Atom PDF