pkgsrc-Bugs archive

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

pkg/40396: multimedia/xvidcore compilation errors NetBSD 4.0 (i386)



>Number:         40396
>Category:       pkg
>Synopsis:       multimedia/xvidcore compilation errors NetBSD 4.0 (i386)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 14 12:45:00 +0000 2009
>Originator:     Robert Elz
>Release:        NetBSD 4.0_STABLE  (pkgsrc current within past 4-5 hours)
>Organization:
        Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 4.0_STABLE NetBSD 4.0_STABLE 
(JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 
kre%jade.coe.psu.ac.th@localhost:/usr/obj/4/kernels/JADE i386
Architecture: i386
Machine: i386
>Description:
        multimedia/xvidcore in src/xvid.c xvid_gbl_info()
        expects to be able to reference _SC_NPROCESSORS_CONF
        which seems to not exist on NetBSD 4.0

        That symbol is in <unistd.h> in current and NetBSD 5 (BETA)
        but is not prseent in NetBSD 4.

>How-To-Repeat:
        Attempt to build multimedia/xvidcore on a NetBSD 4 system.

        I use pkg_comp with libkver and NetBSD 4.0 release sets
        installed (not the x* sets, instead pkgsrc modular xorg
        for this build, but that's not relevant here).

../../src/xvid.c: In function 'xvid_gbl_info':
../../src/xvid.c:682: error: '_SC_NPROCESSORS_CONF' undeclared (first use in 
this function)
../../src/xvid.c:682: error: (Each undeclared identifier is reported only once
../../src/xvid.c:682: error: for each function it appears in.)
*** Error code 1

Stop.
make: stopped in 
/pkg_comp/obj/pkgsrc/multimedia/xvidcore/4x/xvidcore/build/generic

        before that error there are a whold bunch of redefined type
        warnings which should probably also get fixed ...

===> Building for xvidcore-1.2.1
  D: =build
  C: ./decoder.c
In file included from ../../src/decoder.c:36:
../../src/portab.h:77:1: warning: "intptr_t" redefined
In file included from /usr/include/sys/inttypes.h:46,
                 from /usr/include/inttypes.h:43,
                 from ../../src/portab.h:66,
                 from ../../src/decoder.c:36:
/usr/include/sys/stdint.h:87:1: warning: this is the location of the previous 
definition
In file included from ../../src/decoder.c:36:
../../src/portab.h:82:1: warning: "uintptr_t" redefined
In file included from /usr/include/sys/inttypes.h:46,
                 from /usr/include/inttypes.h:43,
                 from ../../src/portab.h:66,
                 from ../../src/decoder.c:36:
/usr/include/sys/stdint.h:92:1: warning: this is the location of the previous 
definition
  C: ./encoder.c
In file included from ../../src/encoder.h:31,
                 from ../../src/encoder.c:33:
../../src/portab.h:77:1: warning: "intptr_t" redefined
In file included from /usr/include/sys/inttypes.h:46,
                 from /usr/include/inttypes.h:43,
                 from ../../src/portab.h:66,
                 from ../../src/encoder.h:31,
                 from ../../src/encoder.c:33:
/usr/include/sys/stdint.h:87:1: warning: this is the location of the previous 
definition
In file included from ../../src/encoder.h:31,
                 from ../../src/encoder.c:33:
../../src/portab.h:82:1: warning: "uintptr_t" redefined
In file included from /usr/include/sys/inttypes.h:46,
                 from /usr/include/inttypes.h:43,
                 from ../../src/portab.h:66,
                 from ../../src/encoder.h:31,
                 from ../../src/encoder.c:33:
/usr/include/sys/stdint.h:92:1: warning: this is the location of the previous 
definition
  C: ./xvid.c
In file included from ../../src/decoder.h:30,
                 from ../../src/xvid.c:36:
../../src/portab.h:77:1: warning: "intptr_t" redefined
In file included from ../../src/xvid.c:32:
/usr/include/unistd.h:242:1: warning: this is the location of the previous 
definition
In file included from ../../src/decoder.h:30,
                 from ../../src/xvid.c:36:
../../src/portab.h:82:1: warning: "uintptr_t" redefined
In file included from /usr/include/sys/inttypes.h:46,
                 from /usr/include/inttypes.h:43,
                 from ../../src/portab.h:66,
                 from ../../src/decoder.h:30,
                 from ../../src/xvid.c:36:
/usr/include/sys/stdint.h:92:1: warning: this is the location of the previous 
definition

>Fix:
        For the reaal problem, find a way to avoid using _SC_NPROCESSORS_CONF
        on NetBSD 4.0.

        For the redefinitions, have portab.h not define stuff that
        isn't needed...



Home | Main Index | Thread Index | Old Index