You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@etch.apache.org by I Razzak <im...@hva.nl> on 2012/09/24 14:09:33 UTC

Helloworld C example problem

Hi,

I'm having trouble getting the C helloworld example to run. I've tried pretty much everything and i always get the same output. Can't figure out what i'm doing wrong. I'm running on centos 5.5 32bit.

Thanks.

Output:
[user1@srv target]$ ./helloworld-server
helloworld-server: /home/user1/etch-build/apache-etch-1.2.0-incubating-src/binding-c/runtime/c/src/main/bindings/msg/etch_id_name.c:73: new_id_name: Assertion `result != -1' failed.
SuccessAborted

RE: Helloworld C example problem

Posted by I Razzak <im...@hva.nl>.
Hi Martin,

It worked!

I was kind of confused since the path didn't quite match as described in the 'README.txt' So i was pointing it towards '<ETCH_EXTERNAL_DEPENDS>/apr/1.4.5/bin/apriconv'.

The correct path had to be a folder. '<ETCH_EXTERNAL_DEPENDS>/apr/1.4.5/lib/iconv'.

I'm still new to this so thank you so much for your help.

Best regards,

Imad
________________________________
From: Martin Veith [Martin.Veith@bmw-carit.de]
Sent: 24 September 2012 17:44
To: etch-user@incubator.apache.org
Subject: RE: Helloworld C example problem

Hi,

it seems your Apache Portable Runtime (APR) environment is not configured appropriately. The Etch c-binding is based on the APR platform abstraction.

In order to get it running you have to set the APR_ICONV_PATH environment variable.
As you are building Etch from source the path should be  <YOUR ETCH_EXTERNAL_DEPENDS FOLDER>/apr/1.4.5/iconv

Hope this helps.

Cheers,
Martin

From: I Razzak [mailto:imad.razzak@hva.nl]
Sent: Monday, September 24, 2012 2:10 PM
To: etch-user@incubator.apache.org
Subject: Helloworld C example problem


Hi,

I'm having trouble getting the C helloworld example to run. I've tried pretty much everything and i always get the same output. Can't figure out what i'm doing wrong. I'm running on centos 5.5 32bit.

Thanks.

Output:
[user1@srv target]$ ./helloworld-server
helloworld-server: /home/user1/etch-build/apache-etch-1.2.0-incubating-src/binding-c/runtime/c/src/main/bindings/msg/etch_id_name.c:73: new_id_name: Assertion `result != -1' failed.
SuccessAborted

RE: Helloworld C example problem

Posted by Martin Veith <Ma...@bmw-carit.de>.
Hi,

it seems your Apache Portable Runtime (APR) environment is not configured appropriately. The Etch c-binding is based on the APR platform abstraction.

In order to get it running you have to set the APR_ICONV_PATH environment variable.
As you are building Etch from source the path should be  <YOUR ETCH_EXTERNAL_DEPENDS FOLDER>/apr/1.4.5/iconv

Hope this helps.

Cheers,
Martin

From: I Razzak [mailto:imad.razzak@hva.nl]
Sent: Monday, September 24, 2012 2:10 PM
To: etch-user@incubator.apache.org
Subject: Helloworld C example problem


Hi,

I'm having trouble getting the C helloworld example to run. I've tried pretty much everything and i always get the same output. Can't figure out what i'm doing wrong. I'm running on centos 5.5 32bit.

Thanks.

Output:
[user1@srv target]$ ./helloworld-server
helloworld-server: /home/user1/etch-build/apache-etch-1.2.0-incubating-src/binding-c/runtime/c/src/main/bindings/msg/etch_id_name.c:73: new_id_name: Assertion `result != -1' failed.
SuccessAborted