-
Notifications
You must be signed in to change notification settings - Fork 116
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
Use LIBICONV variable as detected by autoconf to link libiconv #76
Comments
- Update to 0.5.15 - Wrangle autoconf/make on linking libiconv with a workaround [1] - pkg-descr: Remove Author: [1] OISF/libhtp#76
Apologies for the delay, it took me some time to get a FreeBSD virtual machine up and running. I can't replicate your problem, using LibHTP 0.5.15 (my release) and Suricata 2.0.3. FreeBSD is "FreeBSD 10.0-RELEASE #0 r260789". I encounter the problem of htp.pc being in the wrong place (/usr/local/lib/pkgconfig/), but once I move it to /usr/local/libdata/pkgconfig/, I am able to configure Suricata and compile it. |
Thanks @ivanr, the devel/libhtp port correctly places the htp.pc file in /usr/local/libdata What's the contents of your htp.pc file? |
I created #79 for the htp.pc problem on FreeBSD, let's continue that discussion there. As far as I am aware the contents of htp.pc is not relevant, but you can see it here: https://github.com/ironbee/libhtp/blob/master/htp.pc.in As for this ticket, should I close it? |
@ivanr Correct, it's not relevant. As discussed with @inliniac, not seeing the symptoms on 10.x is likely due to the following change:
The root cause as described in this bug (Not using the autoconf detected variable) applies to any versions < 10 prior to that date, versions that don't include libiconv in base (by user choice, or at any point in the future of FreeBSD), and for users that want to use libiconv from ports, or more precisely, anywhere other than base. |
- Update to 0.5.15 - Wrangle autoconf/make on linking libiconv with a workaround [1] - pkg-descr: Remove Author: [1] OISF/libhtp#76 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@364955 35697150-7ecd-e111-bb59-0022644237b5
I see sample problem on 12.1-RELEASE-p7. I added environment variable by setenv PKG_CONFIG_PATH /usr/local/lib/pkgconfig and also i copied htp.pc on /usr/local/libdata checking for libhtp... yes ERROR! libhtp library not found I attached config log. how can i solve it? |
there is no /usr/local/include/libnet11 directory for command below configure:21874: cc -o conftest -g -O2 -DOS_FREEBSD -march=native -I/usr/local/include/htp/ -I/usr/local/include -I/usr/local/include/libnet11 -I/usr/local/include -I/usr/local/lib/htp/include -L/usr/local/lib -L/usr/local/lib/libnet11 -L/usr/local/lib/ conftest.c -lhtp -lpcap -lnet -ljansson -lpthread -lyaml -lpcre -lz -L/usr/local/lib -lhtp >&5 |
i changed htp.pc file extension. it is htp.pc file content |
@UlasSAYGINIM I am not sure. Are you expecting something or did you solve your problem ? |
@catenacyber i am expecting someone will help to solve the problem. there is another ticket #79 |
The port works (builds) though correct? I believe we've had a patch in to workaround this since it was added |
as i remember for freebsd 12 does not work. but now i am trying for freebsd 13. |
Freebsd has old version 5.0.6 for suricata. can we update both libhtp ,libnet, and other dependencies with suricata? |
Thanks for the ping. |
I just did a successful build on FreeBSD 13.0-RELEASE today with no issues at all. |
yes i did it too now. it seems i can install without problem but i didnt run and test functionality. |
some dependencies seems they need update to their latest versions. |
Closing as no problem seen on FreeBSD 13 |
I just noticed that the FreeBSD port I maintain for libhtp (0.5.12) was not correctly linking to libiconv, even though configure had been correctly detecting iconv support:
This was only noticed when attempting to upgrade the suricata FreeBSD port to 2.0.2 using --enable-non-bundled-htp:
suricata config.log shows:
I also noticed the use of @LIBICONV@ in test/Makefile.am to correctly link the target, but not in the generated htp/Makefile (post-configure)
As per GNU Gettext: Autoconf Macros (AM_ICONV), libhtp's generated Makefile variables are correctly populated:
The text was updated successfully, but these errors were encountered: