[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Port of Gnapster



On Sat, Mar 17, 2001 at 07:49:47PM -0600, justin wrote:
> I just ported Gnapster, a Gtk+ Napster client. The tarball of the port
> files are at http://members.tripod.com/defjustin/gnapster.tar.gz and

I grabbed this and attempted to make it. I ran into problems. Here is the 
build log and the config.log.

BTW I've been having problems in general with ports that depend on gtk since
I've upgraded to 1.2.9. Did something change?
+++ Sun Mar 18 10:44:01 EST 2001
===>  Checking files for gnapster-1.4.2
`/usr/ports/distfiles/gnapster-1.4.2.tar.gz' is up to date.
>> Checksum OK for gnapster-1.4.2.tar.gz. (sha1)
===>  gnapster-1.4.2 depends on: gmake - found
===>  gnapster-1.4.2 depends on: gtk.1.2 - found
===>  gnapster-1.4.2 depends on: gdk_imlib.19 - found
===>  Extracting for gnapster-1.4.2
===>  Patching for gnapster-1.4.2
===>  Configuring for gnapster-1.4.2
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c -o root -g bin
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... cc
checking whether the C compiler (cc -O2    ) works... yes
checking whether the C compiler (cc -O2    ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for POSIXized ISC... no
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking what warning flags to pass to the C compiler... -Wall -Wunused
checking what language compliance flags to pass to the C compiler... 
checking for pthread_create in -lpthread... no
checking for pthread_create in -lpthreads... no
checking for pthread_create in -lc_r... yes
checking for gtk-config... /usr/local/bin/gtk-config
checking for GTK - version >= 1.2.0... no
*** Could not run GTK test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script: /usr/local/bin/gtk-config
configure: error: GTK not installed
*** Error code 1

Stop in /usr/ports/audio/gnapster (line 1319 of /usr/ports/infrastructure/mk/bsd.port.mk).
--- Sun Mar 18 10:44:15 EST 2001
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:598: checking for a BSD compatible install
configure:651: checking whether build environment is sane
configure:708: checking whether make sets ${MAKE}
configure:754: checking for working aclocal
configure:767: checking for working autoconf
configure:780: checking for working automake
configure:793: checking for working autoheader
configure:806: checking for working makeinfo
configure:821: checking whether to enable maintainer-specific portions of Makefiles
configure:881: checking for gcc
configure:994: checking whether the C compiler (cc -O2    ) works
configure:1010: cc -o conftest -O2      conftest.c  1>&5
configure:1036: checking whether the C compiler (cc -O2    ) is a cross-compiler
configure:1041: checking whether we are using GNU C
configure:1050: cc -E conftest.c
configure:1069: checking whether cc accepts -g
configure:1101: checking for POSIXized ISC
configure:1122: checking how to run the C preprocessor
configure:1143: cc -E  conftest.c >/dev/null 2>conftest.out
configure:1202: checking for ANSI C header files
configure:1215: cc -E  conftest.c >/dev/null 2>conftest.out
configure:1282: cc -o conftest -O2      conftest.c  1>&5
configure:1785: checking what warning flags to pass to the C compiler
configure:1817: checking what language compliance flags to pass to the C compiler
configure:1842: checking for pthread_create in -lpthread
configure:1861: cc -o conftest -g -Wall -Wunused    conftest.c -lpthread   1>&5
ld: -lpthread: no match
collect2: ld returned 1 exit status
configure: failed program was:
#line 1850 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pthread_create();

int main() {
pthread_create()
; return 0; }
configure:1880: checking for pthread_create in -lpthreads
configure:1899: cc -o conftest -g -Wall -Wunused    conftest.c -lpthreads   1>&5
ld: -lpthreads: no match
collect2: ld returned 1 exit status
configure: failed program was:
#line 1888 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pthread_create();

int main() {
pthread_create()
; return 0; }
configure:1918: checking for pthread_create in -lc_r
configure:1937: cc -o conftest -g -Wall -Wunused    conftest.c -lc_r   1>&5
configure:2066: checking for gtk-config
configure:2101: checking for GTK - version >= 1.2.0
configure:2202: cc -o conftest -g -Wall -Wunused  -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib -I/usr/X11R6/include   conftest.c -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -lintl -lXext -lX11 -lm  1>&5
In file included from /usr/local/include/gtk-1.2/gdk/gdk.h:31,
                 from /usr/local/include/gtk-1.2/gtk/gtk.h:31,
                 from configure:2126:
/usr/local/include/gtk-1.2/gdk/gdktypes.h:33: glib.h: No such file or directory
In file included from /usr/local/include/gtk-1.2/gtk/gtkarg.h:31,
                 from /usr/local/include/gtk-1.2/gtk/gtkobject.h:31,
                 from /usr/local/include/gtk-1.2/gtk/gtkaccelgroup.h:35,
                 from /usr/local/include/gtk-1.2/gtk/gtk.h:32,
                 from configure:2126:
/usr/local/include/gtk-1.2/gtk/gtktypeutils.h:31: glib.h: No such file or directory
configure: failed program was:
#line 2124 "configure"
#include "confdefs.h"

#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>

int 
main ()
{
  int major, minor, micro;
  char *tmp_version;

  system ("touch conf.gtktest");

  /* HP/UX 9 (%_(_at_)_#!) writes to sscanf strings */
  tmp_version = g_strdup("1.2.0");
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
     printf("%s, bad version string\n", "1.2.0");
     exit(1);
   }

  if ((gtk_major_version != 1) ||
      (gtk_minor_version != 2) ||
      (gtk_micro_version != 9))
    {
      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
             1, 2, 9,
             gtk_major_version, gtk_minor_version, gtk_micro_version);
      printf ("*** was found! If gtk-config was correct, then it is best\n");
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
      printf("*** required on your system.\n");
      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
      printf("*** before re-running configure\n");
    } 
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
	   (gtk_minor_version != GTK_MINOR_VERSION) ||
           (gtk_micro_version != GTK_MICRO_VERSION))
    {
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
      printf("*** library (version %d.%d.%d)\n",
	     gtk_major_version, gtk_minor_version, gtk_micro_version);
    }
#endif /* defined (GTK_MAJOR_VERSION) ... */
  else
    {
      if ((gtk_major_version > major) ||
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
      {
        return 0;
       }
     else
      {
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
               gtk_major_version, gtk_minor_version, gtk_micro_version);
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
	       major, minor, micro);
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n";);
        printf("***\n");
        printf("*** If you have already installed a sufficiently new version, this error\n");
        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
        printf("*** so that the correct libraries are found at run-time))\n");
      }
    }
  return 1;
}

configure:2246: cc -o conftest -g -Wall -Wunused  -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib -I/usr/X11R6/include   conftest.c  -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -lintl -lXext -lX11 -lm 1>&5
In file included from /usr/local/include/gtk-1.2/gdk/gdk.h:31,
                 from /usr/local/include/gtk-1.2/gtk/gtk.h:31,
                 from configure:2238:
/usr/local/include/gtk-1.2/gdk/gdktypes.h:33: glib.h: No such file or directory
In file included from /usr/local/include/gtk-1.2/gtk/gtkarg.h:31,
                 from /usr/local/include/gtk-1.2/gtk/gtkobject.h:31,
                 from /usr/local/include/gtk-1.2/gtk/gtkaccelgroup.h:35,
                 from /usr/local/include/gtk-1.2/gtk/gtk.h:32,
                 from configure:2238:
/usr/local/include/gtk-1.2/gtk/gtktypeutils.h:31: glib.h: No such file or directory
configure: failed program was:
#line 2236 "configure"
#include "confdefs.h"

#include <gtk/gtk.h>
#include <stdio.h>

int main() {
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
; return 0; }

Visit your host, monkey.org