Opened 9 years ago

Last modified 3 years ago

#32034 new defect

snort: libsf_engine.dylib: No such file or directory

Reported by: ryandesign (Ryan Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: fyodor.vassiley@…, jf@…, calsaiwing@…
Port: snort

Description

Actually trying to use snort produces the error message:

/opt/local/lib/snort_dynamicengine/libsf_engine.dylib: No such file or directory

as reported by Fyodor Vassiley with a reproduction recipe on the mailing list. snort installs the file libsf_engine.so there, but then later looks for libsf_engine.dylib, which isn't there. So it would be best if the libraries were installed with the correct .dylib extension in the first place.

Jean-Francois Gobin provided a patch on the mailing list, but it must be applied to the Makefile after the configure phase has run. I don't know if there's a way the patch could be done at the normal time, during the patch phase. Perhaps a patch to the configure script.

Attachments (1)

macos-dylib.patch (1.7 KB) - added by jeanfgobin@… 9 years ago.
Patch to run during patch phase

Download all attachments as: .zip

Change History (7)

comment:1 Changed 9 years ago by jmroot (Joshua Root)

The OS doesn't actually care about the filename of libraries at all. It's just a convention to use .dylib for shared libraries, and .so is often used instead for dynamically loaded plugin-type files. You just have to link or call dlopen using the filename that is in fact there at runtime.

Changed 9 years ago by jeanfgobin@…

Attachment: macos-dylib.patch added

Patch to run during patch phase

comment:2 in reply to:  1 Changed 9 years ago by jeanfgobin@…

The attached file is a patch to run during patch phase. It modifies snort-2.9.0.5/src/dynamic-plugins/sf_engine/Makefile.in to add the relevant statements.

comment:3 Changed 9 years ago by calsaiwing@…

Cc: calsaiwing@… added

Cc Me!

comment:4 Changed 7 years ago by mf2k (Frank Schima)

Keywords: haspatch removed

This patch does not work against the current version of the Portfile.

comment:5 Changed 7 years ago by mf2k (Frank Schima)

Owner: changed from markd@… to macports-tickets@…

markd has retired. See #44782.

comment:6 Changed 3 years ago by jmroot (Joshua Root)

Is this still a problem with the current version?

Note: See TracTickets for help on using tickets.