Hi Peter,
OK, started from scratch again, installed the latest Bacon and ran the following:
./configure --enable-gui-all
Followed by "make" then "sudo make install".
All went fine.
As I mentioned before, all dependencies are loaded but when I compile a GUI pgm with the BaconGUI GTK,
I can see that it does not make a GUI pgm and this is confirmed when I try to run it.
It says:
"Gtk library not found!........."
(Note that I have added the extra dots in hug.bac confirm that is was being found and read, it is).
This is also confirmed when I run "valgrind ./gui1", shown below:
Gtk library not found!.........
==15299==
==15299== HEAP SUMMARY:
==15299== in use at exit: 2,613 bytes in 11 blocks
==15299== total heap usage: 62 allocs, 51 frees, 6,177 bytes allocated
==15299==
==15299== Searching for pointers to 11 not-freed blocks
==15299== Checked 42,056,328 bytes
==15299==
==15299== LEAK SUMMARY:
==15299== definitely lost: 0 bytes in 0 blocks
==15299== indirectly lost: 0 bytes in 0 blocks
==15299== possibly lost: 2,592 bytes in 9 blocks
==15299== still reachable: 21 bytes in 2 blocks
==15299== suppressed: 0 bytes in 0 blocks
==15299== Rerun with --leak-check=full to see details of leaked memory
==15299==
==15299== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==15299== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Now, when I compile with:
bacon -l:libgtk-x11-2.0.so.0 gui1.bac
It no longer complains that "Gtk library not found!........." but it seg faults.
The output of valgrind as follows:
(sorry it's a long output)
BTW the strange smileys at the ned of some lines, are being generated by the forum software and not me.
==14307== Memcheck, a memory error detector
==14307== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==14307== Using Valgrind-3.14.0-353a3587bb-20181007X and LibVEX; rerun with -h for copyright info
==14307== Command: ./gui1
==14307==
--14307-- Valgrind options:
--14307-- -v
--14307-- Contents of /proc/version:
--14307-- Linux version 4.19.0-23-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.269-1 (2022-12-20)
--14307--
--14307-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-rdtscp-sse3
--14307-- Page sizes: currently 4096, max supported 4096
--14307-- Valgrind library directory: /usr/lib/x86_64-linux-gnu/valgrind
--14307-- Reading syms from /home/paulo/Downloads/Bacon/bacon-4.7/Paulo/TempCompileDir/gui1
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/ld-2.28.so
--14307-- Considering /usr/lib/debug/.build-id/9d/a9b30d436da7f984fc9904fbea9ab251f0c401.debug ..
--14307-- .. build-id is valid
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/valgrind/memcheck-amd64-linux
--14307-- Considering /usr/lib/debug/.build-id/32/2e77af97f403c3d34ff09edf60b089e72ec889.debug ..
--14307-- .. build-id is valid
--14307-- object doesn't have a dynamic symbol table
--14307-- Scheduler: using generic scheduler lock implementation.
--14307-- Reading suppressions file: /usr/lib/x86_64-linux-gnu/valgrind/default.supp
==14307== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-14307-by-paulo-on-
==14307== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-14307-by-paulo-on-
==14307== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-14307-by-paulo-on-
==14307==
==14307== TO CONTROL THIS PROCESS USING vgdb (which you probably
==14307== don't want to do, unless you know exactly what you're doing,
==14307== or are doing some strange experiment):
==14307== /usr/lib/x86_64-linux-gnu/valgrind/../../bin/vgdb --pid=14307 ...command...
==14307==
==14307== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==14307== /path/to/gdb ./gui1
==14307== and then give GDB the following command
==14307== target remote | /usr/lib/x86_64-linux-gnu/valgrind/../../bin/vgdb --pid=14307
==14307== --pid is optional if only one valgrind process is running
==14307==
--14307-- REDIR: 0x401e320 (ld-linux-x86-64.so.2:strlen) redirected to 0x580c9ce2 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--14307-- REDIR: 0x401e100 (ld-linux-x86-64.so.2:index) redirected to 0x580c9cfc (vgPlain_amd64_linux_REDIR_FOR_index)
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_core-amd64-linux.so
--14307-- Considering /usr/lib/debug/.build-id/34/fbc4cdfbfce1bfc3d2e522a01a050bf724c930.debug ..
--14307-- .. build-id is valid
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so
--14307-- Considering /usr/lib/debug/.build-id/ca/bb7898ea982d936cbfadd70ae831c6eb63623f.debug ..
--14307-- .. build-id is valid
==14307== WARNING: new redirection conflicts with existing -- ignoring it
--14307-- old: 0x0401e320 (strlen ) R-> (0000.0) 0x580c9ce2 vgPlain_amd64_linux_REDIR_FOR_strlen
--14307-- new: 0x0401e320 (strlen ) R-> (2007.0) 0x04838d80 strlen
--14307-- REDIR: 0x401ab40 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4839e40 (strcmp)
--14307-- REDIR: 0x401e860 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x483d860 (mempcpy)
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.32
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libdl-2.28.so
--14307-- Considering /usr/lib/debug/.build-id/62/a14e803a7947b82bd5e7229b17cf3dfecb03db.debug ..
--14307-- .. build-id is valid
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libm-2.28.so
--14307-- Considering /usr/lib/debug/.build-id/2b/b35b637d083a129575f4e15473e66c9cc682f7.debug ..
--14307-- .. build-id is valid
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libc-2.28.so
--14307-- Considering /usr/lib/debug/.build-id/a6/5a82147cd98619525049d4c29cc45f88d1fb00.debug ..
--14307-- .. build-id is valid
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0.2400.32
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.5800.3
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0.4200.3
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libXcomposite.so.1.0.0
--14307-- Considering /usr/lib/x86_64-linux-gnu/libXcomposite.so.1.0.0 ..
--14307-- .. CRC mismatch (computed 79eecefe wanted 1e35494d)
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0.23009.1
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libcairo.so.2.11600.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0.3800.1
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.5800.3
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.4200.3
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.4200.3
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5800.3
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.5800.3
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.12.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libfreetype.so.6.16.1
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libpthread-2.28.so
--14307-- Considering /usr/lib/debug/.build-id/ec/19020d4ed62de06eb809661084dfe0ec042ba2.debug ..
--14307-- .. build-id is valid
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libXinerama.so.1.0.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
--14307-- Considering /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0 ..
--14307-- .. CRC mismatch (computed 84d3e651 wanted 9a60a6cd)
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libpixman-1.so.0.36.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libpng16.so.16.36.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0.0.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-render.so.0.0.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/librt-2.28.so
--14307-- Considering /usr/lib/debug/.build-id/8f/747f5050e6b8cfc57a80bc8f3f1d493ee6f99e.debug ..
--14307-- .. build-id is valid
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libmount.so.1.1.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libselinux.so.1
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libresolv-2.28.so
--14307-- Considering /usr/lib/debug/.build-id/95/0948c707d1da7f556f2d3629731a2715aa0399.debug ..
--14307-- .. build-id is valid
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.20301.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libthai.so.0.3.1
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libfribidi.so.0.4.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libpcre.so.3.13.3
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libexpat.so.1.6.8
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libuuid.so.1.3.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
--14307-- Considering /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0 ..
--14307-- .. CRC mismatch (computed 23f1e0fa wanted 486c894f)
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libblkid.so.1.1.0
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libgraphite2.so.3.2.1
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libdatrie.so.1.3.5
--14307-- object doesn't have a symbol table
--14307-- Reading syms from /usr/lib/x86_64-linux-gnu/libbsd.so.0.9.1
--14307-- object doesn't have a symbol table
--14307-- REDIR: 0x4eb7f50 (libc.so.6:memmove) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb7320 (libc.so.6:strncpy) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb8230 (libc.so.6:strcasecmp) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb6d30 (libc.so.6:strcat) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb7350 (libc.so.6:rindex) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb9730 (libc.so.6:rawmemchr) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4ed20d0 (libc.so.6:wmemchr) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4ed1b70 (libc.so.6:wcscmp) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb80c0 (libc.so.6:mempcpy) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb7ef0 (libc.so.6:bcmp) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb72c0 (libc.so.6:strncmp) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb6da0 (libc.so.6:strcmp) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb8020 (libc.so.6:memset) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4ed1b40 (libc.so.6:wcschr) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb7260 (libc.so.6:strnlen) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb6e30 (libc.so.6:strcspn) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb8280 (libc.so.6:strncasecmp) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb6e00 (libc.so.6:strcpy) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb83c0 (libc.so.6:memcpy@@glibc_2.14) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4ed3370 (libc.so.6:wcsnlen) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb7380 (libc.so.6:strpbrk) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb6d60 (libc.so.6:index) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb7230 (libc.so.6:strlen) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4ebe120 (libc.so.6:memrchr) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb82d0 (libc.so.6:strcasecmp_l) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb7ec0 (libc.so.6:memchr) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4ed1c50 (libc.so.6:wcslen) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb7620 (libc.so.6:strspn) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb8200 (libc.so.6:stpncpy) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb81d0 (libc.so.6:stpcpy) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb9760 (libc.so.6:strchrnul) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb8320 (libc.so.6:strncasecmp_l) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4eb7e00 (libc.so.6:strstr) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4f364f0 (libc.so.6:__memcpy_chk) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4ed1ba0 (libc.so.6:wcscpy) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper)
--14307-- REDIR: 0x4ec6d90 (libc.so.6:__strrchr_sse2) redirected to 0x48387d0 (__strrchr_sse2)
--14307-- REDIR: 0x4ec7080 (libc.so.6:__strlen_sse2) redirected to 0x4838cc0 (__strlen_sse2)
--14307-- REDIR: 0x4eb3510 (libc.so.6:malloc) redirected to 0x4835710 (malloc)
--14307-- REDIR: 0x4eb42e0 (libc.so.6:calloc) redirected to 0x4837ab0 (calloc)
--14307-- REDIR: 0x4eb7b20 (libc.so.6:__GI_strstr) redirected to 0x483dac0 (__strstr_sse2)
--14307-- REDIR: 0x4ec13d0 (libc.so.6:__memchr_sse2) redirected to 0x4839ee0 (memchr)
--14307-- REDIR: 0x4ed0ec0 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4839fa0 (memcpy@GLIBC_2.2.5)
--14307-- REDIR: 0x4ed0810 (libc.so.6:__strstr_sse2_unaligned) redirected to 0x483da50 (strstr)
--14307-- REDIR: 0x4eb3b60 (libc.so.6:free) redirected to 0x4836940 (free)
--14307-- REDIR: 0x4ebf8d0 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x4839d00 (strcmp)
==14307==
==14307== Process terminating with default action of signal 11 (SIGSEGV)
==14307== Bad permissions for mapped region at address 0x293C518
==14307== at 0x293C518:
==14307==
==14307== HEAP SUMMARY:
==14307== in use at exit: 31,678 bytes in 21 blocks
==14307== total heap usage: 24 allocs, 3 frees, 33,374 bytes allocated
==14307==
==14307== Searching for pointers to 21 not-freed blocks
==14307== Checked 42,458,024 bytes
==14307==
==14307== LEAK SUMMARY:
==14307== definitely lost: 0 bytes in 0 blocks
==14307== indirectly lost: 0 bytes in 0 blocks
==14307== possibly lost: 96 bytes in 1 blocks
==14307== still reachable: 31,582 bytes in 20 blocks
==14307== of which reachable via heuristic:
==14307== newarray : 96 bytes in 1 blocks
==14307== suppressed: 0 bytes in 0 blocks
==14307== Rerun with --leak-check=full to see details of leaked memory
==14307==
==14307== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==14307== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Segmentation fault