- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problems compiling clamav
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2008 08:39 AM
08-15-2008 08:39 AM
I am trying to install latest version of clamav. While running make I get this:
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I./nsis -I./lzma -I/usr/local/include -g -O2
-MT others.lo -MD -MP -MF .deps/others.Tpo -c others.c -fPIC -DPIC -o .libs/ot
hers.o
In file included from others.c:62:
/usr/local/include/pthread.h:285: error: conflicting types for 'pthread_t'
/usr/include/sys/signal.h:108: error: previous declaration of 'pthread_t' was he
re
/usr/local/include/pthread.h:286: error: conflicting types for 'pthread_attr_t'
/usr/include/sys/sigevent.h:65: error: previous declaration of 'pthread_attr_t'
was here
/usr/local/include/pthread.h:357: error: conflicting types for 'pthread_kill'
/usr/include/sys/signal.h:222: error: previous declaration of 'pthread_kill' was
here
/usr/local/include/pthread.h:357: error: conflicting types for 'pthread_kill'
/usr/include/sys/signal.h:222: error: previous declaration of 'pthread_kill' was
here
make[3]: *** [others.lo] Error 1
make[3]: Leaving directory `/extra/clamav-0.93.3/libclamav'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/extra/clamav-0.93.3/libclamav'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/extra/clamav-0.93.3'
make: *** [all] Error 2
#
I have some different sets of pthread libraries and includes
Regards
Lars Ebeling
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2008 10:41 AM
08-15-2008 10:41 AM
Re: Problems compiling clamav
But you should also check to make sure that /usr/local/include/pthread.h matches the official
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2008 11:15 AM
08-15-2008 11:15 AM
Re: Problems compiling clamav
Ihave pthread.h in /usr/include /usr/local/include and /usr/include/sys and all different
Lars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2008 11:56 AM
08-15-2008 11:56 AM
Re: Problems compiling clamav
points to a problem with the GCC
installation, which can be caused by an OS or
(HP) C compiler upgrade|patch which affects
the system header files, but does not get the
GCC header files updated accordingly.
Re-installing GCC will normally solve
problems of that type.
> I have some different sets of pthread
> libraries and includes
From where did they all come?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2008 11:56 AM
08-15-2008 11:56 AM
Re: Problems compiling clamav
Of course. :-)
You need to compare the types of
Look for the declarations of pthread_t, pthread_attr_t and pthread_kill.
Then compare with
There may be multiple definitions with #if, so look for more than one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2008 02:24 AM
08-16-2008 02:24 AM
Re: Problems compiling clamav
But lately I have had problems with these pthread things.
I have tried to upgrade spamassassin and now clamav.
Lars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2008 03:21 AM
08-16-2008 03:21 AM
Re: Problems compiling clamav
Just look at (paste) the lines in the error messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2008 04:11 AM
08-16-2008 04:11 AM
Re: Problems compiling clamav
Lars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2008 07:06 AM
08-16-2008 07:06 AM
Re: Problems compiling clamav
ConflictswithVendorImplementation
There can be a conflict between the Pth "pthread.h" header and a possibly existing vendor "/usr/include/pthread.h" header which was implicitly included by some standard vendor headers(like "/usr/include/unistd.h"). When this occurs try to ``"#define"'' header-dependent values which prevent the inclusion of the vendor header.
Lars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2008 07:33 AM
08-16-2008 07:33 AM
Re: Problems compiling clamav
Well, until you show me, I can only guess.
Did you try reinstalling gcc as Steven suggested?
>What does this mean?
>`"#define"'' header-dependent values which prevent the inclusion of the vendor header.
This sound like the include guard.
What's the first #ifndef in the top of pthread.h in /usr/include/ /usr/local/include/ and /usr/include/sys/?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2008 07:46 AM
08-16-2008 07:46 AM
Re: Problems compiling clamav
# /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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2008 07:57 AM
08-16-2008 07:57 AM
Re: Problems compiling clamav
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'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2008 08:03 AM
08-16-2008 08:03 AM
Re: Problems compiling clamav
/usr/local/include/pthread.h:285
typedef struct pthread_st *pthread_t;
/usr/include/sys/signal.h:108
typedef int pthread_t;
Lars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2008 08:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2008 08:21 AM
08-16-2008 08:21 AM
Re: Problems compiling clamav
Lars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2008 08:27 AM
08-16-2008 08:27 AM
Re: Problems compiling clamav
There is only one set of libs, the official HP-UX ones and they agree with the official headers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2008 08:46 AM
08-16-2008 08:46 AM
Re: Problems compiling clamav
I am now recompiling
Lars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2008 09:02 AM
08-16-2008 09:02 AM
Re: Problems compiling clamav
Lars