Bug 187919 - databases/rrdtool does not build because of "cc: error: unknown argument: '-R/usr/local/lib'"
Summary: databases/rrdtool does not build because of "cc: error: unknown argument: '-R...
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: Sylvio Cesar Teixeira
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-25 08:20 UTC by Thomas Schweikle
Modified: 2014-05-13 06:10 UTC (History)
0 users

See Also:


Attachments
patch-freebsd10.txt (419 bytes, patch)
2014-03-27 14:14 UTC, joe
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schweikle 2014-03-25 08:20:00 UTC
RRDs.xs:55:70: note: expanded from macro 'hvs'
#define hvs(VAL) hv_store_ent(hash, sv_2mortal(newSVpv(data->key,0)),VAL,0)
                                                                     ^
/usr/local/lib/perl5/5.16/mach/CORE/hv.h:467:10: note: expanded from macro 'hv_store_ent'
                      (val), (hash)))
                       ^
/usr/local/lib/perl5/5.16/mach/CORE/embed.h:202:69: note: expanded from macro 'hv_common'
#define hv_common(a,b,c,d,e,f,g,h)      Perl_hv_common(aTHX_ a,b,c,d,e,f,g,h)
                                                                         ^
/usr/local/lib/perl5/5.16/mach/CORE/proto.h:2755:56: note: passing argument to parameter 's' here
PERL_CALLCONV SV*       Perl_newSVpv(pTHX_ const char *const s, const STRLEN len)
                                                             ^
3 warnings generated.
rm -f blib/arch/auto/RRDs/RRDs.so
cc  -shared  -L/usr/local/lib -fstack-protector RRDs.o -L../../src/.libs/ -R/usr/local/lib -lrrd  -o blib/arch/auto/RRDs/RRDs.so   \
        \

cc: error: unknown argument: '-R/usr/local/lib'
gmake[5]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1
gmake[5]: Leaving directory `/usr/ports/databases/rrdtool/work/rrdtool-1.4.8/bindings/perl-shared'
gmake[4]: *** [perl_shared] Error 2
gmake[4]: Leaving directory `/usr/ports/databases/rrdtool/work/rrdtool-1.4.8/bindings'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/ports/databases/rrdtool/work/rrdtool-1.4.8/bindings'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/databases/rrdtool/work/rrdtool-1.4.8'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/ports/databases/rrdtool/work/rrdtool-1.4.8'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/rrdtool


Ports tree:
Working Copy Root Path: /usr/ports
URL: https://svn0.eu.freebsd.org/ports/head/databases/rrdtool
Repository Root: https://svn0.eu.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 349101

How-To-Repeat: cd /usr/ports/databases/rrdtool; make clean build deinstall install clean
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-25 08:20:04 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sylvio

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 joe 2014-03-27 14:14:56 UTC
Try the attached patch file. Simply place it in to the "files" directory.

Best Regards,
-Joseph Benden
Comment 3 Jim Pingle 2014-04-07 22:40:10 UTC
I encountered the same error from this PR, and the patch on the ticket
corrected the issue for me.
Comment 4 landsidel.allen 2014-05-07 14:47:43 UTC
Patch worked fine for me as well.
Comment 5 Niclas Zeising freebsd_committer freebsd_triage 2014-05-13 05:58:39 UTC
State Changed
From-To: open->closed

Another PR with a similar fix was comitted.  Thanks for your submission!
Comment 6 dfilter service freebsd_committer freebsd_triage 2014-05-13 06:01:18 UTC
Author: zeising
Date: Tue May 13 05:01:14 2014
New Revision: 353914
URL: http://svnweb.freebsd.org/changeset/ports/353914
QAT: https://qat.redports.org/buildarchive/r353914/

Log:
  Fix build on current [1]
  
  PR:		ports/188793 [1], ports/187919 [2]
  Submitted by:	zeising [1], Thomas Schweikle <tps@vr-web.de> [2]
  Approved by:	maintainer timeout

Added:
  head/databases/rrdtool/files/patch-bindings_perl-shared_Makefile.PL   (contents, props changed)

Added: head/databases/rrdtool/files/patch-bindings_perl-shared_Makefile.PL
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/rrdtool/files/patch-bindings_perl-shared_Makefile.PL	Tue May 13 05:01:14 2014	(r353914)
@@ -0,0 +1,11 @@
+--- bindings/perl-shared/Makefile.PL.orig	2014-04-19 13:00:18.000000000 +0200
++++ bindings/perl-shared/Makefile.PL	2014-04-19 13:13:26.000000000 +0200
+@@ -31,7 +31,7 @@
+ 			/linux/   && do{ $R = "-Wl,--rpath -Wl,$rp"};
+ 			/hpux/    && do{ $R = "+b$rp"};
+ 			/solaris/ && do{ $R = "-R$rp"};
+-			/bsd/     && do{ $R = "-R$rp"};
++			/bsd/     && do{ $R = "-Wl,--rpath -Wl,$rp"};
+ 			/aix/     && do{ $R = "-blibpath:$rp"};
+ 		}
+ 	}
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"