pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/40756: pkgsrc current (2009-02-25) pkgtools/pbulk fails on OpenSolaris/SPARC



>Number:         40756
>Category:       pkg
>Synopsis:       pkgsrc current (2009-02-25) pkgtools/pbulk fails on 
>OpenSolaris/SPARC
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 25 19:00:00 +0000 2009
>Originator:     Palle Lyckegaard
>Release:        
>Organization:
>Environment:
SunOS odin 5.11 snv_90 sun4u sparc SUNW,Ultra-5_10

>Description:
Trying to create a pbulk environment. While building pbulk the following error 
message appears:

gcc -O  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized 
-Wreturn-type -Wpointer-arith -Wcast-qual -Wwrite-strings -Wswitch -Wshadow 
-Werror  -DHAVE_NBCOMPAT_H=1 
-I/home/palle/data/pkgsrc/pkgsrc/pkgtools/pbulk/work/libnbcompat -c event.c
In file included from /usr/include/sys/stream.h:42,
                 from /usr/include/netinet/in.h:66,
                 from pbulk.h:34,
                 from event.c:48:
/usr/include/sys/poll.h:44: error: redefinition of 'struct pollfd'
/usr/include/sys/poll.h:50: error: conflicting types for 'nfds_t'
/home/palle/data/pkgsrc/pkgsrc/pkgtools/pbulk/work/libnbcompat/nbcompat/poll.h:35:
 error: previous declaration of 'nfds_t' was here
/usr/include/sys/poll.h:142: error: conflicting types for 'poll'
/home/palle/data/pkgsrc/pkgsrc/pkgtools/pbulk/work/libnbcompat/nbcompat/poll.h:62:
 error: previous declaration of 'poll' was here
*** Error code 1

>How-To-Repeat:

>Fix:
The following patch solves the problem (pkgtools/pbulk/files/pbulk/lib/event.c):

--- event.c.orig        Wed Feb 25 19:54:49 2009
+++ event.c     Wed Feb 25 19:54:33 2009
@@ -38,7 +38,6 @@
 #ifdef __sun
 #include <sys/filio.h>
 #endif
-#include <nbcompat/poll.h>
 #include <nbcompat/time.h>
 #include <nbcompat/stdlib.h>
 #include <nbcompat/unistd.h>



Home | Main Index | Thread Index | Old Index