You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2022/06/28 12:47:33 UTC

[Bug 8014] New: sa-compile fails on ubuntu 20.04

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8014

            Bug ID: 8014
           Summary: sa-compile fails on ubuntu 20.04
           Product: Spamassassin
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sa-compile
          Assignee: dev@spamassassin.apache.org
          Reporter: RickPoleshuck@gmail.com
  Target Milestone: Undefined

Here is the error message:

In file included from body_0.xs:2:
/usr/lib/x86_64-linux-gnu/perl/5.30/CORE/perl.h:697:10: fatal error:
sys/types.h: No such file or directory
  697 | #include <sys/types.h>
      |          ^~~~~~~~~~~~~

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8014] sa-compile fails on ubuntu 20.04

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8014

RickPoleshuck@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |RickPoleshuck@gmail.com
           Severity|normal                      |blocker

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8014] sa-compile fails on ubuntu 20.04

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8014

RickPoleshuck@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #8 from RickPoleshuck@gmail.com ---
This appears to be a problem with the iredamdin install and not a spamassassin
bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8014] sa-compile fails on ubuntu 20.04

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8014

--- Comment #3 from RickPoleshuck@gmail.com ---
I should have included the version in my original post:

Here is the output from apt list:

sa-compile/focal-updates,focal-security,now 3.4.4-1ubuntu1.1 all
[installed,automatic]

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8014] sa-compile fails on ubuntu 20.04

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8014

--- Comment #7 from RickPoleshuck@gmail.com ---
I tried a new 20.04 install and the sa-compile works there. It looks like a
conflict with the iredadmin installation. 
I notice that the c compiler does not include -I/usr/local/include on the fresh
install like it does on the install with iredadmin.

Thanks for your help.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8014] sa-compile fails on ubuntu 20.04

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8014

--- Comment #5 from RickPoleshuck@gmail.com ---
No joy. build-essential was already installed.

$ apt list -a --installed build*
Listing... Done
build-essential/focal-updates,now 12.8ubuntu1.1 amd64 [installed]
build-essential/focal 12.8ubuntu1 amd64

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8014] sa-compile fails on ubuntu 20.04

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8014

--- Comment #6 from Sidney Markowitz <si...@sidney.com> ---
On a VM with just minimal install of Ubuntu 20.04, build-essential, and
VirtualBox guest additions, I did sudo apt install spamassassin

As part of the installation script it says it runs sa-compile.

That succeeded.

I then ran sa-update --sudo and that succeeded.

Do you have files /usr/include/sys/types.h and if it is a symlink the file it
points to?

Do you have any environment variables that would override the usual C flags or
C compiler include paths?

This doesn't seem like a problem in a normal Ubuntu 20.04 installation.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8014] sa-compile fails on ubuntu 20.04

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8014

--- Comment #2 from Sidney Markowitz <si...@sidney.com> ---
Also, here is what I get on Ubuntu 20.04 with a command that shows that I have
sys/type.h and where it is. What do you get?

$ find /usr/include -name types.h -exec ls -al {} \;
-rw-r--r-- 1 root root 1476 Jun  2 11:07 /usr/include/linux/types.h
-rw-r--r-- 1 root root 4480 Jun  2 11:07 /usr/include/linux/sched/types.h
-rw-r--r-- 1 root root 2114 Jun  2 11:07 /usr/include/linux/iio/types.h
lrwxrwxrwx 1 root root 31 Apr  7 13:24 /usr/include/sys/types.h ->
../x86_64-linux-gnu/sys/types.h
-rw-r--r-- 1 root root 3233 Apr  7 13:24 /usr/include/rpc/types.h
-rw-r--r-- 1 root root 3716 Mar 10 06:57 /usr/include/c++/9/parallel/types.h
-rw-r--r-- 1 root root 8757 Apr  7 13:24
/usr/include/x86_64-linux-gnu/bits/types.h
-rw-r--r-- 1 root root 5713 Apr  7 13:24
/usr/include/x86_64-linux-gnu/sys/types.h
-rw-r--r-- 1 root root 31 Jun  2 11:07
/usr/include/x86_64-linux-gnu/asm/types.h
-rw-r--r-- 1 root root 233 Jun  2 11:07 /usr/include/asm-generic/types.h

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8014] sa-compile fails on ubuntu 20.04

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8014

--- Comment #4 from Sidney Markowitz <si...@sidney.com> ---
OK, it may be a packaging problem with the sa-compile 3.4.4 deb that it should
require packages for compiling.

Try

apt install build-essentials

That should install more than enough for this problem. If that works, I'll look
at what is the minimum that is needed along with sa-compile and document that
somewhere for downstream packagers to reference.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8014] sa-compile fails on ubuntu 20.04

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8014

Sidney Markowitz <si...@sidney.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sidney@sidney.com

--- Comment #1 from Sidney Markowitz <si...@sidney.com> ---
Are you getting this building from trunk? I've been building and testing for
the pre-release using Ubuntu 20.04 and did not get that error.

-- 
You are receiving this mail because:
You are the assignee for the bug.