gdb 7 segfaulting - macos

I installed gdb 7.2 via macports on osx 10.6. However when I run it, I get
unable to read unknown load command 0x1a
Segmentation fault
I also tried compiling it manually but I still get the same error.
Any help would be greatly appreciated,
Thanks,
--Sid

Try these:
sudo chgrp procmod /opt/local/bin/fsf-gdb
sudo chmod g+s /opt/local/bin/fsf-gdb
Of course change "/opt/local/bin/" to reflect your path to gbd and change "fsf-gdb" to the name of the compiled gdb. I assumed "standard" path and name given by macports.

GDB is not actively maintained on Mac OS. Your best bet is to open a bug in GDB bugzilla.

Related

Fixing m4 on MAC OS 10.14.5

I'm having an issue with pecl which is erring out saying phpize had failed.
The problem ultimately seems to be with m4. Error is autom4te: need GNU m4 1.4 or later: /Applications/MAMP/Library/bin/m4
When I run "which m4" I get /Applications/MAMP/Library/bin/m4
However, any command I try to run with m4 like "m4 --version" I get the following:
Abort trap: 6
I can't find a good explanation of that error, but I'm guessing something is corrupted with m4, but I can't figure out how to fix this on a Mac. Do I just download a newer version and run configure, make and make install? Just a little nervous since I have somewhat limit Mac experience.
I've fixed similar issue by executing brew reinstall m4.
In addition to a "brew (re)install m4", I had to temporarily remove "/Applications/MAMP/Library/bin" from my PATH. After that this worked for me.

Cannot install Clang on Archlinux

For my second year we need to learn how to use linux (at a beginner level) and our professor told us to use Ubuntu, or ArchLinux if we wanted to learn more. I installed ubuntu and the required tools (he gave us a short list) but Archlinux freeze completly when I try to install clang and I have to recreate a new Virtual machine (I am on a Mac using VMWare) each time
here is the list of tool needed:
emacs
clang (>=3.4)
gcc (>= 4.8)
make
xterm
For each one it works but for clang
Here is the error I get:
image http://img11.hostingpics.net/pics/876673ScreenShot20140906at182459.png
and it doesn't respond anymore so I have to forcequit my VM and reinstall a new one. Has anybody already encountered this error ? Does anybody know what it means ? I tried pacman -Syu but it has not done anything...
Thank you
First It looks like a error that your VM hard drive is broken.
But it just 'maybe'.
Try to reboot it and try install commands again.
If it still can't work try to add -o $(pidof mount.ntfs-3g) to kill_all_wait() in /etc/rc.d/functions and reboot it.

Linux kernel source not configured - missing > version.h. when intall a driver

I'm trying to install a intel e1000 ethernet card driver on ubuntu 12.04 LTS.
When i type
make install
The following error occur:
Makefile:111: * Linux kernel source not configured - missing
version.h. Stop.
in the README file thy say:
When trying to compile the driver by running make install, the
following error may occur:
"Linux kernel source not configured - missing version.h"
To solve this issue, create the version.h file by going to the Linux
source tree and entering:
make include/linux/version.h.
I try to run this command in the /usr/src/linux******* folder but no results
(
i have linux-headers-3.8.0-29 linux-headers-3.8.0-32
linux-headers-3.8.0-29-generic linux-headers-3.8.0-32-generic
)
any suggestions to fix the problem?
Some people just like to compile. Searching this error pointed me here.
As it turns out the compiler is looking at the wrong kernel version, and the headers for this are not installed on the OS.
Best solved editing the specfile.
Install build-essential using terminal or synaptic.
Restart computer, it will work.
Thank you.

How can i use ghost4j on OS X 10.9

When i want to use ghost4j on OS X 10.9, i see this error:
Unable to load library 'gs': dlopen(libgs.dylib, 9): image not found
I have installed ghostscript library on my macbook using this site.
how can i fix this problem. I can not install ghostscript using port and brew for some reason.
First you need to find the file libgs.dylib which was installed by the installer package compile the libgs.dylib library from source, and make a note of where you installed it to.
Hopefully it should have been installed to a standard library location, and there should be nothing more you need to do. If not, you need to set the environment variable DYLD_LIBRARY_PATH. In a terminal this would be done by typing export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/directory, replacing /directory with the full path of the actual directory containing libgs.dylib. After typing this, in that terminal, if you run your application, it should work. To make it take effect permanently you would need to add the export command to your ~/.bash_profile. Or to make it take effect for all user accounts on your computer, you could add it to your /etc/profile.
If this doesn't work, I suppose the Ghostscript library could be 32-bit - you would need a 64-bit library I think.
A bit of an old thread but maybe useful for people still looking for an answer.
Install ghostscript using port
port install ghostscript
That done, you need to create a link so ghost4j finds the dylib.
cd /usr/lib
sudo ln -s /opt/local/lib/libgs.9.10.dylib libgs.dylib
Once I did that it worked like a charm.

How to setup/using GDB 7 on MacOS Lion with MacPorts

I run into trouble using GDB 7 (7.3) on MacOS Lion.
What I did was:
$ sudo port install gdb
After that GDB was installed to: /opt/local/bin/ggdb
But when I try to execute GDB I always receive the following at start:
BFD: unable to read unknown load command 0x24
BFD: unable to read unknown load command 0x26
BFD: unable to read unknown load command 0x24
BFD: unable to read unknown load command 0x26
Further it tells me:
Reading symbols from ... done.
but when I try to get for example a backtrace via 'bt' I only see unresolved function adresses. I tried to set the LIBRARY_PATH inside my application folder.
$ export DYLD_LIBRARY_PATH=`pwd`
but without success. The problems remain.
Using the default GDB 6.3 which is provided with Lion/Xcode works fine.
Thanks in advance for any advice.
Try cgdb for now, it's actually pretty nice so far:
sudo port install cgdb
I don't claim to understand why the latest gdb sources have an issue on the mac, but I have the same issue as you and I tried cgdb and it works for me. Links for more information:
http://cgdb.sourceforge.net/
https://trac.macports.org/ticket/26450
On Maverick follow this instructions that use homebrew. It seems that Apple's new system makes it hard to use gdb...
http://ntraft.com/installing-gdb-on-os-x-mavericks/

Resources