From owner-freebsd-ports Mon Dec 4 9:45:40 2000 From owner-freebsd-ports@FreeBSD.ORG Mon Dec 4 09:45:35 2000 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from hokkshideh.jetcafe.org (hokkshideh.jetcafe.org [205.147.43.4]) by hub.freebsd.org (Postfix) with ESMTP id 7F94337B400; Mon, 4 Dec 2000 09:45:34 -0800 (PST) Received: from hokkshideh.jetcafe.org (localhost [127.0.0.1]) by hokkshideh.jetcafe.org (8.8.8/8.8.5) with ESMTP id JAA11576; Mon, 4 Dec 2000 09:45:29 -0800 (PST) Message-Id: <200012041745.JAA11576@hokkshideh.jetcafe.org> X-Mailer: exmh version 2.2 06/23/2000 with version: MH 6.8.4 #1[UCI] To: freebsd-ports@freebsd.org Cc: freebsd-questions@freebsd.org, gtk-list@gnome.org Subject: Problem with GTK port Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 04 Dec 2000 09:45:28 -0800 From: Dave Hayes Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I am on a fresh 4.2-RELEASE machine with the current ports sup'd down. The GLIB port installed with no problems. However when I got into the GTK port, the following happens: $ make ... checking for GLIB - version >= 1.2.8... no *** Could not run GLIB test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding GLIB or finding the wrong *** version of GLIB. If it is not finding GLIB, you'll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point *** to the installed location Also, make sure you have run ldconfig if that *** is required on your system So, being the inquisitive type, I investigate. I create a "conftest.c" file like the one in configure, called "conft.c". I then proceed to compile this with the following line: cc -o conftest -g -O2 -Wall -I/usr/local/include/glib12 -D_THREAD_SAFE -DLINUXTHREADS conft.c -L/usr/local/lib -Wl,-E -lgmodule12 -lgthread12 -lglib12 -lpthread Already, I see no "-pthread" switch so I know this may be kinda bogus. The interesting thing comes when I see this: $ ./conftest Bus error (core dumped) $ gdb ./conftest GNU gdb 4.18 ... This GDB was configured as "i386-unknown-freebsd"... (gdb) r Starting program: /usr/ports/x11-toolkits/gtk12/work/gtk+-1.2.8/./conftest Program received signal SIGBUS, Bus error. 0x28112d67 in isatty () from /usr/lib/libc.so.4 (gdb) bt #0 0x28112d67 in isatty () from /usr/lib/libc.so.4 #1 0x28113bd6 in malloc () from /usr/lib/libc.so.4 #2 0x2807ae1d in g_malloc () from /usr/local/lib/libglib12.so.3 #3 0x28082e65 in g_strdup () from /usr/local/lib/libglib12.so.3 #4 0x80486a5 in main () at conft.c:16 #5 0x80485f5 in _start () Quite odd. Anyone have a clue as to what is going on here? ------ Dave Hayes - Consultant - Altadena CA, USA - dave@jetcafe.org >>> The opinions expressed above are entirely my own <<< There is no distinctly native American criminal class except Congress. -- Mark Twain To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message