473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Gnutls & libgcrypt - Debian VS Redhat ?

Hello

This:

#include <gnutls.h>
#include <gcrypt.h>
#include <errno.h>
#include <pthread.h>
GCRY_THREAD_OPTION_PTHREAD_IMPL;

int main()
{
/* The order matters.
*/
gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
gnutls_global_init();
}


Compiles flawlessly on debian 5 64bit..

However, on Cent OS 5 64 bit..
With an identical setup and gcc produces:

[root@localhost code]# gcc -lpthread test.cpp -O -lgnutls -lssl -lcurl -pthread
test.cpp: In function int gcry_pthread_mutex_init(void**):
test.cpp:5: error: malloc was not declared in this scope
test.cpp:5: error: free was not declared in this scope
test.cpp: In function int gcry_pthread_mutex_destroy(void**):
test.cpp:5: error: invalid conversion from void* to pthread_mutex_t*
test.cpp:5: error: initializing argument 1 of int pthread_mutex_destroy(pthread_mutex_t*)
test.cpp:5: error: free was not declared in this scope
test.cpp: In function int gcry_pthread_mutex_lock(void**):
test.cpp:5: error: invalid conversion from void* to pthread_mutex_t*
test.cpp:5: error: initializing argument 1 of int pthread_mutex_lock(pthread_mutex_t*)
test.cpp: In function int gcry_pthread_mutex_unlock(void**):
test.cpp:5: error: invalid conversion from void* to pthread_mutex_t*
test.cpp:5: error: initializing argument 1 of int pthread_mutex_unlock(pthread_mutex_t*)
[root@localhost code]#

Might anyone be able to shed any light on what and why,
I need to get this rectified.
Jun 24 '09 #1
0 1378

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Robert Peake | last post by:
Hi All, I'm interested in turning this library: http://freshmeat.net/projects/libgcrypt/ Which does GnuPG (Pretty Good Privacy) cryptography -- into a PHP module. Does anyone know if this...
2
by: Debian User | last post by:
With redhat deciding go make some real money from the fruits of their labour, management decided to try out debian. This leads me to my possible future problem: is there a way to create debian...
2
by: adamg | last post by:
Hello My native distribution is Linux Debian. I have written the C++ multithreaded application (using ptypes libs). After compilation on debian everything works ok (6 threads workinng) but...
7
by: Oliver Elphick | last post by:
Debian packages of PostgreSQL 7.4beta4 are available in the experimental section of the Debian archive. -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight,...
0
by: Linuxserverguru | last post by:
All what you need at one place. Compare between Redhat, Debian, FreeBSD, Windows, Mandrake, SUSE http://www.comserver.net
2
by: waitan | last post by:
#include <algorithm> #include <iostream> #include <fstream> #include <string> #include <vector> #include <sstream> #include <iterator> #include <iomanip> using namespace std;
3
by: Maciek | last post by:
All, I'm having a problem building a library (VMime) with Visual .NET 2003. It's including, among others, gnutls.h from the GNU TLS library and I'm getting syntax errors in that file. For...
119
by: Rhino | last post by:
One of my friends, Scott, is a consultant who doesn't currently have newsgroup access so I am asking these questions for him. I'll be telling him how to monitor the answers via Google Newsgroup...
0
by: carex | last post by:
Hi, A few years ago (2000 ?) I installed an oracle client on a linux server (oracle8iR2 on Debian Woody) and everything went beautifully. (with DBD::Oracle) Now, I need an oracle client on...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.