Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 2004 11:58:28 +0100
From:      Frank Liebelt <frank.liebelt@acst.de>
To:        KATO Tsuguru <tkato@prontomail.com>
Cc:        ports@freebsd.org
Subject:   Re: Compile Error for SDL_IMAGE
Message-ID:  <200403171158.34942.frank.liebelt@acst.de>
In-Reply-To: <20040317193218.2ae49852.tkato@prontomail.com>
References:  <200403170950.12092.frank.liebelt@acst.de> <20040317093624.GJ99582@k7.mavetju> <20040317193218.2ae49852.tkato@prontomail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

> It seems incorrect libSDL-1.1 library is made if devel/libusb
> is installed. This problem can be avoided with this patch.
>
>
> diff -urN /usr/ports/devel/sdl12/files/patch-ac sdl12/files/patch-ac
> --- /usr/ports/devel/sdl12/files/patch-ac	Tue Mar 16 19:06:11 2004
> +++ sdl12/files/patch-ac	Wed Mar 17 19:23:33 2004
> @@ -1,14 +1,5 @@
> ---- configure.orig	Mon Feb 23 08:32:33 2004
> -+++ configure	Mon Mar  8 16:17:17 2004
> -@@ -19138,7 +19138,7 @@
> -
> -
> - # This can be used to rebuild libtool when needed
> --LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
> -+LIBTOOL_DEPS="--disable-ltlibs /usr/local/share/libtool13/ltmain.sh"
> -
> - # Always use our own libtool.
> - LIBTOOL='$(SHELL) $(top_builddir)/libtool'
> +--- configure.orig	Mon Feb 23 06:32:33 2004
> ++++ configure	Wed Mar 17 19:23:24 2004
>  @@ -21171,7 +21171,7 @@
>
>
> @@ -29,7 +20,14 @@
>               ;;
>           *-*-netbsd*)
>               pthread_cflags="-I/usr/pkg/include -D_REENTRANT"
> -@@ -28401,7 +28401,9 @@
> +@@ -28394,14 +28394,13 @@
> + fi
> +
> +
> +-        if test x$have_usb_h = xyes; then
> +-            CFLAGS="$CFLAGS -DHAVE_USB_H"
> +-        fi
> +         if test x$have_usbhid_h = xyes; then
>               CFLAGS="$CFLAGS -DHAVE_USBHID_H"
>           fi
>           if test x$have_libusb_h = xyes; then

I have allready this patchfile in files/patch-ac

- --- configure.orig      Mon Feb 23 08:32:33 2004
+++ configure   Mon Mar  8 16:17:17 2004
@@ -19138,7 +19138,7 @@


 # This can be used to rebuild libtool when needed
- -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+LIBTOOL_DEPS="--disable-ltlibs /usr/local/share/libtool13/ltmain.sh"

 # Always use our own libtool.
 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
@@ -21171,7 +21171,7 @@


 SDL_CFLAGS=""
- -SDL_LIBS="-lSDL"
+SDL_LIBS="-lSDL-1.1"


 case "$target" in
@@ -25926,8 +25926,8 @@
 #            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
             ;;
         *-*-freebsd*)
- -            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
- -            pthread_lib="-pthread"
+            pthread_cflags="-D_REENTRANT ${PTHREAD_CFLAGS}"
+            pthread_lib="${PTHREAD_LIBS}"
             ;;
         *-*-netbsd*)
             pthread_cflags="-I/usr/pkg/include -D_REENTRANT"
@@ -28401,7 +28401,9 @@
             CFLAGS="$CFLAGS -DHAVE_USBHID_H"
         fi
         if test x$have_libusb_h = xyes; then
+           if test x$have_libusbhid_h = xno; then
             CFLAGS="$CFLAGS -DHAVE_LIBUSB_H"
+           fi
         fi
         if test x$have_libusbhid_h = xyes; then
             CFLAGS="$CFLAGS -DHAVE_LIBUSBHID_H"

Should i replace it with this what you send?

@Edwin

I added two attachments to that mail with the complete error log.
As text i send only the output that i got on screen!

Frank

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAWC9ZQdEg+G+HKLERAh/8AJ46ex4Ixiaz11UBb2OnfK4hB5HROQCePvJi
detjpbSp7aJFdV6wjBNJ9CU=
=aj/O
-----END PGP SIGNATURE-----



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