Bug 115593 - print/ghostscript-gpl build fails using WITH_SVGALIB=1 + default drivers
Summary: print/ghostscript-gpl build fails using WITH_SVGALIB=1 + default drivers
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: Rong-En Fan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-17 02:40 UTC by Barbara
Modified: 2007-08-17 17:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Barbara 2007-08-17 02:40:01 UTC
I was trying to upgrade ghostscript-gpl-nox11 to the last version (8.60) but the build fails with this error:
--------------------------------------------------------------------------------
./obj/gdevvglb.o(.text+0x9d0): In function `gs_shared_init':
: multiple definition of `gs_shared_init'
./obj/gdevl256.o(.text+0x750): first defined here
gmake: *** [bin/gs] Error 1
*** Error code 2

Stop in /usr/ports/print/ghostscript-gpl-nox11.
--------------------------------------------------------------------------------

So I've tried with ghostscript-gpl, obtaining this error:
--------------------------------------------------------------------------------./obj/gdevl256.o(.text+0x750): In function `gs_shared_init':
: multiple definition of `gs_shared_init'
./obj/gdevxalt.o(.text+0x17a0): first defined here
/usr/bin/ld: Warning: size of symbol `gs_shared_init' changed from 150 in ./obj/gdevxalt.o to 38 in ./obj/gdevl256.o
./obj/gdevvglb.o(.text+0x9d0): In function `gs_shared_init':
: multiple definition of `gs_shared_init'
./obj/gdevxalt.o(.text+0x17a0): first defined here
gmake: *** [bin/gs] Error 1
*** Error code 2

Stop in /usr/ports/print/ghostscript-gpl.
--------------------------------------------------------------------------------

So I figured out that the problem could be the use of WITH_SVGALIB=1 (I have it in pkgtools.conf and it worked for the previous versions).
In fact I had it built avoiding the usage of that flag.

Finally, looking at files/patch-src__devs.mak, I figured out that the problem could be in the selection of both these drivers from the configuration dialog:
- lvga256   SVGAlib, 256-color VGA modes
- vgalib    SVGAlib, 16-color VGA modes
In fact, selecting only the first, ended with a successfully build.
Unfortunately they are both selected by default using make configure WITH_SVGALIB=1, anyway it was used to be ok for the previous versions.

How-To-Repeat: $ cd /usr/ports/print/ghostscript-gpl
$ make WITH_SVGALIB=1

note the both lvga256 and vgalib are selected and proceed with the build
Comment 1 Rong-En Fan freebsd_committer freebsd_triage 2007-08-17 06:43:21 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rafan

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-08-17 17:33:14 UTC
rafan       2007-08-17 16:33:10 UTC

  FreeBSD ports repository

  Modified files:
    print/ghostscript-gpl/files patch-src:unix-gcc.mak 
  Log:
  - Disable GS_DEVS_SHARED to fix svga drivers build
  
  PR:             ports/115593
  Reported by:    Barbara <barbara.xxx1975 at libero.it>
  Patched by:     KATO Tsuguru <tkato432 at yahoo.com>
  
  Revision  Changes    Path
  1.13      +1 -1      ports/print/ghostscript-gpl/files/patch-src:unix-gcc.mak
_______________________________________________
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 Rong-En Fan freebsd_committer freebsd_triage 2007-08-17 17:33:23 UTC
State Changed
From-To: open->closed

Fix committed. Thanks.