Problem with GTK port

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/ 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/
(gdb) bt
#0  0x28112d67 in isatty () from /usr/lib/
#1  0x28113bd6 in malloc () from /usr/lib/
#2  0x2807ae1d in g_malloc () from /usr/local/lib/
#3  0x28082e65 in g_strdup () from /usr/local/lib/
#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

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