ports/127082: [patch] port emulators/bochs does not build correctly with SDL=on

Edward.Sanford.Sutton at FreeBSD.org Edward.Sanford.Sutton at FreeBSD.org
Thu Sep 4 07:50:03 UTC 2008


>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 04 07:50:03 UTC 2008
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list