Package Details: netmask 2.4-3

Git Clone URL: https://aur.archlinux.org/netmask.git (read-only, click to copy)
Package Base: netmask
Description: The swiss army knife of addressing.
Upstream URL: http://trap.mtview.ca.us/~talby/
Keywords: adressing cidr ip network
Licenses: GPL2
Submitter: Leo_Verto
Maintainer: Leo_Verto
Last Packager: Leo_Verto
Votes: 1
Popularity: 0.000000
First Submitted: 2019-06-25 10:37 (UTC)
Last Updated: 2019-06-25 13:39 (UTC)

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

Sylpheed commented on 2025-03-04 11:37 (UTC) (edited on 2025-03-04 11:38 (UTC) by Sylpheed)

I was unable to build the package due to this warning:

configure: error: installation or configuration problem: C compiler cannot create executables.

which was due to this:

configure:908:1: error: return type defaults to 'int' [-Wimplicit-int]
  908 | main(){return(0);}
      | ^~~~

I could build it with this workaround:

diff --git a/PKGBUILD b/PKGBUILD
index 33343cc..46e97e7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@ sha256sums=('316b1169614303a692074d5a7e59c3e4e208bbec1cb961c47b13018b9008d34e')

 build() {
   cd "$pkgname-$pkgver"
-
+  sed -i "s/main(){return(0);}/int main(){return(0);}/g" configure
   ./configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man
   make
 }

Not sure if there is a cleaner way to fix this (upgrade configure ?)

Kr1ss commented on 2019-06-25 14:01 (UTC)

Nice. Thx for the quick response !

Leo_Verto commented on 2019-06-25 13:41 (UTC)

Thanks for pointing that out, I've pushed a fixed version! :D

Kr1ss commented on 2019-06-25 11:47 (UTC)

Hey, thank you for providing this package.

There are two package() functions in the PKGBUILD, one of which is probably meant to be check() actually. ;)

Cheers !