lib/.libs/ undefined reference to `g_atomic_pointer_add’ syslog-ng


Posted on 18th July 2017 by Mike in Atlanta Computer Repair |Atlanta Linux Repairs


While making syslog-ng i got this error

lib/.libs/ undefined reference to `g_atomic_pointer_add’

vi ./lib/stats/stats-counter.h

add this after #include “syslog-ng.h”:

#if !(GLIB_CHECK_VERSION(2,30,0))
#define g_atomic_int_and(atomic, val) \
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint)); \
(void) (0 ? *(atomic) ^ (val) : 0); \
(guint) __sync_fetch_and_and ((atomic), (val)); \
#define g_atomic_int_or(atomic, val) \
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint)); \
(void) (0 ? *(atomic) ^ (val) : 0); \
(guint) __sync_fetch_and_or ((atomic), (val)); \
#define g_atomic_pointer_add(atomic, val) \
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
(void) (0 ? (gpointer) *(atomic) : 0); \
(void) (0 ? (val) ^ (val) : 0); \
(gssize) __sync_fetch_and_add ((atomic), (val)); \

How to set date time and timezone linux


Posted on 1st May 2013 by Mike in Atlanta Linux Repairs

, , , , , ,

How do I set the date, time, and timezone in linux?

For most distros the following string format will work with the date command.

date -s 'Wed May 1 10:52:00 EDT 2013'

Just want to know the current date/time/timezone?

All you have to do is run the date command.

[user@localhost ~]#date
Wed May 1 10:52:00 EDT 2013

vTiger CRM 5.3.0 / PHP 5.3 and workflow module problem


Posted on 3rd August 2012 by Mike in Atlanta Linux Repairs

We were receiving an error message “failure: undefined” when trying to create workflows in vTiger 5.3.0 with PHP 5.3+. We found a blog mentioning changing your php configs request_order = “GPC”. This did not fix our problem however.

Our fix was by changing line 63 in webservice.php found in the root crm directory.

to this:
$sessionId = vtws_getParameter($_REQUEST,"PHPSESSID");

I found we were using PHPSESSID by looking at the cookie on the page. It had this at the end PHPSESSID=kg1d0j5aqvakda5t60acvhkh30. At some point before we had this same problem and found the fix was to change this to EASESSID from whatever it was. The trick here is changing the code above to match whatever you’ve specified as your in your php.ini (/etc/php.ini in my case). = PHPSESSID

Once you match the webservice.php to that of your, the problem should go away. Please note, we kept the request_order = “GPC” in our php.ini as well.

“configure: error: libpng.(a|so) not found.”


Posted on 22nd August 2011 by Mike in Atlanta Computer Repair |Atlanta Linux Repairs

, ,

I was getting “configure: error: libpng.(a|so) not found.” after solving a “configure: error: libjpeg.(a|so) not found.” error. I used sudo updatedb to update the locate db, then sudo locate to find that it was in a sub dir of /usr/lib/i386-linux-gnu/ so I copied libpng.a and to /usr/lib and it fixed the problem.

MS Explorer Mouse Model 1362 Red light flashing quickly


Posted on 14th July 2011 by Mike in Acworth Computer Repair |Alpharetta Computer Repair |Atlanta Computer Repair |Atlanta Linux Repairs |Atlanta Macintosh Repairs |Decatur Computer Repair |Marietta Computer Repair |Sandy Springs Computer Repair |Stone Mountain Computer Repair

, ,

We had a MS Explorer Mouse Model 1362 with a Red light flashing quickly. The mouse had been disconnected from its charging station for over two weeks. The fix was to connect it to its charging station while depressing the button in the bottom of the mouse (the button that detects when the usb transmitter is attached or not).

Ran into this again and the fix above didnt stop the red light from blinking. The solution this time was to replace the rechargeable battery inside the mouse with another NiMH Rechargeable battery. We used an off brand 2800mah instead of the stock 2100mah, and we have no issues charging, etc.

Using DD & NC to create backups over a network


Posted on 5th January 2010 by Mike in Atlanta Linux Repairs

, , , ,

Backing up computers over the network is easy if your backup device / server is running linux

Boot a live cd on the computer you want to backup, then on the nix powered backup server, run the command below labled “computer_receiving_backup”.  On the computer you’re backing up run the command belwo labled “computer_needing_backup”.  Change 9000 to any number you like, that’s the port to send & receive the data on.  You can do multiple backups at once by using different port numbers on each computer getting backed up.

computer_receiving_backup% nc -l 9000 | dd of=~/Desktop/image.img

computer_needing_backup% dd if=/dev/sda | nc 9000