graphics/png does not build with lang/gcc

Gautam list at
Sat Feb 18 10:47:37 UTC 2012


I am running GENERIC on

FreeBSD  9.0-STABLE FreeBSD 9.0-STABLE #2: Mon Jan 30 04:18:20 IST 2012

with the tree csupped just before the build.

I setup lang/gcc as per

added following to /etc/make.conf

and the following to /etc/libmap.config   gcc46/    gcc46/    gcc46/     gcc46/  gcc46/

When I tried to rebuild some ports, I found a problem with linking

I found a similar problem mentioned in*
*but no conclusion to the same.

# idprio 31 make
===>  License check disabled, port has not defined LICENSE
===>  Found saved configuration for png-1.4.8
===>  Extracting for png-1.4.8
=> SHA256 Checksum OK for libpng-1.4.8.tar.xz.
=> SHA256 Checksum OK for libpng-1.4.8-apng.patch.gz.
gcc46 -fpic -DPIC -O2 -pipe -march=pentium4 -fno-strict-aliasing
-march=pentium4 -I. -std=gnu99 -fstack-protector  -c pngpread.c -o
gzip -cn libpng.3 > libpng.3.gz
gzip -cn libpngpf.3 > libpngpf.3.gz
gzip -cn png.5 > png.5.gz
gcc46 -O2 -pipe -march=pentium4 -fno-strict-aliasing -march=pentium4 -I.
-std=gnu99 -fstack-protector  -c pngtest.c
building static png library
building shared library
ranlib libpng.a
pngread.So: In function `png_create_read_struct_2':
pngread.c:(.text+0x4e7): undefined reference to `__stack_chk_fail_local'
pngrutil.So: In function `png_inflate':
pngrutil.c:(.text+0x166): undefined reference to `__stack_chk_fail_local'
pngrutil.So: In function `png_decompress_chunk':
pngrutil.c:(.text+0x6e6): undefined reference to `__stack_chk_fail_local'
pngrutil.So: In function `.L69':
pngrutil.c:(.text+0x90f): undefined reference to `__stack_chk_fail_local'
pngrutil.So: In function `png_handle_cHRM':
pngrutil.c:(.text+0x1431): undefined reference to `__stack_chk_fail_local'
pngrutil.So:pngrutil.c:(.text+0x19d9): more undefined references to
`__stack_chk_fail_local' follow
collect2: ld returned 1 exit status
*** Error code 1
gcc46 -O2 -pipe -march=pentium4 -fno-strict-aliasing -march=pentium4 -I.
-std=gnu99 -fstack-protector  -L. -static -o pngtest pngtest.o -lpng -lz -lm
1 error
*** Error code 1

Stop in /usr/ports/graphics/png.
*** Error code 1

Stop in /usr/ports/graphics/png.

Any pointers?


More information about the freebsd-ports mailing list