AgentC | 25 Jul 2010 21:00
Picon
Favicon

VLC and libavcodec !?


Hi, I'm really new with linux and I've a prob getting divx running with
totemplayer cause I didnt found a plugin. so I decided to use VLC
but I cant start it cause libavcodec.so is not the correct one I think.
VLC uses the symlink of libavcodec.so.51 but that won't work on my
machine. then I tried to redirect the symlink to so.52 , but that
also only works with normal mpeg and audio mp3-codec, all other
codecs arenot available, what can I do to get it running ?

sincerly

--
To unsubscribe from this list: send the line "unsubscribe linux-apps" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Sevana Oy | 26 May 2010 11:23
Picon
Favicon

AQuA Powered Voice Quality Monitoring Solution

Overview

 Asterisk-powered dialer software
 Web Interface
 UNIX/Linux Cron-based Schedule Logic
 Open-Source Code
 Graphing Monitoring Stats
 MySQL Database for Call Records

Current Features

 Dial by SIP or PSTN - Asterisk base capable of dialing via any medium
 Blast-Dialing - send multiple calls to 1 trunk for specified duration
   - No QoS/MOS scoring performed, designed for load testing
 QoS/MOS Test-Dialing
   - Ad-Hoc - perform on-demand test dials
   - Scheduled - unlimited schedules - hardware/software limited
   - Multiple "Test Applications" Possible: Current system designed to 
access conference bridge
       Simple Customized sequencing could allow testing through IVR menus, 
or other applications as required.
   - Dial MIRROR/Echo: Each dialer configured to respond to calls from 
another dialer by CallerID
       Pre-Deployment Option: Perform simple inter-dialer testing
 Reporting
   - Reports performance of scheduled tests over time
   - Detailed graphs over time
       MOS, PESQ, R-Value, Volume/Amplitude Difference
   - Sortable tables of results for all calls
   - Detailed View of each test call
(Continue reading)

Kent Ho | 11 Jan 2010 10:41
Picon
Favicon

RE: sudo selectively execute file, * wildcard on dir set with "(ALL) NOPASSWD:".


Removing * after / fixed the problem.

Thanks Dany.

________________________________
> Date: Tue, 5 Jan 2010 12:10:34 +0200
> From: danyd <at> direkt.ro
> To: garlumh <at> hotmail.com
> Subject: Re: sudo selectively execute file, * wildcard on dir set with "(ALL) NOPASSWD:".
>
>
>
>
>
>
>
>
>
> On 05.01.2010 11:08, Kent Ho wrote:
>
>
> Hi All,
>
> I'm experiencing a problem with sudo.
>
> sudo selectively execute file in a directory, * wildcard on dir set with "(ALL)
> NOPASSWD:".
>
> I created a script called "script1.sh" in a directory. When I execute this
(Continue reading)

Kent Ho | 5 Jan 2010 10:08
Picon
Favicon

sudo selectively execute file, * wildcard on dir set with "(ALL) NOPASSWD:".


Hi All,

I'm experiencing a problem with sudo.

sudo selectively execute file in a directory, * wildcard on dir set with "(ALL)
NOPASSWD:".

I created a script called "script1.sh" in a directory.   When I execute this
script with sudo, it ask me for password which not suppose to happen.  I break
out with ctrl+c.

I then copy script1.sh to a new file in the same directory as "script2.sh".
Now I execute "script1.sh" again with sudo, now it will execute.

There is no change on script1.sh, All I done is created a new file in the
directory.  But now sudo do not ask me password any more.

At this point I can execute both scripts with sudo with no password.  Which is
normal.

Now I delete "script2.sh".  Now the directory has only 1 file again
"script1.sh".  I execute script1.sh now it will ask me for password again.

All executable file should be executable regardless, I don't know why this is
happening.  Number of files in directory affects sudo?

Version-Release number of selected component (if applicable):
[mdrop <at> c-in3sf--02-04 bin]$ rpm -qa | grep sudo
sudo-1.6.9p17-5.el5
(Continue reading)

Leslie Rhorer | 26 May 2009 10:45
Picon
Favicon

