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

Ironbee won't load in apache macports (macosx) #8

Closed
pablo-rincon opened this issue Jul 3, 2011 · 0 comments
Closed

Ironbee won't load in apache macports (macosx) #8

pablo-rincon opened this issue Jul 3, 2011 · 0 comments

Comments

@pablo-rincon
Copy link
Contributor

It looks that libhtp and ironbee should be compiled with the lib iconv
(adding -liconv to the LIBS var at the Makefile fixed the issue).
Also it's needed to specify the path of pcre (macports ports use to set the lib/include path
to /opt/local, instead of /usr or /usr/local as linux).

So after compiling, I configured apache and I got this errors at the startup

/opt/local/apache2/bin/apachectl restart
httpd: Syntax error on line 119 of /opt/local/apache2/conf/httpd.conf:
Cannot load /usr/local/lib/libhtp.dylib into server:
dlopen(/usr/local/lib/libhtp.dylib, 10): Symbol not found: _iconv\n Referenced from: /usr/local/lib/libhtp.dylib\n  Expected in: flat
namespace\n in /usr/local/lib/libhtp.dylib

I added -liconv to libhtp/htp/Makefile and then executing it again, the same but with ironbee

/opt/local/apache2/bin/apachectl restart
httpd: Syntax error on line 120 of /opt/local/apache2/conf/httpd.conf:
Cannot load /usr/local/ironbee/lib/mod_ironbee.so into server:
dlopen(/usr/local/ironbee/lib/mod_ironbee.so, 10): Symbol not found: _iconv\n  Referenced from: /usr/lib/libaprutil-1.0.dylib\n  Expected in: /opt/local/lib/libiconv.2.dylib\n in /usr/lib/libaprutil-1.0.dylib

I did the same at ironbee, adding -liconv to the Makefile,
restarted apache and it loaded correctly.

@b1v1r b1v1r closed this as completed Aug 8, 2011
b1v1r pushed a commit that referenced this issue Oct 20, 2014
…ig to master

* commit '4f42724fb1ba35c8fe0d837eb01800a47dc70a1f':
  config.lua, configuration_parser.lua: Renaming a variable and a function for consistency.
  util.lua: Adding ib_list_ipairs() function.
  tc_{config,testing,waggle}.rb: Removing incorrect header use in clipp tests.
  lua_apidoc.h: Adding configuration parser and DSL documentation, RNS-1273
  config.lua, configuratino_parser.lua: Finish Lua Programatic Configuration DSL, RNS-1273.
  ts_lua.rb, tc_{testing,waggle,config}.rb: Refactoring Lua tests as there are enough to warrent multiple files.
  lua/ironbee/config.lua, configuration_parser.lua: Implement Lua programatic configuration DLS (mostly), RNS-1273.
  util.lua, base_rule.lua: Move is_a() function to utility library.
  util.lua: Add ib_list_pairs() to allow iteration over an ib_list_t in Lua style.
  Initial refactoring of Lua's IronBee configuration code to support Lua programatic configuration.
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