Fixing Compile Error: undefined reference to ‘dclose’ (dlopen, dlsym, and/or dlerror)

I am running an Ubuntu 12.10 machine and I had to compile and install a jsvc binary for an older version that I didn’t have a package that I could install via dpkg or apt-get install.

Running configure came off without a hitch.

Running make resulted in the following error:

gcc -ldl -lpthread jsvc-unix.o libservice.a -o ../jsvc
libservice.a(dso-dlfcn.o): In function `dso_unlink’:
/usr/local/src/daemon-1.0.1/src/native/unix/native/dso-dlfcn.c:41: undefined reference to `dlclose’
libservice.a(dso-dlfcn.o): In function `dso_link’:
/usr/local/src/daemon-1.0.1/src/native/unix/native/dso-dlfcn.c:36: undefined reference to `dlopen’
libservice.a(dso-dlfcn.o): In function `dso_symbol’:
/usr/local/src/daemon-1.0.1/src/native/unix/native/dso-dlfcn.c:47:
Continue reading “Fixing Compile Error: undefined reference to ‘dclose’ (dlopen, dlsym, and/or dlerror)”

Configuring the Number of Workspaces on Ubuntu 12.10

I typically like to have more than 4 workspaces for my X Windows sessions.

Under Ubuntu 12.10 there is a little trickey involved in updating the default configuration.

First you need to install the compizconfig-settings-manager.  This will enable you to configure the workspace switcher and some other system configs.  Be careful, this will also allow you to break things so only configure what you understand via compizconfig-settings-manager.

Install ccsm:

  • # apt-get install compizconfig-settings-manager

To run invoke (as root):

  • # ccsm
Continue reading “Configuring the Number of Workspaces on Ubuntu 12.10”

Running a Headless Virtual Machine under VMPlayer

If you want to run a headless VM under VMPlayer simply add the following to your vmware preferences file ($HOME/.vmware/preferences):

pref.vmplayer.exit.vmAction = “disconnect”

Restart VMPlayer and fire up your VM.  When you quit that VMPlayer instance it will ask you if you are sure that you want to quit and leave the virtual machine running.

When you quit the player the VM will now be running headless.→ Continue reading “Running a Headless Virtual Machine under VMPlayer”

Preventing resolv.conf From Being Automatically Overwritten with Each Restart or network restart

I am running CentoOS 6.3 and have set up a local nameserver.  As a result, I’ve customized my version of /etc/resolv.conf to include both the IP of my local nameserver as well as a domain and search configuration directives.

When I restarted the machine, or if I restarted networking resolv.conf was overwritten.

It turns out that the contents of the ifcfg-ethN files determine how the network scripts behave and how, or if resolv.conf is modified programatically.

To prevent this make → Continue reading “Preventing resolv.conf From Being Automatically Overwritten with Each Restart or network restart”

Tabbing To Links Problems in Browsers under Mac OS X

I am working on building some 508 Compliant/Accessible web sites and am testing out how well the navigation works using only the tab key.

Under Mac OS X with Firefox, Opera, and Safari, by default, the tab key does not cycle through all of the links on a web page.

Firefox:

  • Go to: System Preferences/Keyboard/Keyboard Shortcuts
  • Click on the ‘All controls’ radio button towards the bottom of the dialog under the text that says: ‘Full Keyboard Access: In windows
Continue reading “Tabbing To Links Problems in Browsers under Mac OS X”

Allowing Popups in FireFox from Locally Sourced Files

If you want to allow a popup from a file accessed via file:///home/rchapin/some_dir/somefile.html, open FireFox’s Preferences, click on the Content tab, and click on the ‘Exceptions’ button adjacent to the ‘Block pop-up windows’ check box.

Then enter ‘<file>’ in the ‘Address of website:’ field and click the ‘Allow’ button.→ Continue reading “Allowing Popups in FireFox from Locally Sourced Files”

How to Add an Application to the Mac Approved Software List

I am installing Eclipse on Mac OS X Mountain Lion.  Unpacking the
.tar.gz was no problem, however, when I went to run it for the first
time I got the following error message:

Your security preferences allow installation of only apps from the Mac App Store and identified developers

To add Eclipse to the list of ‘approved’ applications run the following command in a terminal:

xattr -d com.apple.quarantine /path/to/Eclipse.appContinue reading “How to Add an Application to the Mac Approved Software List”

Websites about Programming by Programmers

A few websites and articles by professional programmers about writing code and computer science:

Continue reading “Websites about Programming by Programmers”

Changing the VMWare vmnet IP Range when it Conflicts with a VPN on Mac OS X

If you are running both VMWare (in my case VMWare Fusion 5) and a VPN that uses the 192.168.203.0 subnet you will may need to update the ip range that is used for the vmnet.

In my case, vmnet8 was configured to use 192.168.203.0 and so was a VPN connection that I was using.

As a result, if I fired up VMWare first and then attempt to make a connection to the VPN, I could not route to any of → Continue reading “Changing the VMWare vmnet IP Range when it Conflicts with a VPN on Mac OS X”