Application won't compile

I downloaded an application (mfs-tools) which I am trying to compile on my
Debian "Lenny" system, but the make is failing with the following errors:

gcc -DHAVE_CONFIG_H -I. -I../include -I../include    -g -O2 -MT
readwrite.o -MD -MP -MF .deps/readwrite.Tpo -c -o readwrite.o readwrite.c
readwrite.c: In function 'tivo_partition_read':
readwrite.c:146: error: 'off64_t' undeclared (first use in this function)
readwrite.c:146: error: (Each undeclared identifier is reported only once
readwrite.c:146: error: for each function it appears in.)
readwrite.c:146: error: expected ')' before 'sector'
readwrite.c:146: error: expected ')' before 'sector'
readwrite.c: In function 'tivo_partition_write':
readwrite.c:261: error: 'off64_t' undeclared (first use in this function)
readwrite.c:261: error: expected ')' before 'sector'
readwrite.c:261: error: expected ')' before 'sector'
make[1]: *** [readwrite.o] Error 1
make[1]: Leaving directory `/downloads/software/mfstools-src/lib'
make: *** [all-recursive] Error 1

I've searched for the error, and I found some background information, but no
clear suggestions on how to resolve the issue.  I tried setting the
variable:

CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"

and then running the configure with

./configure --enable-debug

but I still get the same error.  Any ideas?
(Continue reading)

Srinivas G. | 30 Mar 2009 19:29
Picon

Is it possible to use the FreeBSD libthr.a library file on a Redhat Linux box?

Dear All,

I have written an application where I have used the libpthread library
for creating the pthreads. However, to get the maximum optimization, I
want to use the libthr.a library instead of libpthread library. However,
when I tried to use on my Redhat box, I end up with following errors.

../lib/linux/libthr.a(thr_sem.o): In function `_sem_init':
thr_sem.c:(.text+0x100): undefined reference to `ksem_init'
thr_sem.c:(.text+0x115): undefined reference to `ksem_destroy'
../lib/linux/libthr.a(thr_sem.o): In function `_sem_destroy':
thr_sem.c:(.text+0x216): undefined reference to `ksem_destroy'
../lib/linux/libthr.a(thr_sem.o): In function `_sem_timedwait':
thr_sem.c:(.text+0x2ad): undefined reference to `ksem_timedwait'
../lib/linux/libthr.a(thr_sem.o): In function `_sem_wait':
....
....
....

collect2: ld returned 1 exit status
make: *** [target] Error 1

I understand that the "ksem_init" is not available on the Redhat box.
Then, I have tried to use the libc.so.7 from FreeBSD. I have included
the libc.so.7 in my application to getridof the above undefined
references. Even though, I end up with the following errors.

/usr/bin/ld: errno <at>  <at> FBSD_1.0: TLS definition in /lib/libc.so.6 section 
.tbss mismatches non-TLS definition in ../lib/linux/libc.so section 
.bss
(Continue reading)

Srinivas G. | 17 Mar 2009 13:56
Picon

Non Portable pthread (-np) API for thread creation in suspend mode

Dear All,

I have implemented a threading program using the pthread library on CentOS - 5.2 Linux system. (The CentOS
is an Enterprise Linux distribution based on the freely available sources from Red Hat Enterprise
Linux.) However, I need to create a pthread that is initially suspended. But, I did not find any API in the
pthread library which does the my requirement. So, I googled and found some of the FreeBSD thread API which
is as follows.

pthread_attr_setcreatesuspend_np
pthread_suspend_np
pthread_resume_np 

pthread_attr_setcreatesuspend_np  - prepare attribute for creation of suspended thread. I have also
seen that the "_np" stands for "non portable" API. (The functions with the pthread_ prefix and _np suffix
are not portable extensions to POSIX threads.)

My question is, how can I use the "_np" API on my Linux box. I guess, the "_np" API is available in "libthr"
shared library. So, I tried to download the "libthr" shared library, but there is no luck to me. 

I have also one more question, Shall I use the "libthr" shared library on my CENTOS without affecting the
"libpthread" library. If possible, please suggest me.

I can also able to implement the suspend and resume functionality with the following mechanism. But I have
also seen that with "libthr" we get better performance than "libpthread". Please look at the following
link. That is the reason, I want to use the "libthr" on my CENTOS Linux box.

http://www.dslreports.com/forum/r19082719-FreeBSD-libthr-libpthread

static int ready_to_go = 0;
static pthread_mutex_t suspend_mutex = PTHREAD_MUTEX_INITIALIZER;
(Continue reading)

Qiuyang Wu | 2 Mar 2009 22:10

pread/pwrite bug on linux (RHEL)?


Hi All,

Are there any known bugs with pread/pwrite on RHEL Linux when the disk partition is close to full?

Reduced a complex application fatal down to a simple program just opens a regular file and performs 1M
sequential pwrite() of size 8KB blocks; at every 100th write, does a pread() to load the very first 8KB
block and validate its content still matching what was originally written.

What I observed are the following when running on different machines and writing/reading to a disk
partition nearly full with slightly more than 1GB of free space according to 'df' (the program is the only
process accessing the disk) -

* Linux 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux  (RHEL4)

BEHAVIOR: pwrite() works for many iterations, then pread() suddenly returns data of the requested size
but filled with 0's, and strerror shows errno="No such file or directory", condition
      if(size_to_read != pread(fd, buf, size_to_read, ...)) ...
is not triggered and application has to check errno immediately after every call to pread.

CONCLUSION: serious bug, why does pread() return the expected size filled with 0? and why doesn't pwrite()
fail earlier so application has a chance to bail out and stop pushing more data to the file?

* Linux 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux (RHEL5)

BEHAVIOR: pwrite() works for much fewer iterations, then pread() errors out again with errno="No such
file or directory", and condition (size_to_read!=pread(...)) is asserted at the meantime, which is
slightly better but application still very hard to recover.

CONCLUSION: Bug, still, pwrite() should error out earlier if not enough space to commit data, instead of
(Continue reading)

Srinivas G. | 25 Feb 2009 14:14
Picon

Assembler errors in optimization level 3 (-O3) - gcc (4.1.2)

Dear All,

I have written an application where I used a few ASM statements in it.
The statements are very simple and they look like as shown below.

	asm
	(
		"next:\n\t"
#ifdef __x86_64__
		"pop %rax\n\t"
		"pop %rcx"		
#else
		"popl %eax\n\t"
		"popl %ecx"		
#endif
	);

      asm
	(
		"xorl %eax, %eax\n\t"
		"cpuid\n\t"
		"cmpl $4, %eax\n\t"		// check if cpuid
supports leaf 4
		"jl .single_core\n\t"		// Single core
		"movl $4, %eax\n\t"		
		"movl $0, %ecx\n\t"		// start with index = 0;
Leaf 4 reports
	);						// at least one
valid cache level
	asm
(Continue reading)

Srinivas G. | 20 Feb 2009 09:30
Picon

The MIT License Modules

Dear All,

We have used software (freeglut) which comes under MIT License, in one
of our applications. As far as I know, the MIT License is a very liberal
software license that was originally developed at the Massachusetts
Institute of Technology.

My question is, if I use the MIT license software, should we be
releasing our source code as well or can we still keep our source as
proprietary and sell it. Please let us know so that we can make a
decision whether to include the visualization features in our software
or not.

Thanks in advance.

With Regards,
Srinivas G

--
To unsubscribe from this list: send the line "unsubscribe linux-gcc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Srinivas G. | 18 Feb 2009 11:40
Picon

how to specify multiple input files for "objcopy" command

Dear All,

I am able to create a elf32-i386 format output file with "objcopy"
command by giving the binary file as input. The command is as follows.

# objcopy -I binary -O elf32-i386 -B i386 testing_file.cubin obj_out.o

	Where testing_file.cubin is binary object file which is
generated from nvcc compiler.

However, I am NOT able to generate the ONE output file from MULTIPLE
input files. Could any one suggest me for specifying the multiple input
files?

Is there any other command which does the same?

Thanks in advance.

With Regards,
Srinivas G
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Gmane