pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: trouble building packages on netbsd-current
Brett Lymn <blymn%internode.on.net@localhost> writes:
> I am having problems building packages on a recent NetBSD-current machine. I
> have done a cvs update on my pkgsrc tree but the build fails persist.
> For example, attempting to build lang/g95 results in:
>
> checking whether the C compiler (gcc -O2 -Wl,-zrelro -Wl,-R/usr/pkg/lib)
> works... no
> configure: error: installation or configuration problem: C compiler
> cannot create executables.
> *** Error code 1
>
> Looking at the config.log I see:
>
> configure:1954: gcc -o conftest -O2 -Wl,-zrelro -Wl,-R/usr/pkg/lib
> conftest.c 1>&5
> configure:1951:1: error: return type defaults to 'int' [-Wimplicit-int]
> configure: failed program was:
>
> #line 1949 "configure"
> #include "confdefs.h"
>
> main(){return(0);}
>
> I hacked the configure script to add an "int" in front of the main() and
> the configure worked.
That very much looks like the new compiler is rejecting programs that
probably are not erroneous under the standard, because someboyd thinks
turning warnings into errors is good. I wonder if the configure script
is passing -Werror, or ?
> I also have problems with irssi-icb with the compiler objecting to
> g_strncasecmp().
>
> All in all, it seems to me like this is the system compiler being a lot
> stricter in what it will allow and breaking the package building.
I suspect lots of packages need cleanup, upstream, to be warning free
with today's picky compilers. Start filing upstream bug reports....
Home |
Main Index |
Thread Index |
Old Index