Fix: Based on information from similar bugs such as... http://www.freebsd.org/cgi/query-pr.cgi?pr=141238 http://www.freebsd.org/cgi/query-pr.cgi?pr=140791 ..the following patch applied to print/cups-base permits print/cups-client to build successfully using lang/gcc45: How-To-Repeat: 1. Install lang/gcc45 2. Configure port builds to use gcc45 as per http://www.freebsd.org/doc/en_US.ISO8859-1/articles/custom-gcc/article.html 3. Attempt to build print/cups-client and observe breakage due to missing GCC stack smashing protection symbols: [...] Linking libcups.so.2... gcc45 -L../cups -Wl,-R/usr/local/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -L/usr/local/lib -Wl,-soname,`basename libcups.so.2` -shared -Wall -Wno-format-y2k -fPIC -Os -g -fstack-protector -o libcups.so.2 adminutil.o array.o attr.o auth.o backchannel.o backend.o conflicts.o custom.o debug.o dest.o dir.o emit.o encode.o file.o getdevices.o getifaddrs.o getputfile.o globals.o http.o http-addr.o http-addrlist.o http-support.o ipp.o ipp-support.o langprintf.o language.o localize.o mark.o md5.o md5passwd.o notify.o options.o page.o ppd.o pwg-file.o pwg-media.o pwg-ppd.o request.o sidechannel.o snmp.o snprintf.o string.o tempfile.o transcode.o usersys.o util.o \ -pthread -lm -lcrypt -lz adminutil.o: In function `get_cupsd_conf': /usr/ports/print/cups-client/work/cups-1.4.6/cups/adminutil.c:2328: undefined reference to `__stack_chk_fail_local' adminutil.o: In function `cupsAdminCreateWindowsPPD': /usr/ports/print/cups-client/work/cups-1.4.6/cups/adminutil.c:393: undefined reference to `__stack_chk_fail_local' adminutil.o: In function `cupsAdminExportSamba': /usr/ports/print/cups-client/work/cups-1.4.6/cups/adminutil.c:840: undefined reference to `__stack_chk_fail_local' adminutil.o: In function `cupsAdminGetServerSettings': /usr/ports/print/cups-client/work/cups-1.4.6/cups/adminutil.c:1175: undefined reference to `__stack_chk_fail_local' adminutil.o: In function `cupsAdminSetServerSettings': /usr/ports/print/cups-client/work/cups-1.4.6/cups/adminutil.c:2146: undefined reference to `__stack_chk_fail_local' attr.o:/usr/ports/print/cups-client/work/cups-1.4.6/cups/attr.c:88: more undefined references to `__stack_chk_fail_local' follow collect2: ld returned 1 exit status gmake[1]: *** [libcups.so.2] Error 1 gmake[1]: Leaving directory `/usr/ports/print/cups-client/work/cups-1.4.6/cups' gmake: *** [all] Error 1 *** Error code 1 Stop in /usr/ports/print/cups-client. *** Error code 1
Responsible Changed From-To: freebsd-ports-bugs->dinoex Over to maintainer (via the GNATS Auto Assign Tool)
dinoex 2011-03-07 20:49:32 UTC FreeBSD ports repository Modified files: print/cups-base Makefile Log: - fix build with lang/gcc45 PR: 155334 Submitted by: Ron MacNeil Revision Changes Path 1.155 +3 -0 ports/print/cups-base/Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed committed, thanks.