pkgsrc-Bugs archive

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

pkg/45649: devel/py-subvertpy fails to build



>Number:         45649
>Category:       pkg
>Synopsis:       devel/py-subvertpy fails to build on NetBSD 5.1/amd64
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 24 19:55:00 +0000 2011
>Originator:     Greg Oster
>Release:        NetBSD 5.1_STABLE
>Organization:
>Environment:
        
        
System: NetBSD quad 5.1_STABLE NetBSD 5.1_STABLE (QUAD) #0: Sun Nov 20 15:55:06 
CST 2011  
oster@quad:/u1/builds/build194/src/obj/amd64/u1/builds/build194/src/sys/arch/amd64/compile/QUAD
 amd64
Architecture: x86_64
Machine: amd64
>Description:

        Building devel/py-subvertypy fails thusly:

...

cc -DNDEBUG -O2 -pipe -DHAVE_DB_185_H -I/usr/include -I/usr/pkg/include -O2 
-pipe -I/usr/pkg/include -I/usr/pkg/include/apr-1 -I/usr/include 
-I/usr/pkg/include -I/usr/pkg/include/apr-1 -I/usr/include -fPIC 
-I/usr/pkg/include/apr-1 -I/usr/pkg/include/apr-1 
-I/usr/pkg/include/subversion-1 -Isubvertpy -I/usr/pkg/include/python2.6 -c 
subvertpy/client.c -o build/temp.netbsd-5.1_STABLE-amd64-2.6/subvertpy/client.o

...

subvertpy/wc.c: In function 'get_pristine_copy_path':
subvertpy/wc.c:2271: warning: 'svn_wc_get_pristine_copy_path' is deprecated 
(declared at 
/usr/pkgsrc/devel/py-subvertpy/work.quad/.buildlink/include/subversion-1/svn_wc.h:4994)
cc -pthread -shared -L/usr/pkgsrc/lang/python26/work.quad/Python-2.6.7 
-L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib 
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -O2 -pipe -I/usr/pkg/include 
-I/usr/pkg/include/apr-1 -I/usr/include -I/usr/pkg/include 
-I/usr/pkg/include/apr-1 -I/usr/include 
build/temp.netbsd-5.1_STABLE-amd64-2.6/subvertpy/client.o 
build/temp.netbsd-5.1_STABLE-amd64-2.6/subvertpy/editor.o 
build/temp.netbsd-5.1_STABLE-amd64-2.6/subvertpy/util.o 
build/temp.netbsd-5.1_STABLE-amd64-2.6/subvertpy/_ra.o 
build/temp.netbsd-5.1_STABLE-amd64-2.6/subvertpy/wc.o -L/usr/pkg/lib 
-lsvn_client-1 -lsvn_subr-1 -lsvn_ra-1 -lsvn_wc-1 -lpython2.6 -o 
build/lib.netbsd-5.1_STABLE-amd64-2.6/subvertpy/client.so -L/usr/pkg/lib 
-lapr-1 -lcrypt -lpthread -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib 
-Wl,-R/usr/lib
ld: build/temp.netbsd-5.1_STABLE-amd64-2.6/subvertpy/client.o: relocation 
R_X86_64_PC32 against `py_wc_notify_func' can not be used when making a shared 
object; recompile with -fPIC
ld: final link failed: Bad value
error: command 'cc' failed with exit status 1
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/py-subvertpy
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/py-subvertpy

Observe that client.o *IS* built with -fPIC.


>How-To-Repeat:
        On a NetBSD 5.1_STABLE amd64 box do:
        cd /usr/pkgsrc/devel/py-subvertpy
        make install

        watch it die
>Fix:
        In 
/usr/pkgsrc/devel/py-subvertpy/work.quad/subvertpy-0.8.2/subvertpy/wc.h there 
are two #prama lines.  Remove those two #pragma lines, and subvertypy builds 
and links fine.  Unsure if this is the right fix.


>Unformatted:
  Sources from Nov 20, 2011


Home | Main Index | Thread Index | Old Index