| Summary: | mail-filter/rspamd-1.4.3: config.h:261:22: fatal error: jemalloc.h: No such file or directory | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | hexum <hexumg> |
| Component: | Current packages | Assignee: | Christian Roessner <c> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | arkamar, djc |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | https://github.com/vstakhov/rspamd/issues/1377 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | 607326 | ||
| Bug Blocks: | |||
| Attachments: |
build.log.gz
emerge.info.txt.gz emerge --info build.log #include <jemalloc/jemalloc.h> |
||
Created attachment 461320 [details]
emerge.info.txt.gz
Created attachment 461394 [details]
emerge --info
Created attachment 461396 [details]
build.log
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
Workaround for 607326:
sed -i 's:^includedir=${prefix}/include:includedir=${prefix}/include/jemalloc:' /usr/lib/pkgconfig/jemalloc.pc
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 Pkg is using header incorrectly as upstream expects.
SYNOPSIS
#include <jemalloc/jemalloc.h>
Please fix jemalloc usage to correspond with Synopsis
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
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. hexum: please link to the filed upstream bugs here, so we can track what's going on? Thanks! Already fixed upstream, https://github.com/vstakhov/rspamd/commit/ab314b7660006b9f255e04e48518fd03d453a8c0 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. 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? Filed ragel compilation bug to upstream. https://github.com/vstakhov/rspamd/issues/1396 This issue is obsolete and it could be closed. |
Created attachment 461318 [details] build.log.gz =dev-libs/jemalloc-4.4.0 is installed