Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607128 - mail-filter/rspamd-1.4.3: config.h:261:22: fatal error: jemalloc.h: No such file or directory
Summary: mail-filter/rspamd-1.4.3: config.h:261:22: fatal error: jemalloc.h: No such f...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christian Roessner
URL: https://github.com/vstakhov/rspamd/is...
Whiteboard:
Keywords:
Depends on: 607326
Blocks:
  Show dependency tree
 
Reported: 2017-01-24 23:24 UTC by hexum
Modified: 2020-05-11 12:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.gz (build.log.gz,4.45 KB, application/gzip)
2017-01-24 23:24 UTC, hexum
Details
emerge.info.txt.gz (emerge.info.txt.gz,2.61 KB, application/gzip)
2017-01-24 23:24 UTC, hexum
Details
emerge --info (emergeinfo,4.99 KB, text/plain)
2017-01-25 11:36 UTC, Michael Palimaka (kensington)
Details
build.log (build.log,40.45 KB, text/plain)
2017-01-25 11:37 UTC, Michael Palimaka (kensington)
Details
#include <jemalloc/jemalloc.h> (rspamd-1.4.3-jemalloc.patch,235 bytes, patch)
2017-01-27 03:19 UTC, Jory A. Pratt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description hexum 2017-01-24 23:24:32 UTC
Created attachment 461318 [details]
build.log.gz

=dev-libs/jemalloc-4.4.0 is installed
Comment 1 hexum 2017-01-24 23:24:59 UTC
Created attachment 461320 [details]
emerge.info.txt.gz
Comment 2 Michael Palimaka (kensington) gentoo-dev 2017-01-25 11:36:40 UTC
Created attachment 461394 [details]
emerge --info
Comment 3 Michael Palimaka (kensington) gentoo-dev 2017-01-25 11:37:19 UTC
Created attachment 461396 [details]
build.log
Comment 4 hexum 2017-01-26 17:32:27 UTC
Error is related to /usr/lib/pkgconfig/jemalloc.pc file.
Changing "includedir" to "${prefix}/include/jemalloc" fix this error (at 3% of compilation), but other occurs (at 46%).
I need to file new bug, related to jemalloc
Comment 5 hexum 2017-01-26 17:46:25 UTC
Workaround for 607326:
sed -i 's:^includedir=${prefix}/include:includedir=${prefix}/include/jemalloc:' /usr/lib/pkgconfig/jemalloc.pc
Comment 6 hexum 2017-01-26 17:52:52 UTC
Latest error relates to ragel compilation.

[ 46%] [RAGEL][ragel_smtp_received] Compiling state machine with Ragel 7.0.0.9
cd /var/tmp/portage/mail-filter/rspamd-1.4.3/work/rspamd-1.4.3/src && /usr/bin/ragel -T1 -o/var/tmp/portage/mail-filter/rspamd-1.4.3/work/rspamd-1.4.3_build/src/smtp_received_parser.rl.c /var/tmp/portage/mail-filter/rspamd-1.4.3/work/rspamd-1.4.3/src/ragel/smtp_received_parser.rl
<internal>:4:3: fsm "WSP" previously defined
<internal>:5:3: fsm "CRLF" previously defined
<internal>:6:3: fsm "DQUOTE" previously defined
<internal>:9:3: fsm "atext" previously defined
<internal>:13:3: fsm "dtext" previously defined
<internal>:15:3: fsm "ctext" previously defined
<internal>:17:3: fsm "dcontent" previously defined
<internal>:18:3: fsm "Let_dig" previously defined
<internal>:19:3: fsm "Ldh_str" previously defined
<internal>:21:3: fsm "quoted_pairSMTP" previously defined
<internal>:22:3: fsm "qtextSMTP" previously defined
<internal>:23:3: fsm "Atom" previously defined
<internal>:24:3: fsm "Dot_string" previously defined
<internal>:25:3: fsm "dot_atom_text" previously defined
<internal>:27:3: fsm "FWS" previously defined
<internal>:7:3: fsm "Snum" previously defined
<internal>:8:3: fsm "IPv4_address_literal" previously defined
<internal>:9:3: fsm "IPv6_hex" previously defined
<internal>:10:3: fsm "IPv6_full" previously defined
<internal>:11:3: fsm "IPv6_comp" previously defined
<internal>:13:3: fsm "IPv6v4_full" previously defined
<internal>:14:3: fsm "IPv6v4_comp" previously defined
<internal>:17:3: fsm "IPv6_addr" previously defined
<internal>:18:3: fsm "IPv6_address_literal" previously defined
<internal>:4:3: fsm "WSP" previously defined
<internal>:5:3: fsm "CRLF" previously defined
<internal>:6:3: fsm "DQUOTE" previously defined
<internal>:9:3: fsm "atext" previously defined
<internal>:13:3: fsm "dtext" previously defined
<internal>:15:3: fsm "ctext" previously defined
<internal>:17:3: fsm "dcontent" previously defined
<internal>:18:3: fsm "Let_dig" previously defined
<internal>:19:3: fsm "Ldh_str" previously defined
<internal>:21:3: fsm "quoted_pairSMTP" previously defined
<internal>:22:3: fsm "qtextSMTP" previously defined
<internal>:23:3: fsm "Atom" previously defined
<internal>:24:3: fsm "Dot_string" previously defined
<internal>:25:3: fsm "dot_atom_text" previously defined
<internal>:27:3: fsm "FWS" previously defined
-:1:1: <input>:1:1: parse error%s:%ld:
make[2]: *** [src/CMakeFiles/rspamd-server.dir/build.make:76: src/smtp_received_parser.rl.c] Error 1
Comment 7 Jory A. Pratt gentoo-dev 2017-01-27 03:11:14 UTC
Pkg is using header incorrectly as upstream expects.

SYNOPSIS
       #include <jemalloc/jemalloc.h>

Please fix jemalloc usage to correspond with Synopsis
Comment 8 Jory A. Pratt gentoo-dev 2017-01-27 03:19:02 UTC
Created attachment 461550 [details, diff]
#include <jemalloc/jemalloc.h>

Feel free to send it to upstream, I am not opening an account on their bug tracker. This is how to properly include the header as per man 3 jemalloc
Comment 9 hexum 2017-01-27 13:53:53 UTC
I'm sure there is two different upstream bugs.
One bug is in jemalloc.pc file generation.
Other is in rspamd ragel file.
I will file upstream bugs.
Comment 10 Dirkjan Ochtman (RETIRED) gentoo-dev 2017-01-28 09:00:29 UTC
hexum: please link to the filed upstream bugs here, so we can track what's going on? Thanks!
Comment 11 Jory A. Pratt gentoo-dev 2017-01-28 13:23:10 UTC
Already fixed upstream, https://github.com/vstakhov/rspamd/commit/ab314b7660006b9f255e04e48518fd03d453a8c0
Comment 12 hexum 2017-01-28 14:16:14 UTC
I talked to jemalloc developers too. There is no bug.
Have not filed bug to rspamd upstream yet. I will post URL if I file a bug.
Comment 13 hexum 2017-01-28 14:39:42 UTC
I just have tried compile master with the same parameters.
Jemalloc.h error is gone.
Ragel compilation error is still here.
Should I file a new bug or we can continue here?
Comment 14 hexum 2017-02-04 21:42:25 UTC
Filed ragel compilation bug to upstream.
https://github.com/vstakhov/rspamd/issues/1396
Comment 15 Petr Vaněk gentoo-dev 2020-05-05 22:30:38 UTC
This issue is obsolete and it could be closed.