Package Details: c-client 2007f-21

Git Clone URL: https://aur.archlinux.org/c-client.git (read-only, click to copy)
Package Base: c-client
Description: Imap client library
Upstream URL: https://github.com/uw-imap/imap
Licenses: Apache
Submitter: el_aur
Maintainer: el_aur
Last Packager: el_aur
Votes: 6
Popularity: 0.99
First Submitted: 2023-01-16 11:05 (UTC)
Last Updated: 2024-09-25 08:35 (UTC)

Latest Comments

1 2 Next › Last »

el_aur commented on 2024-09-25 08:35 (UTC)

Thanks! Updated PKGBUILD

Popolon commented on 2024-09-19 21:15 (UTC)

@el_aur, Please could you patch the PKGBUILD as said below (just one line to change).

vstuart commented on 2024-07-30 21:35 (UTC) (edited on 2024-07-30 21:41 (UTC) by vstuart)

Step by step guide (here GCC v. 14)

  cd /home/victoria/.cache/yay/c-client    ## << your path will differ

  edit

    /home/victoria/.cache/yay/c-client/PKGBUILD

  per @arch-chicken's 2024-07-05 comment, below

    https://aur.archlinux.org/packages/c-client#comment-981010

  i.e. replace

    CFLAGS+=" -ffat-lto-objects"

  with

    CFLAGS+=" -ffat-lto-objects -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types"


  makepkg -sri    ## operates over file PKGBUILD

    ==> Making package: c-client 2007f-20 (Tue 30 Jul 2024 01:21:19 PM PDT)
    ...

  yay -Ss c-client | grep -i installed

    aur/c-client 2007f-20 (+4 0.28) (Installed)


  yay -Syu    ## note: *long* install (many 10s of minutes); ignore errors/warnings

    upgrading Arch Linux { Pacman | AUR } packages via yay ...
    ...
    :: 4 packages to upgrade/install.
    4  aur/php81          8.1.28-1 -> 8.1.29-3
    3  aur/php81-mysql    8.1.28-1 -> 8.1.29-3
    2  aur/php81-openssl  8.1.28-1 -> 8.1.29-3
    1  aur/php81-pdo      8.1.28-1 -> 8.1.29-3
    ...

  yay -Syu
    ...
    there is nothing to do

  ## Q.E.D.

arch-chicken commented on 2024-07-05 12:32 (UTC) (edited on 2024-07-05 12:36 (UTC) by arch-chicken)

with the following patch, I was eventually able to compile c-client even with gcc-14.

--- a/PKGBUILD  2024-07-05 14:34:49.148864345 +0200
+++ b/PKGBUILD  2024-07-05 14:35:19.175971870 +0200
@@ -26,7 +26,7 @@

 build() {
   cd "$srcdir/$_pkgbase-src"
-  CFLAGS+=" -ffat-lto-objects"
+  CFLAGS+=" -ffat-lto-objects -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types"
   # NOTE: if you wish to enforce SSL, use SSLTYPE=unix.nopwd

   yes "y" | make -j1 lnp EXTRAAUTHENTICATORS=gss PASSWDTYPE=pam SPECIALAUTHENTICATORS=ssl SSLTYPE=unix EXTRACFLAGS="${CFLAGS} -fPIC -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lpam" EXTRALDFLAGS="${LDFLAGS}"

arakmar commented on 2024-05-20 10:07 (UTC)

You are right, theses errors are triggered because of GCC 13 which is now more strict. Some warnings are now considered as errors.

Instead of using GCC 12 (not a long term solution), you can just mark those errors as warning again with this change. You have to replace the CFLAGS line with :

CFLAGS+=" -ffat-lto-objects -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types"

raicem commented on 2024-05-19 21:13 (UTC)

Can't install this package as I get the error below, I wonder if it's related to the GCC12 comment. My goal is to be able to install php81 or php83-iconv.

env_unix.c: In function ‘lock_work’:
osdep.h:60:15: error: implicit declaration of function ‘safe_flock’ [-Wimplicit-function-declaration]
   60 | #define flock safe_flock

arakmar commented on 2024-05-12 15:49 (UTC)

It's not buildable anymore with GCC 13

It needs to be forced with GCC 12 :

diff --git a/PKGBUILD b/PKGBUILD
index 635a4ad..7684a12 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@ pkgrel=20
 arch=('x86_64')
 license=('APACHE')
 url="https://github.com/uw-imap/imap"
-makedepends=('pam' 'git')
+makedepends=('pam' 'git' 'gcc12' 'gcc12-libs')
 source=("imap-src::git+https://github.com/uw-imap/imap.git#tag=patches-FD29-RPM"
         'c-client-2006k_GENTOO_amd64-so-fix.patch')
 options=('staticlibs')
@@ -29,7 +29,7 @@ build() {
   CFLAGS+=" -ffat-lto-objects"
   # NOTE: if you wish to enforce SSL, use SSLTYPE=unix.nopwd

-  yes "y" | make -j1 lnp EXTRAAUTHENTICATORS=gss PASSWDTYPE=pam SPECIALAUTHENTICATORS=ssl SSLTYPE=unix EXTRACFLAGS="${CFLAGS} -fPIC -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lpam" EXTRALDFLAGS="${LDFLAGS}"
+  yes "y" | make -j1 lnp CC=/usr/bin/gcc-12 EXTRAAUTHENTICATORS=gss PASSWDTYPE=pam SPECIALAUTHENTICATORS=ssl SSLTYPE=unix EXTRACFLAGS="${CFLAGS} -fPIC -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lpam" EXTRALDFLAGS="${LDFLAGS}"

 }

el_aur commented on 2023-03-02 08:44 (UTC)

@PolarianDev what's an issue with it in ArchWiki?

PolarianDev commented on 2023-03-01 21:14 (UTC)

el_aur you need to build imap as well otherwise this is a disfunctional PKGBUILD and should be converted into a single pkgbuild and not a split package.

Why have you intentionally stopped building the imap section? This is causing issues over on the ArchWiki