Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#10543 - Cannot make libdownload-1.3 on Gentoo 2007.0 x86_64

Attached to Project: Pacman
Opened by Antonio Huete Jimenez (tuxillo) - Friday, 30 May 2008, 18:14 GMT
Last edited by Dan McGee (toofishes) - Sunday, 01 June 2008, 14:54 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Aaron Griffin (phrakture)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version 3.1.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

Cannot make libdownload in Gentoo 2007.0 x86_64 while a compiler error:

libdownload-1.3 # make
generate ftperr.h
generate httperr.h
compile download.o
compile common.o
compile ftp.o
compile http.o
http.c: In function '_http_print_html':
http.c:762: warning: passing argument 2 of 'getline' from incompatible pointer type
compile file.o
build libdownload.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: common.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
common.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libdownload.so] Error 1

Steps to Reproduce:

Just when trying to make libdownload-1.3
This task depends upon

Closed by  Dan McGee (toofishes)
Sunday, 01 June 2008, 14:54 GMT
Reason for closing:  Upstream
Additional comments about closing:  Aaron's bug
Comment by Antonio Huete Jimenez (tuxillo) - Friday, 30 May 2008, 18:20 GMT
Just adding -fPIC to CFLAGS in Makefile solves the problem

See attached mini patch :)
Comment by Antonio Huete Jimenez (tuxillo) - Friday, 30 May 2008, 18:21 GMT

libdownload-1.3 # make clean && make
clean
generate ftperr.h
generate httperr.h
compile download.o
compile common.o
compile ftp.o
compile http.o
http.c: In function '_http_print_html':
http.c:762: warning: passing argument 2 of 'getline' from incompatible pointer type
compile file.o
build libdownload.so
build libdownload.a
built with: -fPIC -O2 -pipe -I. -DINET6 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wstrict-prototypes -Wsign-compare -Wchar-subscripts -Wpointer-arith -Wcast-align -Wsign-compare -UDEBUG
Comment by Antonio Huete Jimenez (tuxillo) - Friday, 30 May 2008, 19:15 GMT

libdownload-1.3 # make clean && make
clean
generate ftperr.h
generate httperr.h
compile download.o
compile common.o
compile ftp.o
compile http.o
http.c: In function '_http_print_html':
http.c:762: warning: passing argument 2 of 'getline' from incompatible pointer type
compile file.o
build libdownload.so
build libdownload.a
built with: -fPIC -O2 -pipe -I. -DINET6 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wstrict-prototypes -Wsign-compare -Wchar-subscripts -Wpointer-arith -Wcast-align -Wsign-compare -UDEBUG
Comment by Aaron Griffin (phrakture) - Friday, 30 May 2008, 19:17 GMT
I keep having to say this - not only is libdownload not an arch project, making this bug tracker a bit inappropriate for this, but also... why are you building this on gentoo?

The Arch PKGBUILD adds -fPIC for x86_64 already.

In the future, please send libdownload bug reports to the author of the software (that's me)
Comment by Antonio Huete Jimenez (tuxillo) - Sunday, 01 June 2008, 09:40 GMT
I'm sorry about offtopic

Loading...