Fails to build on NetBSD 5.1/amd64

Bug #894659 reported by OK2
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
subvertpy
Fix Released
Medium
Unassigned

Bug Description

On NetBSD 5.1/amd64 subvertpy fails to build, full description here:
http://gnats.netbsd.org/45649

Patch to fix it is attached.

Building devel/py-subvertpy 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

Thanks,
Oleksandr.

Tags: netbsd

Related branches

Revision history for this message
OK2 (ok2) wrote :
description: updated
Revision history for this message
Ian Robertson (iroberts) wrote :

I had the same problem building on RHEL 5 x86_64. ok2's patch worked perfectly.

Jelmer Vernooij (jelmer)
Changed in subvertpy:
status: New → Fix Committed
importance: Undecided → Medium
milestone: none → 0.9.0
Jelmer Vernooij (jelmer)
tags: added: netbse
tags: added: netbsd
removed: netbse
Jelmer Vernooij (jelmer)
Changed in subvertpy:
milestone: 0.9.0 → 0.8.10
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.