Bug 155334 - [patch] Allow print/cups-client to build with lang/gcc45
Summary: [patch] Allow print/cups-client to build with lang/gcc45
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-07 06:00 UTC by Ron MacNeil
Modified: 2011-03-07 20:53 UTC (History)
0 users

See Also:


Attachments
file.diff (320 bytes, patch)
2011-03-07 06:00 UTC, Ron MacNeil
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ron MacNeil 2011-03-07 06:00:18 UTC

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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-03-07 06:00:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-03-07 20:49:41 UTC
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"
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2011-03-07 20:53:12 UTC
State Changed
From-To: open->closed

committed, thanks.