Yes, that does appear to be the case. I have a patched PKGBUILD that unsets CPPFLAGS in the build() function and it complies successfully. If this qualifies as a solution then I will upload a new package revision with this change. However, I am not sure if this is the best way to fix it. I'll ask for advice on the forums to see where to go from here.
Search Criteria
Package Details: dcc 2.3.167-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/dcc.git (read-only, click to copy) |
---|---|
Package Base: | dcc |
Description: | Distributed Checksum Clearinghouse spam tool |
Upstream URL: | http://www.rhyolite.com/anti-spam/dcc |
Licenses: | custom |
Submitter: | None |
Maintainer: | None |
Last Packager: | suthernfriend |
Votes: | 10 |
Popularity: | 0.000001 |
First Submitted: | 2006-07-15 19:03 (UTC) |
Last Updated: | 2019-07-03 23:21 (UTC) |
Dependencies (1)
- sh (dashbinshAUR, bash-devel-static-gitAUR, zshbinshAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash-gitAUR, bash)
Required by (0)
Sources (1)
Latest Comments
« First ‹ Previous 1 2
starfry commented on 2014-06-13 15:55 (UTC)
Svenw commented on 2014-06-13 15:07 (UTC)
Seems to have to do with Fortify_source. In /etc/makepkg.conf comment out the following:
CPPFLAGS="-D_FORTIFY_SOURCE=2"
and try to makepkg again, it should work.
starfry commented on 2014-06-12 09:07 (UTC)
PLEASE NOTE: Although the PKGBUILD has been updated to the latest version (1.3.154), it does not build on a system with the current GCC toolchain (4.8.2.8). It does, however, build on a system with GCC 4.6.3. I have not tried other versions of GCC.
I will raise this on the DCC mailing list and provide any updates here.
Magotchi commented on 2014-01-07 23:23 (UTC)
Neither this package, nor editing the PKGBUILD to use the current version (1.3.154) will compile correctly.
It fails with:
--------
In file included from ../include/dcc_defs.h:52:0,
from dccif.c:42:
../include/dcc_socket.h:79:16: error: conflicting types for 'sa_family_t'
typedef u_char sa_family_t;
^
In file included from /usr/include/bits/socket.h:146:0,
from /usr/include/sys/socket.h:38,
from /usr/include/netinet/in.h:23,
from /usr/include/netdb.h:27,
from ../include/dcc_types.h:67,
from ../include/dcc_defs.h:50,
from dccif.c:42:
/usr/include/bits/sockaddr.h:28:28: note: previous declaration of 'sa_family_t' was here
typedef unsigned short int sa_family_t;
^
-------------
If I fixed that bit of code to match the "unsigned short int", it just fails to compile with another error.
starfry commented on 2011-08-21 20:15 (UTC)
This is out of date, the latest version is 1.3.140. I have an updated PKGBUILD for it here: http://pastebin.com/8q7dGVXK
awagner commented on 2011-01-27 09:16 (UTC)
Yup. That helped. Thanks a lot.
ndowens commented on 2011-01-27 08:58 (UTC)
@awagner: Updated, try it and let me know if it helped.
awagner commented on 2011-01-27 08:33 (UTC)
Somehow it puts the (temporary) build dir in many places of the config files, scripts and even compiled files. Can you do something about the compile/install flags? (I'm building using yaourt.)
Pinned Comments
suthernfriend commented on 2019-04-24 18:50 (UTC) (edited on 2019-04-24 18:51 (UTC) by suthernfriend)
In case you're updating from 1.3.162 or smaller: The data directory has moved from /opt/dcc to /var/lib/dcc
if you disagree with this change set the '_dstdir' variable in the PKGBUILD to "/opt/${pkgname}"