LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-21-2014, 10:03 AM   #1
jefsa
Member
 
Registered: Mar 2012
Posts: 83
Blog Entries: 1

Rep: Reputation: Disabled
Error running program


Hello All,

It was suggested by another member to post in this section.

Background:
We have some new machines where we are starting to install Slackware 14.1 that comes with Tcl 8.6. Our current running machines have Slackware 12.2 running a C program in conjunction with Tcl 8.5. We have copied this program to the new machine.

The issue is when we run the program the gui appears but function buttons on the gui do not operate, returning back to the console screen.

At first the program would not compile correctly stating errors on the console screen. With the help of the Forum (programming section) I was able to recompile with no errors.

When I attempted to run the program the gui appears but pressing a function button I got the following message on the console screen:

access control disabled, clients can connect from any host
alloc: invalid block: 0x8378e0: 0 0
bytex/go_bytex: line 4: 27901 aborted bytex
access control enabaled, only authorized clients can connect

It was stated by the member that this has something to do with x.

My experience is limited,thanks for any help!!

Regards,

Jeff
 
Old 11-21-2014, 12:00 PM   #2
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
you are on Slackware, have a started X session, XFCE, KDE, whatever
you have your program, which has compiled successfully

you are in a terminal, konsole, xterm, what ever
and you run the program by , you have not changed to an other users or use su,
and you are a user, not root?

Code:
./yourprogram

access control disabled, clients can connect from any host
alloc: invalid block: 0x8378e0: 0 0
bytex/go_bytex: line 4: 27901 aborted bytex
access control enabaled, only authorized clients can connect
what does this program do?

read about xhost

https://wiki.archlinux.org/index.php/Xhost

if you do not want to read, try
xhost +localhost

however, this should not be required and possible you have something wrong configured
 
Old 11-21-2014, 12:48 PM   #3
jefsa
Member
 
Registered: Mar 2012
Posts: 83

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hi a4z,

I am logged under root and from the CLI, I type in "go_bytex" to start the program. In real
operation all assigned users, using there own password would be able to from multiple terminals get the same qui as the "root" user. We use KDE and when all is working correctly
we make a link between go_bytex and a icon off the KDE Desktop, eliminating the need to use the CLI.

That is another issue we are having because Slackware 14.1 also has a KDE upgrade and we
have a problem creating this link with it. One thing at a time however, go_bytex
should still execute from the CLI.

I vi go_bytex and added the localhost to xhost +. This caused a error stating "no protocol specified" with no gui at all. I changed it back and am back where I started from:
#!/bin/bash
xhost +
bytex
xhost -

I will check out your website but I need help, got to get this working!

Thanks.

Regards,

Jeff
 
Old 11-21-2014, 02:04 PM   #4
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
no protocol specified
sounds like you are not in a X session, or access via ssh, or h

you need to have a x session running,

start kde,
open a terminal (it is called console)
run your program as normal user

does it work?
 
Old 11-21-2014, 02:31 PM   #5
jefsa
Member
 
Registered: Mar 2012
Posts: 83

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hi a4z

We are not at the point where we would add actual users. I am not clear about "start kde"?
When I login as root the KDE Desktop comes up then open up a terminal and enter go_bytex.

The "no protocol specified" message only appeared when I added localhost to xhost +;
xhost +localhost. I took this out and now have under go_bytex:
#!/bin/bash
cd /bytex
xhost +
bytex
xhost -

Thanks.

Regards,

Jeff
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error in running a program sarasari Linux - Newbie 3 03-08-2014 09:55 AM
error while running the lex program in fedora16 itsnageshv Linux - Software 1 07-10-2012 03:45 AM
Getting interface error while running a C program Avanti Programming 1 02-07-2012 11:23 AM
[SOLVED] Error Running a program in C Nabeel Programming 1 07-03-2011 03:04 AM
Error while running C++ program smartgupta Programming 2 10-08-2008 01:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration