Bug 58197 - devel/jrtplib port doesn't compile on AMD64 - fix
Summary: devel/jrtplib port doesn't compile on AMD64 - fix
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-18 11:30 UTC by Petr Holub
Modified: 2003-11-03 01:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Holub 2003-10-18 11:30:21 UTC
The jrtplib port is broken on amd64 as reported by Kris Kennaway
on Fri, 17 Oct 2003 16:36:54 -0700. This fix should be a temporal solution
until proper -fPIC option is added to configure by library developer
whom I've already notified.

Fix: 

.include <bsd.port.mk>--I4Err5Kfli7im3F3aGEh3tfvFdnIwiCdnfhZvxBMoxn4soUo
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- devel/jrtplib/Makefile.bak  Sat Oct 18 12:13:27 2003
+++ devel/jrtplib/Makefile      Sat Oct 18 12:08:07 2003
@@ -17,5 +17,7 @@
 USE_GMAKE=     yes
 INSTALLS_SHLIB= yes
 NO_FILTER_SHLIBS= yes
+CXX= g++ -fPIC
+CONFIGURE_TARGET= --target ${MACHINE_ARCH}-portbld-freebsd${OSREL}
How-To-Repeat: 
Compile on FreeBSD 5.1 on amd64.
Comment 1 Petr Holub 2003-10-18 13:42:20 UTC
Hi there,

I'm sending different patch for original jrtplib in ports this time
using patch for configure. There's also one new line in Makefile
which makes configure happy.

Cheers,
Petr

================================================================
                            Petr Holub
CESNET z.s.p.o.                       Supercomputing Center Brno
Zikova 4                             Institute of Compt. Science
162 00 Praha 6, CZ                            Masaryk University
Czech Republic                     Botanicka 68a, 60200 Brno, CZ 
e-mail: Petr.Holub@cesnet.cz               phone: +420-541512272
                                             fax: +420-541212747
                                       e-mail: hopet@ics.muni.cz


diff -ru --new-file jrtplib.orig/Makefile jrtplib/Makefile
--- jrtplib.orig/Makefile	Sat Oct 18 14:30:53 2003
+++ jrtplib/Makefile	Sat Oct 18 14:30:18 2003
@@ -17,5 +17,6 @@
 USE_GMAKE=     yes
 INSTALLS_SHLIB= yes
 NO_FILTER_SHLIBS= yes
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 
 .include <bsd.port.mk>
diff -ru --new-file jrtplib.orig/files/patch-aa jrtplib/files/patch-aa
--- jrtplib.orig/files/patch-aa	Thu Jan  1 01:00:00 1970
+++ jrtplib/files/patch-aa	Sat Oct 18 14:23:42 2003
@@ -0,0 +1,40 @@
+--- configure.orig	Sat Oct 18 14:09:40 2003
++++ configure	Sat Oct 18 14:22:56 2003
+@@ -1187,7 +1187,7 @@
+ 
+ 
+ 
+-RTP_CFLAGS="-O2"
++RTP_CFLAGS="-fPIC -O2"
+ RTP_TARGETS=dummymsg
+ RTP_ARFLAGS=
+ RTP_LDFLAGS=
+@@ -1806,7 +1806,7 @@
+ GCC=`test $ac_compiler_gnu = yes && echo yes`
+ ac_test_CFLAGS=${CFLAGS+set}
+ ac_save_CFLAGS=$CFLAGS
+-CFLAGS="-g"
++CFLAGS="-fPIC -g"
+ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
+ echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
+ if test "${ac_cv_prog_cc_g+set}" = set; then
+@@ -1856,15 +1856,15 @@
+   CFLAGS=$ac_save_CFLAGS
+ elif test $ac_cv_prog_cc_g = yes; then
+   if test "$GCC" = yes; then
+-    CFLAGS="-g -O2"
++    CFLAGS="-fPIC -g -O2"
+   else
+-    CFLAGS="-g"
++    CFLAGS="-fPIC -g"
+   fi
+ else
+   if test "$GCC" = yes; then
+-    CFLAGS="-O2"
++    CFLAGS="-fPIC -O2"
+   else
+-    CFLAGS=
++    CFLAGS="-fPIC"
+   fi
+ fi
+ # Some people use a C++ compiler to compile C.  Since we use `exit',
Comment 2 jeh freebsd_committer freebsd_triage 2003-11-03 01:13:32 UTC
State Changed
From-To: open->closed

Committed, thanks.