Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
databases/db42 clang -fPIC issue
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Takeshi Taguchi  
View profile  
 More options Nov 15 2012, 6:53 am
Newsgroups: mailing.freebsd.ports
From: tagu...@ff.iij4u.or.jp (Takeshi Taguchi)
Date: Thu, 15 Nov 2012 20:53:02 +0900
Local: Thurs, Nov 15 2012 6:53 am
Subject: [patch] databases/db42 clang -fPIC issue

Hi,
In CURRENT, clang can not compile database/db42.
here is a error message:

BEGIN>---8<ERROR MESSAGE>8---
/usr/bin/ld: .libs/cxx_db.o: relocation R_X86_64_32S against `_ZTV2Db'
 can not be used when making a shared object; recompile with -fPIC
.libs/cxx_db.o: could not read symbols: Bad value
c++: error: linker command failed with exit code 1 (use -v to see
invocation)
*** [libdb_cxx-4.2.la] Error code 1

Stop in /usr/ports/databases/db42/work/db-4.2.52/build_unix.
*** [do-build] Error code 1

Stop in /usr/ports/databases/db42.
END>---8<ERROR MESSAGE>8---

linker said 'recompile with -fPIC'.
Actualy,
BEGIN>---8<COMPILE LOG>8---
 c++ -c -I. -I./../dist/.. -D_THREAD_SAFE -O2 -fno-strict-aliasing
-pipe -fconserve-space ./../dist/../cxx/cxx_txn.cpp  -DPIC
END>---8<COMPILE LOG>8---

there is a -DPIC flag, but not -fPIC.
Why not?

db42 uses its own libtool rather than FreeBSD's ${LOCALBASE}/bin
/libtool.

configure said:

BEGIN>---8<PART OF configure>8---
LIBTOOL= '$(SHELL) ./libtool'
END>---8<PART OF configure>8---

this libtool compiles c++ source without -fPIC flag if CC is clang.

libtool in ${LOCALBASE} was patched for FreeBSD. but db42
 libtool was NOT. so -fPIC flag was lost.

Here is a patch for fix this issue.

I'd send-pr this issue as ports/173627.
But
  http://www.freebsd.org/cgi/query-pr.cgi?pr=173627
said "No PRs Matched Query"
So I posted it here.
Would you like to review/commit this patch?

Thanks.

  db42-patch.txt
1K Download

_______________________________________________
freebsd-po...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias Andree  
View profile  
 More options Nov 15 2012, 6:10 pm
Newsgroups: mailing.freebsd.ports
From: mand...@FreeBSD.org (Matthias Andree)
Date: Fri, 16 Nov 2012 00:09:54 +0100
Local: Thurs, Nov 15 2012 6:09 pm
Subject: Re: [patch] databases/db42 clang -fPIC issue
(List post, with a courtesy copy to Takeshi.)

Am 15.11.2012 12:53, schrieb Takeshi Taguchi:

> Hi,
> In CURRENT, clang can not compile database/db42.
> here is a error message:

Hi Takeshi,

I am the maintainer of said port, and I can confirm that your bug report
is in the database, but the web interface is currently not being
updated.  Sorry for that.

Also sorry for the build issues the port gave you on 10-CURRENT.

However, I cannot reproduce the problem on FreeBSD 9 amd64 with clang,
and I also have other reports on <http://pastebin.ca/2251922> that the
build succeeds on a recent 10-CURRENT, and that -fPIC remains inside the
build arguments on clang++ command lines.  Said FreeBSD system was at
SVN revision r242852, built on amd64 with a GENERIC kernel on Nov 10.

Can you try to figure out the differences in the build logs, and
possibly update your world and retry?

How exactly have you configured your system to use clang(++)?
Is there anything in /etc/make.conf or /etc/src.conf?

Can you send me your config.log file OFF-LIST (send directly to my
address), from .../databases/db42/work/db-4.2.52/build_unix/ ?
(This is $WRKSRC/config.log, try:  make -V WRKSRC -C /usr/ports/*/db42
to obtain the WRKSRC path.)

Reviewing your patch, the replacement could be improved to use
${LIBTOOL} rather than something you have derived from $prefix;
furthermore, we use $prefix for a package we are about to install, and
$localbase for packages that we expect to already be installed (like
dependencies).

I need to understand better why we would need to patch things, before I
go into that.  We may need to patch something else, elsewhere (because
it needs to be more generic than for just the db42 port).

Thank you and best regards
Matthias Andree
_______________________________________________
freebsd-po...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Takeshi Taguchi  
View profile  
 More options Nov 17 2012, 8:35 am
Newsgroups: mailing.freebsd.ports
From: tagu...@ff.iij4u.or.jp (Takeshi Taguchi)
Date: Sat, 17 Nov 2012 22:35:03 +0900
Local: Sat, Nov 17 2012 8:35 am
Subject: Re: [patch] databases/db42 clang -fPIC issue
Hi, Matthias.

I'd svn checkouted in rev.243144, and I'd only buildworld/buildkernel
using same make.conf/src.conf/KERNCONF.
Then I could compile databases/db42!

I could not find out why I had a probrem ....;-(

I still think hard-corded LIBTOOL may be probrem, But it's seem
work fine.
Offcause, I should use $localbase raher than $prefix. I'd confused.

Thanks.
--
T.T.

(2012/11/16 8:09), Matthias Andree wrote:

_______________________________________________
freebsd-po...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Volodymyr Kostyrko  
View profile  
 More options Nov 19 2012, 4:58 am
Newsgroups: mailing.freebsd.ports
From: c.kw...@gmail.com (Volodymyr Kostyrko)
Date: Mon, 19 Nov 2012 11:58:23 +0200
Local: Mon, Nov 19 2012 4:58 am
Subject: Re: [patch] databases/db42 clang -fPIC issue
15.11.2012 13:53, Takeshi Taguchi wrote:

The only problem with libtool about missing flags I recall was the one
when ccache was used. Are you using ccache? If so, can you rebuild
everything db42 depends on (especially libtool) with CCACHE_CPP2?

--
Sphinx of black quartz, judge my vow.
_______________________________________________
freebsd-po...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »