It took me a while to get back to this.  See below.
-- 
Dan Langille - BSDCan / PGCon
d...@langille.org


> On Nov 17, 2017, at 1:54 PM, Kern Sibbald <k...@sibbald.com> wrote:
> 
> Dan,
> 
> In reviewing again your output, I can see that something has gone wrong in 
> the linking.  It is a bit hard to tell exactly what it is, but after thinking 
> about it I do not believe that Bacula every explicitly uses the -fPIC option.

Looking at a port build, I see:

checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
...
checking for /usr/bin/c++ option to produce PIC... -fPIC -DPIC
checking if /usr/bin/c++ PIC flag -fPIC -DPIC works... yes

I see similar output during the regression build.

Does this raise any concerns?  I don't know enough about this area.


>  At least one of the errors does mention a problem with /usr/lib/libcrypto.a. 
>  Is there any possibility that either that object or some other one on your 
> system is a static object?

Here is the full log of Bacula 9.0.6 building on FreeBSD 11.1  

https://services.unixathome.org/poudriere/data/latest-per-pkg/bacula9-server/9.0.6/111amd64-default-master-list.log

Comparing compiler flags:

port:  -O2 -pipe  -fstack-protector -fno-strict-aliasing -x c++ 
-fno-strict-aliasing -fno-exceptions -fno-rtti
regress:  -g -O2 -Wall -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti

Linker flags:

port:  -L/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/lib 
-L/usr/local/lib -fstack-protector
regress: <nil, line is blank in regression testing>

libraries:

port: -lpthread  -lintl
regression: -lpthread



> 
> Best regards,
> 
> Kern
> 
> 
> On 11/17/2017 07:42 PM, Kern Sibbald wrote:
>> Dan,
>> 
>> From the information I have, I am not sure exactly what or where the problem 
>> is.
>> 
>> Is it a new problem, and if so with what version did it begin?

This is only with regression.  I don't know for sure.  Months at least.  My 
regression was still on the 7 branch for a while.



>> 
>> Is it a regression only problem, or is a problem building Bacula in general 
>> on your machine?

Regression only.  Bacula builds fine when building with the port.

>> 
>> If it is a regression only problem, what was the last version that worked?

I don't know.

>> 
>> If it is a general Bacula build problem, what was the last version that 
>> worked?
>> 
>> If you are building on FreeBSD are you using clang?  and if so has it 
>> changed recently?


Yes, it's clang.

$ cc -v
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 
4.0.0)
Target: x86_64-unknown-freebsd11.1
Thread model: posix
InstalledDir: /usr/bin


>> 
>> Best regards,
>> 
>> Kern
>> 
>> 
>> 
>> On 11/17/2017 07:00 PM, Dan Langille wrote:
>>> Kern,
>>> 
>>> Is this an issue with ./configure which we have to figure out?
>>> 
>>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>>  
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Bacula-devel mailing list
>> Bacula-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-devel
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Bacula-devel mailing list
> Bacula-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to