From nobody@FreeBSD.org  Thu Sep  4 07:44:03 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 44590106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  4 Sep 2008 07:44:03 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 3110B8FC21
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  4 Sep 2008 07:44:03 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m847i22J073585
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 4 Sep 2008 07:44:02 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m847i2QK073444;
	Thu, 4 Sep 2008 07:44:02 GMT
	(envelope-from nobody)
Message-Id: <200809040744.m847i2QK073444@www.freebsd.org>
Date: Thu, 4 Sep 2008 07:44:02 GMT
From: Edward.Sanford.Sutton@FreeBSD.org, III <mirror176@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] port emulators/bochs does not build correctly with SDL=on
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         127082
>Category:       ports
>Synopsis:       [patch] port emulators/bochs does not build correctly with SDL=on
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 04 07:50:03 UTC 2008
>Closed-Date:    Fri Sep 05 12:39:38 UTC 2008
>Last-Modified:  Fri Sep  5 12:40:01 UTC 2008
>Originator:     Edward Sanford Sutton, III
>Release:        7.0-RELEASE-p1
>Organization:
>Environment:
FreeBSD darkstar.l.net 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #0: Fri Jun 13 14:39:40 MST 2008     root@darkstar.l.net:/usr/obj/usr/src/sys/MYKERNEL7  i386
>Description:
When building emulators/bochs with SDL=on, the command `sdl-config --cflags
--libs` returns -lSDL among the list and results in the error "libtool: link:
cannot find the library `'" on my system. Replacing -lSDL with -lSDL-1.2 does
compile successfully. I do not know why one works while the other fails as both
libraries exist with the same size and md5 output. 

I have the following packages installed with SDL referenced in the package name:

ecore-sdl-0.9.9.042
evas-engine-sdl-0.9.9.042
linux-sdl-1.2.10,1
sdl-1.2.13_1,2
sdl_image-1.2.6_1
sdl_mixer-1.2.8_1
sdl_net-1.2.7
sdl_ttf-2.0.9

The following are ll and md5 outputs for the SDL libraries

lrwxr-xr-x  1 root  wheel      16 Apr  1 20:51 /usr/local/lib/libSDL-1.2.so -> libSDL-1.2.so.11
-rwxr-xr-x  1 root  wheel  474726 Apr  1 20:51 /usr/local/lib/libSDL-1.2.so.11
-rw-r--r--  1 root  wheel  573622 Apr  1 20:51 /usr/local/lib/libSDL.a
-rwxr-xr-x  1 root  wheel    1074 Apr  1 20:51 /usr/local/lib/libSDL.la
lrwxr-xr-x  1 root  wheel      16 Apr  1 20:51 /usr/local/lib/libSDL.so -> libSDL-1.2.so.11
-rwxr-xr-x  1 root  wheel  474726 Mar 29 09:48 /usr/local/lib/libSDL.so.11
MD5 (/usr/local/lib/libSDL-1.2.so) = afc4aa0649438be1cec61d5034265a43
MD5 (/usr/local/lib/libSDL-1.2.so.11) = afc4aa0649438be1cec61d5034265a43
MD5 (/usr/local/lib/libSDL.a) = b3bf46b992b8864b27783353a0f68b67
MD5 (/usr/local/lib/libSDL.la) = 9c65466b9fa31335e7f0c02ea7bc240f
MD5 (/usr/local/lib/libSDL.so) = afc4aa0649438be1cec61d5034265a43
MD5 (/usr/local/lib/libSDL.so.11) = afc4aa0649438be1cec61d5034265a43

>How-To-Repeat:
Attempt to build emulators/bochs with SDL=on defined should do the trick, but my current settings are:
===> The following configuration options are available for bochs-2.3.7,2:
     AES=off "Enable support of AES CPU extensions"
     CDROM=on "Enable CDROM support"
     CLGD54XX=off "Enable Cirrus Logic GD54xx video card"
     DEBUGGER=off "Enable debugger and disassembler support"
     DEBUGGER_X86=off "Enable x86 hardware debugger"
     FPU=on "Enable FPU emulator"
     IDLE_HACK=on "Keep Bochs from using all CPU time"
     IGNORE_BAD_MSR=off "Ignore unknown MSR references (don't panic)"
     MTRR=off "Enable MTRR emulation (CPU level >= 6)"
     MWAIT=off "Enable experimental MONITOR/MWAIT support"
     NE2000=on "Enable limited ne2000 support"
     NEW_PIT=on "Enable use of the new PIT model"
     OPTIMIZATIONS=on "Enable all safe speeed optimizations"
     PCI=on "Enable limited i440FX PCI support"
     PLUGINS=off "Enable building dynamic loadable plugins"
     PNIC=off "Enable PCI pseudo NIC (network card) support"
     PORT_E9_HACK=on "Writes to port e9 go to console"
     READLINE=off "Enable readline support in debugger"
     RFB=off "Enable VNC server support in display"
     SB16=on "Enable Sound Blaster 16 emulation"
     SDL=on "Enable SDL display interface"
     SHOW_IPS=off "Enable logging of measured IPS"
     SMP=on "Enable SMP simulation support (CPU level 6)"
     SSE4=off "Enable emulation of SSE4.2 instruction set"
     SVGA=on "Enable SVGAlib support"
     TCACHE=on "Enable trace cache"
     TERM=off "Use text only, console based interface"
     USB=off "Enable limited i440FX PCI USB support"
     VBE=on "Enable VGA BIOS Extensions"
     WX=off "Use WxWidgets display interface"
     X11=on "Use X11 display interface"
     X86_64=off "Enable AMD x86-64 support"
     XPM=on "Enable XPM library support"
     XSAVE=off "Enable support of XSAVE/XRSTOR CPU extensions"

>Fix:
I placed this patch as emulators/bochs/files/patch-Makefile.in
--- Makefile.in.orig    2008-09-01 11:59:47.000000000 -0700
+++ Makefile.in 2008-09-01 12:06:44.000000000 -0700
@@ -103,7 +103,7 @@
 X_PRE_LIBS = @X_PRE_LIBS@
 XPM_LIB = @XPM_LIB@
 GUI_LINK_OPTS_X = $(X_LIBS) $(X_PRE_LIBS) -lX11 $(XPM_LIB)
-GUI_LINK_OPTS_SDL = `sdl-config --cflags --libs`
+GUI_LINK_OPTS_SDL = `sdl-config --cflags --libs | sed -e "s/-lSDL/-lSDL-1.2/"`
 GUI_LINK_OPTS_SVGA =  -lvga -lvgagl
 GUI_LINK_OPTS_BEOS = -lbe
 GUI_LINK_OPTS_RFB = @RFB_LIBS@


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Fri Sep 5 12:38:49 UTC 2008 
State-Changed-Why:  
Fixed properly 

http://www.freebsd.org/cgi/query-pr.cgi?pr=127082 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/127082: commit references a PR
Date: Fri,  5 Sep 2008 12:39:35 +0000 (UTC)

 pav         2008-09-05 12:39:27 UTC
 
   FreeBSD ports repository
 
   Modified files:
     emulators/bochs      Makefile 
   Log:
   - Fix build with SDL
   
   PR:             ports/127082
   Reported by:    Edward Sanford Sutton, III
   
   Revision  Changes    Path
   1.84      +1 -1      ports/emulators/bochs/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"
 
>Unformatted:
