Operating System - HP-UX
1753482 Members
4205 Online
108794 Solutions
New Discussion юеВ

Problems compiling clamav

 
SOLVED
Go to solution
Lars Ebeling
Frequent Advisor

Re: Problems compiling clamav

I haven't reinstalled gcc. This is done at home as hobby. I don't have any good backups. My tapedeck i bad. I have an old D380 where I among others run my mailserver.

# /usr/include/pthread.h
#ifndef _PTHREAD_INCLUDED /* allows multiple inclusion */

/usr/include/sys/pthread.h

#ifndef _SYS_PTHREAD_INCLUDED

/usr/local/include/pthread.h

#ifndef _PTH_PTHREAD_H_

Lars
Dennis Handly
Acclaimed Contributor

Re: Problems compiling clamav

So to skip the include of the official pthread header you should compile with -D_PTHREAD_INCLUDED.
I'm not sure if this will work since there is no message pointing to .

So as I asked before, what's on:
/usr/local/include/pthread.h:285: error: conflicting types for 'pthread_t'
/usr/include/sys/signal.h:108: error: previous declaration of 'pthread_t'
Lars Ebeling
Frequent Advisor

Re: Problems compiling clamav

Sorry I didn't understand your question.

/usr/local/include/pthread.h:285
typedef struct pthread_st *pthread_t;

/usr/include/sys/signal.h:108

typedef int pthread_t;

Lars
Dennis Handly
Acclaimed Contributor
Solution

Re: Problems compiling clamav

Your gnu header is garbage. A pthread_t is not a pointer.

You could try renaming it to pthread.h.save and try recompiling.
Lars Ebeling
Frequent Advisor

Re: Problems compiling clamav

I'll try that. How about the libraries?

Lars
Dennis Handly
Acclaimed Contributor

Re: Problems compiling clamav

>How about the libraries?

There is only one set of libs, the official HP-UX ones and they agree with the official headers.
Lars Ebeling
Frequent Advisor

Re: Problems compiling clamav

I downloaded GNU pthread and had a look. There is a file pthread.h.in which has the same definition as my /usr/local/include/pthread.h


I am now recompiling

Lars
Lars Ebeling
Frequent Advisor

Re: Problems compiling clamav

I am now recompiling. I think it works. I have remove the /usr/local pthread libs and include

Lars