Kern,

Should this linking be specified in the regression test suite?

Is this something a regression tester must configure externally?

-- 
Dan Langille - BSDCan / PGCon
d...@langille.org


> On Nov 17, 2017, at 5:26 AM, Kern Sibbald <k...@sibbald.com> wrote:
> 
> Dan,
> 
> The libraries need to be linked with -fPIC, which generates Position 
> Independent
> Code (PIC).
> 
> The datarootdir warning can be ignored.  I will fix it.  I will look at the 
> other problems as I am not seeing them here.
> 
> Best regards,
> 
> Kern
> 
> 
> 
> On 17.11.2017 03:32, Dan Langille wrote:
>> My regression tests are not showing up on 
>> http://regress.bacula.org/index.php?project=Bacula-9.0
>> 
>> Of note, I see: recompile with -fPIC
>> 
>> I'm not quite sure what that is.  I hope the rest of this helps.
>> 
>> As always, I can provide a FreeBSD environment for your use.
>> 
>> I'm seeing this:
>> 
>> 
>> Making libbac.la ...
>> /usr/home/dan/src/bacula/regress/build/libtool --silent --tag=CXX 
>> --mode=link /usr/bin/c++    -o libbac.la attr.lo base64.lo berrno.lo bsys.lo 
>> binflate.lo bget_msg.lo bnet.lo bnet_server.lo bsock.lo bpipe.lo 
>> bsnprintf.lo btime.lo cram-md5.lo crc32.lo crypto.lo daemon.lo edit.lo 
>> fnmatch.lo guid_to_name.lo hmac.lo jcr.lo lex.lo lz4.lo alist.lo dlist.lo 
>> md5.lo message.lo mem_pool.lo openssl.lo plugins.lo priv.lo queue.lo 
>> bregex.lo runscript.lo rwlock.lo scan.lo sellist.lo serial.lo sha1.lo 
>> sha2.lo signal.lo smartall.lo rblist.lo tls.lo tree.lo util.lo var.lo 
>> watchdog.lo workq.lo btimers.lo worker.lo flist.lo address_conf.lo breg.lo 
>> htable.lo lockmgr.lo devlock.lo output.lo bwlimit.lo -export-dynamic -rpath 
>> /usr/home/dan/src/bacula/regress/bin -release 9.0.6 -lwrap  -lz -lssl 
>> -lcrypto -lpthread
>> *** Error code 1
>> 
>> That's from around line 723 here: 
>> https://gist.github.com/dlangille/a6d9887655d3c0348ca273e636c54fb5 (there 
>> are multiple regression test runs in this output, each for a different 
>> output).
>> 
>> Around line 1500 I see:
>> 
>> 
>> Making libbac.la ...
>> /usr/home/dan/src/bacula/regress/build/libtool --silent --tag=CXX 
>> --mode=link /usr/bin/c++    -o libbac.la attr.lo base64.lo berrno.lo bsys.lo 
>> binflate.lo bget_msg.lo bnet.lo bnet_server.lo bsock.lo bpipe.lo 
>> bsnprintf.lo btime.lo cram-md5.lo crc32.lo crypto.lo daemon.lo edit.lo 
>> fnmatch.lo guid_to_name.lo hmac.lo jcr.lo lex.lo lz4.lo alist.lo dlist.lo 
>> md5.lo message.lo mem_pool.lo openssl.lo plugins.lo priv.lo queue.lo 
>> bregex.lo runscript.lo rwlock.lo scan.lo sellist.lo serial.lo sha1.lo 
>> sha2.lo signal.lo smartall.lo rblist.lo tls.lo tree.lo util.lo var.lo 
>> watchdog.lo workq.lo btimers.lo worker.lo flist.lo address_conf.lo breg.lo 
>> htable.lo lockmgr.lo devlock.lo output.lo bwlimit.lo -export-dynamic -rpath 
>> /usr/home/dan/src/bacula/regress/bin -release 9.0.6 -lwrap  -lz -lssl 
>> -lcrypto -lpthread
>> /usr/bin/ld: /usr/lib/libcrypto.a(by_dir.o): relocation R_X86_64_32 against 
>> `a local symbol' can not be used when making a shared object; recompile with 
>> -fPIC
>> /usr/lib/libcrypto.a: could not read symbols: Bad value
>> c++: error: linker command failed with exit code 1 (use -v to see invocation)
>> *** Error code 1
>> 
>> 
>> 
>> 
>> Checking the logs, I see (but these are only the errors redirected to email; 
>> see below)
>> 
>> 
>> ###
>> 
>> config.status: WARNING:  'src/qt-console/bat.pro.in' seems to ignore the 
>> --datarootdir setting
>> var.c:2439:18: warning: passing an object that undergoes default argument 
>> promotion to 'va_start' has undefined behavior [-Wvarargs]
>>    va_start(ap, mode);
>>                 ^
>> var.c:2431:18: note: parameter of type 'var_config_t' is declared here
>>    var_config_t mode,
>>                 ^
>> 1 warning generated.
>> output.c:162:22: warning: passing an object that undergoes default argument 
>> promotion to 'va_start' has undefined behavior [-Wvarargs]
>>   va_start(arg_ptr, first);
>>                     ^
>> output.c:155:43: note: parameter of type 'OutputType' is declared here
>> char *OutputWriter::get_output(OutputType first, ...)
>>                                          ^
>> output.c:186:22: warning: passing an object that undergoes default argument 
>> promotion to 'va_start' has undefined behavior [-Wvarargs]
>>   va_start(arg_ptr, first);
>>                     ^
>> output.c:181:58: note: parameter of type 'OutputType' is declared here
>> char *OutputWriter::get_output(POOLMEM **out, OutputType first, ...)
>>                                                         ^
>> 2 warnings generated.
>> /usr/bin/ld: /usr/lib/libcrypto.a(by_dir.o): relocation R_X86_64_32 against 
>> `a local symbol' can not be used when making a shared object; recompile with 
>> -fPIC
>> /usr/lib/libcrypto.a: could not read symbols: Bad value
>> c++: error: linker command failed with exit code 1 (use -v to see invocation)
>> Problem running command: scripts/pretest
>> Problem executing pre-test command(s).
>> Could not find gcov.
>> Cannot find any coverage files. Ignoring Coverage request.
>>   Cannot find file: 
>> /usr/home/dan/src/bacula/regress/Testing/20171115-2200/Build.xml
>>   Problems when submitting via HTTP
>> Errors while running CTest
>> config.status: WARNING:  'src/qt-console/bat.pro.in' seems to ignore the 
>> --datarootdir setting
>> var.c:2439:18: warning: passing an object that undergoes default argument 
>> promotion to 'va_start' has undefined behavior [-Wvarargs]
>>    va_start(ap, mode);
>>                 ^
>> var.c:2431:18: note: parameter of type 'var_config_t' is declared here
>>    var_config_t mode,
>>                 ^
>> 1 warning generated.
>> output.c:162:22: warning: passing an object that undergoes default argument 
>> promotion to 'va_start' has undefined behavior [-Wvarargs]
>>   va_start(arg_ptr, first);
>>                     ^
>> output.c:155:43: note: parameter of type 'OutputType' is declared here
>> char *OutputWriter::get_output(OutputType first, ...)
>>                                          ^
>> output.c:186:22: warning: passing an object that undergoes default argument 
>> promotion to 'va_start' has undefined behavior [-Wvarargs]
>>   va_start(arg_ptr, first);
>>                     ^
>> output.c:181:58: note: parameter of type 'OutputType' is declared here
>> char *OutputWriter::get_output(POOLMEM **out, OutputType first, ...)
>>                                                         ^
>> 2 warnings generated.
>> /usr/bin/ld: /usr/lib/libcrypto.a(by_dir.o): relocation R_X86_64_32 against 
>> `a local symbol' can not be used when making a shared object; recompile with 
>> -fPIC
>> /usr/lib/libcrypto.a: could not read symbols: Bad value
>> c++: error: linker command failed with exit code 1 (use -v to see invocation)
>> Problem running command: scripts/pretest
>> Problem executing pre-test command(s).
>> Could not find gcov.
>> Cannot find any coverage files. Ignoring Coverage request.
>>   Cannot find file: 
>> /usr/home/dan/src/bacula/regress/Testing/20171115-2200/Build.xml
>>   Problems when submitting via HTTP
>> Errors while running CTest
>> config.status: WARNING:  'src/qt-console/bat.pro.in' seems to ignore the 
>> --datarootdir setting
>> In file included from postgresql.c:50:
>> /usr/local/include/pg_config.h:385:9: warning: 'HAVE_POSIX_SIGNALS' macro 
>> redefined [-Wmacro-redefined]
>> #define HAVE_POSIX_SIGNALS /**/
>>        ^
>> ../config.h:133:9: note: previous definition is here
>> #define HAVE_POSIX_SIGNALS 1
>>        ^
>> 1 warning generated.
>> var.c:2439:18: warning: passing an object that undergoes default argument 
>> promotion to 'va_start' has undefined behavior [-Wvarargs]
>>    va_start(ap, mode);
>>                 ^
>> var.c:2431:18: note: parameter of type 'var_config_t' is declared here
>>    var_config_t mode,
>>                 ^
>> 1 warning generated.
>> output.c:162:22: warning: passing an object that undergoes default argument 
>> promotion to 'va_start' has undefined behavior [-Wvarargs]
>>   va_start(arg_ptr, first);
>>                     ^
>> output.c:155:43: note: parameter of type 'OutputType' is declared here
>> char *OutputWriter::get_output(OutputType first, ...)
>>                                          ^
>> output.c:186:22: warning: passing an object that undergoes default argument 
>> promotion to 'va_start' has undefined behavior [-Wvarargs]
>>   va_start(arg_ptr, first);
>>                     ^
>> output.c:181:58: note: parameter of type 'OutputType' is declared here
>> char *OutputWriter::get_output(POOLMEM **out, OutputType first, ...)
>>                                                         ^
>> 2 warnings generated.
>> /usr/bin/ld: /usr/lib/libcrypto.a(by_dir.o): relocation R_X86_64_32 against 
>> `a local symbol' can not be used when making a shared object; recompile with 
>> -fPIC
>> /usr/lib/libcrypto.a: could not read symbols: Bad value
>> c++: error: linker command failed with exit code 1 (use -v to see invocation)
>> Problem running command: scripts/pretest
>> Problem executing pre-test command(s).
>> Could not find gcov.
>> Cannot find any coverage files. Ignoring Coverage request.
>>   Cannot find file: 
>> /usr/home/dan/src/bacula/regress/Testing/20171115-2200/Build.xml
>>   Problems when submitting via HTTP
>> Errors while running CTest
>> ###
>> 
> 


------------------------------------------------------------------------------
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