Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2002 17:07:22 +0100
From:      Stijn Hoop <stijn@win.tue.nl>
To:        John Reynolds <johnjen@reynoldsnet.org>
Cc:        Paolo Pisati <flag@libero.it>, FreeBSD_Ports <freebsd-ports@freebsd.org>, usb-bsd@eleetbsd.org
Subject:   Re: xmame doesn't build: sdl problem
Message-ID:  <20020326170722.K69118@pcwin002.win.tue.nl>
In-Reply-To: <15520.38248.686402.579487@gargle.gargle.HOWL>; from johnjen@reynoldsnet.org on Tue, Mar 26, 2002 at 08:36:08AM -0700
References:  <20020326155353.B94017@southcross.skynet.org> <20020326150644.I69118@pcwin002.win.tue.nl> <15520.38248.686402.579487@gargle.gargle.HOWL>

next in thread | previous in thread | raw e-mail | index | archive | help

--hK8Uo4Yp55NZU70L
Content-Type: multipart/mixed; boundary="ey/N+yb7u/X9mFhi"
Content-Disposition: inline


--ey/N+yb7u/X9mFhi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

On Tue, Mar 26, 2002 at 08:36:08AM -0700, John Reynolds wrote:
> > do you by chance have the devel/libusb port installed? It interferes
> > with the standard libusb and is *not* compatible with it. It's not an
> > xmame problem, the libusb port should be fixed.
> >=20
> > CC: maintainer of libusb port.
> >=20
>=20
> this discussion has come up several times in the last year (about libusb =
and
> our "native" USB libraries). I can not fix it. The general consensus when=
 I
> imported the libusb (from the Linux world) was that our "native" libusb n=
eeded
> to change its name.

Do you have a pointer to this discussion? I'll be able to look at it
tomorrow.

> Long ago (about a year) Lennart (from NetBSD) said "no
> problem" to that but I haven't seen the library name change in the USB
> stack. I don't know if this is planned or if there is a plan in place to
> even make this happen. USB developers, is there a plan to change the HID
> library "native" to the OS to another name (yes we have rehashed this
> subject several times on usb-bsd before ....)?
>=20
> Time is short at this point. Over the weekend when this first message came
> in I tried to look at the xmame port to see if I could hack around the
> problem. If I can I will continue this effort tonight and post anything I
> can come up with.

Well, I can think of a solution: replace files/patch-ac from the xmame
port with the patch-ac attached, and build xmame. Due to the static linking
it will not fail.

I still don't think it's wise to 'override' a system library; either the
system library should be fixed to provide the functions that are needed by
users of the devel/libusb port or the port should be changed to name its
=2Eso something like libusblinux.so. On second thought, maybe both should
happen.

--Stijn

--=20
SIGSIG -- signature too long (core dumped)

--ey/N+yb7u/X9mFhi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-ac
Content-Transfer-Encoding: quoted-printable

--- src/unix/unix.mak.orig	Sun Mar 24 19:33:46 2002
+++ src/unix/unix.mak	Tue Mar 26 17:02:45 2002
@@ -50,20 +50,20 @@
=20
 # svga and ggi also use $(X11LIB) since that's where zlib often is
 LIBS.x11        =3D $(X11LIB) $(JOY_X11_LIBS) $(XINPUT_DEVICES_LIBS) -lX11=
 -lXext
-LIBS.svgalib    =3D $(X11LIB) -lvga -lvgagl
+LIBS.svgalib    =3D -L$(LOCALBASE)/lib -lvga -lvgagl
 LIBS.ggi        =3D $(X11LIB) -lggi
-LIBS.xgl        =3D $(X11LIB) $(JOY_X11_LIBS) -lX11 -lXext $(GLLIBS) -ljpeg
+LIBS.xgl        =3D $(X11LIB) $(JOY_X11_LIBS) -lX11 -lXext $(GLLIBS) -L$(L=
OCALBASE)/lib -ljpeg
 LIBS.xfx        =3D $(X11LIB) $(JOY_X11_LIBS) -lX11 -lXext -lglide2x
 LIBS.svgafx     =3D $(X11LIB) -lvga -lvgagl -lglide2x
 LIBS.openstep	=3D -framework AppKit
-LIBS.SDL	=3D `sdl-config --libs`
+LIBS.SDL	=3D `$(SDL_CONFIG) --libs`
 LIBS.photon2	=3D -L/usr/lib -lph -lphrender
=20
 CFLAGS.x11      =3D $(X11INC) $(JOY_X11_CFLAGS) $(XINPUT_DEVICES_CFLAGS)
-CFLAGS.xgl      =3D $(X11INC) $(JOY_X11_CFLAGS) $(GLCFLAGS)
+CFLAGS.xgl      =3D -DGLU_VERSION_1_2 $(X11INC) $(JOY_X11_CFLAGS) $(GLCFLA=
GS) -I$(LOCALBASE)/include $(PTHREAD_CFLAGS)
 CFLAGS.xfx      =3D $(X11INC) $(JOY_X11_CFLAGS) -I/usr/include/glide
 CFLAGS.svgafx   =3D -I/usr/include/glide
-CFLAGS.SDL      =3D -D_REENTRANT
+CFLAGS.SDL      =3D $(X11INC) `$(SDL_CONFIG) --cflags`
 CFLAGS.photon2	=3D
=20
 INST.x11        =3D doinstall
@@ -235,7 +235,7 @@
 MY_LIBS +=3D -lusb
 endif
 else
-MY_LIBS +=3D -lusb
+MY_LIBS +=3D /usr/lib/libusb.a
 endif
 endif
=20
@@ -366,7 +366,7 @@
 =09
 doc/x$(TARGET)rc.dist: all src/unix/xmamerc-keybinding-notes.txt
 	./x$(TARGET).$(DISPLAY_METHOD) -noloadconfig -showconfig | \
-	 grep -v loadconfig > doc/x$(TARGET)rc.dist
+	 grep -v loadconfig | tr "\033" \# > doc/x$(TARGET)rc.dist
 	cat src/unix/xmamerc-keybinding-notes.txt >> doc/x$(TARGET)rc.dist
 =09
 doc/gamelist.$(TARGET): all
@@ -375,7 +375,8 @@
=20
 doc/x$(TARGET).6: all src/unix/xmame.6-1 src/unix/xmame.6-3
 	cat src/unix/xmame.6-1 > doc/x$(TARGET).6
-	./x$(TARGET).$(DISPLAY_METHOD) -manhelp >> doc/x$(TARGET).6
+	./x$(TARGET).$(DISPLAY_METHOD) -noloadconfig -manhelp | \
+	 tr "\033" \# >> doc/x$(TARGET).6
 	cat src/unix/xmame.6-3 >> doc/x$(TARGET).6
=20
 install: $(INST.$(DISPLAY_METHOD)) install-man

--ey/N+yb7u/X9mFhi--

--hK8Uo4Yp55NZU70L
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8oJy6Y3r/tLQmfWcRAr/2AJ90wd4GQyyJggDy8D95aTmnvUi2gQCdHOw3
BlVJ8gKwPTuQQqGAOJBmOXg=
=zO80
-----END PGP SIGNATURE-----

--hK8Uo4Yp55NZU70L--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020326170722.K69118>