Displaying 20 results from an estimated 204 matches for "errstr".
2007 Dec 26
2
[LLVMdev] Instantiating modules from .bc files
...well at that, but I've been trying
to figure out how to take the output from llvm-gcc and actually use
it in another program.
I tried to get a module out of a file that I'd read in to it using
this code:
MemoryBuffer* memBuf = MemoryBuffer::getFile(filename, sizeof
filename, &errStr);
printf("errStr: %s\n", errStr.c_str());
BitcodeReader::BitcodeReader bcReader(memBuf);
Module* Mod = bcReader.materializeModule(&errInfo);
printf("errInfo: %s\n", errInfo.c_str());
verifyModule(*Mod, PrintMessageAction);
The errStr and the errInfo strings were empty, bu...
2007 Dec 26
0
[LLVMdev] Instantiating modules from .bc files
...er and writer modules. The functions exposed in ReaderWriter.h
are the public interface to that functionality.
> I tried to get a module out of a file that I'd read in to it using
> this code:
>
> MemoryBuffer* memBuf = MemoryBuffer::getFile(filename, sizeof
> filename, &errStr);
> printf("errStr: %s\n", errStr.c_str());
> BitcodeReader::BitcodeReader bcReader(memBuf);
> Module* Mod = bcReader.materializeModule(&errInfo);
> printf("errInfo: %s\n", errInfo.c_str());
>
> verifyModule(*Mod, PrintMessageAction);
>
> The errStr...
2007 Dec 27
1
[LLVMdev] Instantiating modules from .bc files
...nctions exposed in
> ReaderWriter.h are the public interface to that functionality.
>
>> I tried to get a module out of a file that I'd read in to it using
>> this code:
>>
>> MemoryBuffer* memBuf = MemoryBuffer::getFile(filename, sizeof
>> filename, &errStr);
>> printf("errStr: %s\n", errStr.c_str());
>> BitcodeReader::BitcodeReader bcReader(memBuf);
>> Module* Mod = bcReader.materializeModule(&errInfo);
>> printf("errInfo: %s\n", errInfo.c_str());
>>
>> verifyModule(*Mod, PrintMessageActio...
2009 Oct 06
0
[LLVMdev] 2.6/trunk Execution Engine question
...<GlobalVariable>(mod->getOrInsertGlobal("TestGV",
Type::getInt32Ty(getGlobalContext())));
gv->setInitializer(ConstantInt::get(
Type::getInt32Ty(getGlobalContext()), 24601));
ModuleProvider* modp = new ExistingModuleProvider(mod);
InitializeNativeTarget();
std::string errstring;
ExecutionEngine* eeng = ExecutionEngine::create(modp, false, &errstring,
CodeGenOpt::Default, true);
if ( eeng == NULL )
{
raw_cout << errstring << "\n";
exit(-1);
}
raw_cout << "Fixing to get pointer to global\n";
void* gvp = eeng->get...
2009 Oct 06
1
[LLVMdev] 2.6/trunk Execution Engine question
On Tue, Oct 6, 2009 at 5:49 PM, Reid Kleckner <rnk at mit.edu> wrote:
>> Also, the null pointer is coming from a call to JCE->allocateSpace().
>> This is a virtual function; I'm trying to discover what subclass it
>> is.
>
> So, there's JITEmitter::allocateSpace which overrides
> JITCodeEmitter::allocateSpace(), but *most* of the time it just calls
>
2008 May 22
3
[LLVMdev] How to get a return type of a function with LLVM-C API
...(from bitcode file) with
LLVM-C API, but there seems no appropriate API to do that.
I've tried to do that with following code,
----
LLVMModuleRef M;
LLVMMemoryBufferRef MemBuf;
LLVMValueRef F; // Function
LLVMTypeRef RetTy;
char *ErrStr;
//
// -- Load shader module
//
ret = LLVMCreateMemoryBufferWithContentsOfFile(
input,
&MemBuf, // [out]
&ErrStr); // [out]
ret = LLVMParseBitcode(
MemBuf,
&M, // [out]
&ErrStr); // [out]
F = LLVMGetFirstFunction(M)...
2005 Jan 13
4
Manager API !!!!!!!!!
Hello all
Has anyone had any success with the Manager API ?
I am trying to check an extension status without too much luck I have
the following
<?php
$fp = fsockopen("127.0.0.1", 5038, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "Action: Login\r\n";
$out .= "UserName: simon\r\n";
$out .= "Secret: xxxxxx\r\n\r\n";
fwrite($fp, $out);
$in = "...
2013 Jul 17
2
Redirecting libguestfs error messages
Hi,
When I register a callback for events with this function call:
eh = guestfs_set_event_callback(g, message_callback, GUESTFS_EVENT_ALL, 0,
dev);
Shouldnt it capture and redirect messages like this to message_callback():
"libguestfs: error: lstat: /.Trash: No such file or directory"
I still get them in stderr ..
Thanks,
Or
2009 Sep 21
2
How to generate additional debug messages for sshd gssapi failures?
I'm trying to troubleshoot gssapi_with_mic authentication with OpenSSH
5.2p1 on FreeBSD 8.0.
If I run sshd with maximum debug "sshd -ddd" the most detail I get is:
GSSAPI MIC check failed
That comes from line 282 in auth2-gss.c
279 if (!GSS_ERROR(PRIVSEP(ssh_gssapi_checkmic(gssctxt, &gssbuf, &mic))))
280 authenticated =
2016 Jun 11
3
SegFault creating a ExecutionEngine
My code to create an ExecutionEngine is segfaulting:
std::string errStr;
llvm::ExecutionEngine * ee = llvm::EngineBuilder(
unique_ptr<llvm::Module>(module) )
.setErrorStr( &errStr ) //line 1618
.setEngineKind( llvm::EngineKind::JIT )
Where module is a `llvm::Module*`. This is code I'm migrating from 3.3
to 3.8. Since the deletion erro...
2010 Aug 12
1
[LLVMdev] error when trying to create a JIT execution engine "Interpreter has not been linked in"
I've been following this guide: http://llvm.org/docs/tutorial/LangImpl4.html
and am getting an error when trying to create an execution engine. When
running this code:
executionEngine = llvm::EngineBuilder(module).setErrorStr(&errStr).create();
errStr contains: "Interpreter has not been linked in." I'm using this
command to build:
g++ -g errors.o lexer.o parser.o lang.o main.o -rdynamic `llvm-config
--cppflags --ldflags --libs core jit native` -O3 -o llvm-lisp
(my whole Makefile: http://pastebin.com/v33V48bH)
I...
2005 Dec 28
2
PHP Manager
...,
I have a small problem to execute Asterisk Commands in Asterisk
Manager using PHP.
I am able to run all Asterisk Manager command but the problem is
comming with asterisk command.
here is the code i am trying to run.
<?php
$socket = fsockopen("localhost","5038", $errno, $errstr, $timeout);
fputs($socket, "Action: Login\r\n");
fputs($socket, "UserName: 1212\r\n");
fputs($socket, "Secret: 1212\r\n\r\n");
fputs($socket, "Action: Command\r\n");
fputs($socket, "Command: reload\r\n\r\n"); #Working well
fputs($socket, "...
2018 Apr 19
2
How to set Target/Triple of ExecutionEngine
...ct `{i8,i64}` is not
getting the same layout as the ABI expects.
I setup my engine/module like this:
llvm::SmallVector<std::string,2> mattrs;
llvm::EngineBuilder builder{ unique_ptr<llvm::Module>(module) };
llvm::ExecutionEngine * ee = builder.
setErrorStr( &errStr ).
setEngineKind( llvm::EngineKind::JIT ).
setTargetOptions( topts ).
create(builder.selectTarget(
llvm::Triple(llvm::Triple::normalize(platform::target->triple)), "", "",
mattrs ));
module->setDataLayout( ee->getDataLayout() );
Where `modu...
2007 Dec 06
3
XenApi
...onnection to both the unix socket and the inet socket and write/read
data. The problem is i always get the same responce back, also the responce
back is in html, shouldnt it be in xml format? At the moment this is my
code
$fp = fsockopen("unix:///var/run/xend/xen-api.sock", 0, $errno, $errstr,
30);
if (!$fp) {
echo "$errstr ($errno)\n";
} else {
$request = xmlrpc_encode_request("session.login_with_password",
array("root","none"));
fwrite($fp, $request."\n");
while (!feof($fp)) {
echo fgets($f...
2003 Aug 13
1
How do i configure so an incoming call triggers an http request?
Hi all,
I'm about to start setting up my first asterisk/cti system in our test lab.
I've read through all the documentation I can find and relevant posts in the
list archives but can't seem to find anything explaining how to go about
initiating an http request upon an incoming call.
I basically want asterisk to request an uri on our intranet, which will pass
call details to our
2005 Jun 10
1
Convert extensions.conf INTO MySQL script
I swear I read somewhere on one of the MANY pages that there is a script out
there that can read the extensions.conf file and create the MySQL DB records
on the fly. Anyone know where I look for such a thing?
Sure speeds up migration!
Chris Coulthurst
chris@shuksan.com
2013 Feb 23
0
click2call with AMI?
...-internal";
$waitTime = "20";
$timeout = 20000;
$priority = "1";
$maxRetry = "2";
$pos = strpos($number, "local");
if ($number == null):
exit();
endif;
if ($pos === false) :
$errno = 0;
$errstr = 0;
$callerId = $number;
$oSocket = fsockopen("localhost", 5038, &$errno, &$errstr, 20);
if (!$oSocket)
{
echo "$errstr ($errno)<br>\n";
} else
{
fputs($oSocket, "Action: login\r\n&quo...
2013 Jul 17
0
Re: Redirecting libguestfs error messages
...pt you set the
NO_ENVIRONMENT flag.
if (guestfs_parse_environment (g) == -1) {
/* see below ... */
(4) For guestfs_parse_environment and all other libguestfs calls, you
should check the return codes, and handle errors, like this:
if (guestfs_parse_environment (g) == -1) {
const char *errstr = guestfs_last_error (g);
int errnum = guestfs_last_errno (g);
fprintf (logfp, "error: %s", errstr);
if (errnum > 0)
fprintf (logfp, " (%s)", strerror (errnum));
fprintf (logfp, "\n");
}
It's usually helpful to put all of that in a separ...
2011 Aug 01
1
Problems with AMI connections (Asterisk 1.8.3.2)
...et
permit=0.0.0.0/255.255.255.0
read = system,call,log,verbose,command,agent,user,originate
write = system,call,log,verbose,command,agent,user,originate
*This is my code in PHP*:
<?php
function ast_claves(){
$socket =
fsockopen('192.168.25.18','5038',$errno,$errstr,10);
fwrite($socket,"Action: Login\r\n");
fwrite($socket,"UserName: mark\r\n");
fwrite($socket,"Secret: mysecret\r\n\r\n");
fwrite($socket,"Action: DBPut\r\n");
fwrite($socket,"Family:...
2009 Nov 25
0
[LLVMdev] [llvm-commits] [llvm] r89765 - in /llvm/trunk: include/llvm/System/Path.h lib/System/Unix/Path.inc lib/System/Win32/Path.inc
...argv[0] from program startup.
>>> @@ -454,6 +454,24 @@
>>> }
>>>
>>> bool
>>> +Path::isSpecialFile() const {
>>> + // Get the status so we can determine if its a file or directory
>>> + struct stat buf;
>>> + std::string *ErrStr;
>>> +
>>> + if (0 != stat(path.c_str(), &buf)) {
>>> + MakeErrMsg(ErrStr, path + ": can't get status of file");
>>> + return true;
>>> + }
>>> +
>>> + if (S_ISDIR(buf.st_mode) || S_ISREG(buf.st_mode)) {
>&...