Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 47846
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Danny van Dyk (RETIRED) <kugelfang@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Holger Seidenberg <seidenberg@hs-it.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
hylafax-4.1.8-fPIC.patch Patch to make hylafax-4.1.8-r2 work on amd64 patch Danny van Dyk (RETIRED) 2004-04-19 13:10 0000 2.04 KB Details | Diff
hylafax.out output of hylafax build on alpha text/plain Aron Griffis (RETIRED) 2004-04-19 13:17 0000 27.64 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 47846 depends on: Show dependency tree
Bug 47846 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-04-14 14:48 0000
Please add "~amd64" to the KEYWORDS for hylafax-4.1.8-r2

Portage 2.0.50-r5 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3-gentoo-r2)
=================================================================
System uname: 2.6.3-gentoo-r2 x86_64 4
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -fPIC"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X amd64 apache2 apm arts artswrappersuid avi berkdb bluetooth cdr crypt cups curl dvd dvdr encode esd evo fam flash foomaticdb foreign-package gd-external gdbm gif gimpprint glade gnome gphoto2 gpm gtk gtk2 gtkhtml imap imlib irda isdn jpeg kde lcms ldap libg++ libwww linguas_de mikmod motif mozilla mpeg mpeg4 mysql ncurses nls nogcj oggvorbis opengl opie oss pam pda pdflib perl php png postgres python qt quicktime readline samba scanner sdl slang snmp spell ssl tcltk tcpd transcode truetype usb v4l xine xinerama xml2 xmms xv xvid zlib"

------- Comment #1 From Travis Tilley (RETIRED) 2004-04-14 16:26:59 0000 -------
/usr/bin/g++ -shared -fpic -Wl,-soname,libfaxutil.so -o libfaxutil.so.4.1.8
Array.o BoolArray.o Dictionary.o Obj.o PageSize.o RegEx.o RegExArray.o
RegExDict.o StackBuffer.o Str.o StrArray.o StrDict.o Dispatcher.o IOHandler.o
Sys.o Syslog.o Timeout.o Fatal.o AtSyntax.o DialRules.o FmtTime.o TimeOfDay.o
FaxDB.o TextFmt.o Class2Params.o FaxClient.o FaxConfig.o FaxRecvInfo.o
FaxSendInfo.o JobExt.o ModemExt.o SendFaxJob.o SendFaxClient.o TypeRules.o
Transport.o InetTransport.o UnixTransport.o SNPPClient.o SNPPJob.o
cvtfacility.o fxassert.o \
     -L/usr/local/lib -ltiff  -lz  -L../regex -lregex \
    -lcrypt -lutil -lm
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.3/../../../../x86_64-pc-linux-gnu/bin/ld:
Array.o: relocation R_X86_64_32S can not be used when making a shared object;
recompile with -fPIC
Array.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libfaxutil.so] Error 1

this package would need additional fixing before getting unmasked

------- Comment #2 From Holger Seidenberg 2004-04-14 16:56:04 0000 -------
It works fine for me after emerge sync today

------- Comment #3 From Kris Kersey (RETIRED) 2004-04-15 11:05:41 0000 -------
Done.  Added ~amd64 keyword.

------- Comment #4 From Danny van Dyk (RETIRED) 2004-04-15 14:34:20 0000 -------
Augustus, that doesn't work for me either...
AFAIK it only works for Holger, as he has CFLAGS="-O2 -fPIC" (look at his emerge
info output). This pacakge is definitely borked and needs some fPIC patch.

------- Comment #5 From Danny van Dyk (RETIRED) 2004-04-15 14:37:16 0000 -------
marked hylafax-4.1.8-r2 "-amd64" until fixed.

------- Comment #6 From Danny van Dyk (RETIRED) 2004-04-19 13:10:20 0000 -------
Created an attachment (id=29647) [details]
Patch to make hylafax-4.1.8-r2 work on amd64

Works for with this test. However, I would like it to be tested on alpha as
well.

------- Comment #7 From Danny van Dyk (RETIRED) 2004-04-19 13:15:13 0000 -------
s/test./patch./

------- Comment #8 From Aron Griffis (RETIRED) 2004-04-19 13:17:38 0000 -------
Created an attachment (id=29650) [details]
output of hylafax build on alpha

This doesn't build on alpha either.  Build output attached.

I'm not certain that the suggested patch is the best approach.	I'll do a
little more investigation.

------- Comment #9 From Danny van Dyk (RETIRED) 2004-04-19 13:51:58 0000 -------
jhuebel: Aron suggested solving this bug without a patch to the makefiles, but
instead running "make VCOPTS=-fPIC VC++OPTS=-fPIC" in those subdirs that provide
shared objects. Unfortunately, there are a handfull of small executables created in those subdirs that would certainly be compiled with -fPIC as well. But that
would be much more easily maintanable than a ugly hack to the Makefiles.

Are you okay with this solution ?

------- Comment #10 From Jason Huebel (RETIRED) 2004-04-19 14:32:12 0000 -------
There has been a lot of discussion about PIC for packages with mixed libraries
and executables.  The decision was made that fPIC should be selectively applied
to these types of packages using a makefile patch.  Executables should not be
compiled with fPIC.  It may be an "ugly hack", but it is currently the
preferred method.

------- Comment #11 From Jon Portnoy (RETIRED) 2004-04-19 14:40:59 0000 -------
-fPIC applied to executables causes a fairly serious performance hit...
additionally, this means the package is broken upstream, therefore the makefile
should be fixed and the patch sent upstream.

------- Comment #12 From Danny van Dyk (RETIRED) 2004-04-19 15:16:18 0000 -------
In CVS now. I marked all previous version -amd64 and -alpha, marked -r2 ~amd64
and ~alpha. Fixed.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug