> On Jan 18, 2016, at 1:14 AM, Kern Sibbald <k...@sibbald.com 
> <mailto:k...@sibbald.com>> wrote:
> 
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello Dan,
> 
> It looks like your patch simply changes "freebsd1*" into "freebsd1.*".  Is 
> that correct?
> I would be happy to apply the change, but can you explain it to me?  
> Unfortunately, I have already released 7.4.0, so it will go in the next 
> version.

I suspect it's confusing FreeBSD 1 and FreeBSD 10.

This fix is only needed for 5.x; 7.x seems to have no trouble with.

> By the way, the link seems to take me off to something that is not related to 
> this problem.  By the way smtp-orig.c was there just as a reference to where 
> bsmtp.c came from.  I have renamed it smtp-orig.c.orig in the hopes 
> ./configure will leave it alone.

The link shows the full successful build with the patch, which I apply locally 
after a the 'git pull'.  It also shows the failure to connect to ehe 

> Someplace, I saw output where the compiler (Clang I imagine) was complaining 
> about the variable oldpid in src/lib/bsys.c.  Well, the compiler has gets it 
> wrong.  It is impossible for oldpid to be uninitialized when it gets to the 
> code that Clang is complaining about.  Perhaps it merits a bug report to the 
> Clang group.

You may have seen it here: 
https://gist.github.com/dlangille/80596c7fa0a5cddaea0d#file-issue-with-database-connection-L1071
 
<https://gist.github.com/dlangille/80596c7fa0a5cddaea0d#file-issue-with-database-connection-L1071>
> 
> Best regards,
> Kern
> 
> On 01/18/2016 02:35 AM, Dan Langille wrote:
> >> On Jan 15, 2016, at 11:37
>       AM, Kern Sibbald <k...@sibbald.com <mailto:k...@sibbald.com>
>       <mailto:k...@sibbald.com> <mailto:k...@sibbald.com>> wrote:
> 
>       >>
> 
>       >> Well Clang seems to be creating some problems, and
>       unfortunately, I have
> 
>       >> no idea what it will do with version 5.2.13 -- I
>       recommend using GNU C
> 
>       >> for that.
> 
>       >>
> 
>       >> For Branch-7.4, I believe all the Clang complaints have
>       been corrected.
> 
>       >> I do not run Clang, so cannot say for sure.  If there are
>       problems such
> 
>       >> as the dlink m_link problem, I recommend using GNU C.  We
>       know it works
> 
>       >> and we know it generates good code, so you could save
>       yourself a lot of
> 
>       >> trouble.
> 
>       >>
> 
>       >> If you must use Clang, OK no problem, but please see if
>       you can find/fix
> 
>       >> the problem.  If I have good patches that I understand, I
>       will be happy
> 
>       >> to apply them.  I worked with Martin going back and forth
>       until I think
> 
>       >> he is satisfied with how Bacula compiles with Clang.
> 
>       >
> 
>       > I think this patch helps.  It compiles with both gcc and with
>       clang.
> 
>       >
> 
>       > See also
>       https://gist.github.com/dlangille/80596c7fa0a5cddaea0d 
> <https://gist.github.com/dlangille/80596c7fa0a5cddaea0d> for full
>       details.
> 
>       >
> 
>       > $ cat ~/bin/patch-bacula-configure 
> 
>       > --- bacula/configure.orig    2016-01-18 00:21:42.985405000
>       +0100
> 
>       > +++ bacula/configure    2016-01-18 00:22:41.081491000 +0100
> 
>       > @@ -10997,7 +10997,7 @@
> 
>       >        hardcode_shlibpath_var=no
> 
>       >        ;;
> 
>       >  
> 
>       > -    freebsd1*)
> 
>       > +    freebsd1.*)
> 
>       >        ld_shlibs=no
> 
>       >        ;;
> 
>       >  
> 
>       > @@ -11991,7 +11991,7 @@
> 
>       >    shlibpath_var=LD_LIBRARY_PATH
> 
>       >    ;;
> 
>       >  
> 
>       > -freebsd1*)
> 
>       > +freebsd1.*)
> 
>       >    dynamic_linker=no
> 
>       >    ;;
> 
>       >  
> 
>       > @@ -15824,7 +15824,7 @@
> 
>       >    shlibpath_var=LD_LIBRARY_PATH
> 
>       >    ;;
> 
>       >  
> 
>       > -freebsd1*)
> 
>       > +freebsd1.*)
> 
>       >    dynamic_linker=no
> 
>       >    ;;
> 
>       >  
> 
>       >
> 
>       >
> 
>       > But then I encounter this issue:
> 
>       >
> 
>       > Creating mysql database
> 
>       > ERROR 1007 (HY000) at line 1: Can't create database
>       'regress'; database exists
> 
>       > Creation of regress database succeeded.
> 
>       > Deletion of regress MySQL tables succeeded.
> 
>       > Dropped mysql tables
> 
>       > Making mysql tables
> 
>       > Creation of Bacula MySQL tables succeeded.
> 
>       > Granting mysql privileges
> 
>       > Host    User    Password    Select_priv    Insert_priv   
>       Update_priv    Delete_priv    Create_priv    Drop_priv   
>       Reload_priv    Shutdown_priv    Process_priv    File_priv   
>       Grant_priv    References_priv    Index_priv    Alter_priv   
>       Show_db_priv    Super_priv    Create_tmp_table_priv   
>       Lock_tables_priv    Execute_priv    Repl_slave_priv   
>       Repl_client_priv    Create_view_priv    Show_view_priv   
>       Create_routine_priv    Alter_routine_priv    Create_user_priv   
>       Event_priv    Trigger_priv    Create_tablespace_priv   
>       ssl_type    ssl_cipher    x509_issuer    x509_subject   
>       max_questions    max_updates    max_connections   
>       max_user_connections
> 
>       > localhost    root        Y    Y    Y    Y    Y    Y    Y   
>       Y    Y    Y    Y    Y    Y    Y    Y    Y    Y    Y    Y    0
> 
>       > mysql55.unixathome.org <http://mysql55.unixathome.org/>
>       <http://mysql55.unixathome.org> <http://mysql55.unixathome.org/>    
> root        Y    Y   
>       Y    Y    Y    Y    Y    Y    Y    Y    Y    Y    Y    Y    Y   
>       Y    Y    Y    0
> 
>       > 127.0.0.1    root        Y    Y    Y    Y    Y    Y    Y   
>       Y    Y    Y    Y    Y    Y    Y    Y    Y    Y    Y    Y    0
> 
>       > localhost            N    N    N    N    N    N    N    N   
>       N    N    N    N    N    N    N    N    N    N    N    0
> 
>       > mysql55.unixathome.org <http://mysql55.unixathome.org/>
>       <http://mysql55.unixathome.org> <http://mysql55.unixathome.org/>        
>     N    N    N   
>       N    N    N    N    N    N    N    N    N    N    N    N    N   
>       N    N    0
> 
>       > localhost    regress        N    N    N    N    N    N   
>       N    N    N    N    N    N    N    N    N    N    N    N    N    0
> 
>       > %    regress        N    N    N    N    N    N    N    N   
>       N    N    N    N    N    N    N    N    N    N    N    N    0
> 
>       > localhost    nagios        N    N    N    N    N    N    N   
>       N    N    N    N    N    N    N    N    N    N    N    N    0
> 
>       > Privileges for user regress granted on database regress.
> 
>       > Starting the Bacula Storage daemon
> 
>       > Starting the Bacula File daemon
> 
>       > Starting the Bacula Director daemon
> 
>       > bacula-dir: dird.c:1015-0 Could not open Catalog "MyCatalog",
>       database "regress".
> 
>       > 18-Jan 01:29 bacula-dir ERROR TERMINATION
> 
>       > Please correct configuration file:
> /usr/home/dan/src/BaculaRegressionTesting-TRUNK/regress/bin/bacula-dir.conf
> 
>       > Stopping the Bacula File daemon
> 
>       > Stopping the Bacula Storage daemon
> 
>       > Stopping the Bacula Director daemon
> 
>       >
> 
>       >
> 
>       > I have checked that I can connect:
> 
>       >
> 
>       > [dan@mysql55:~] $ mysql -u regress regress
> 
>       > Reading table information for completion of table and column
>       names
> 
>       > You can turn off this feature to get a quicker startup with
>       -A
> 
>       >
> 
>       > Welcome to the MySQL monitor.  Commands end with ; or \g.
> 
>       > Your MySQL connection id is 3898
> 
>       > Server version: 5.5.46 Source distribution
> 
>       >
> 
>       > Copyright (c) 2000, 2015, Oracle and/or its affiliates. All
>       rights reserved.
> 
>       >
> 
>       > Oracle is a registered trademark of Oracle Corporation and/or
>       its
> 
>       > affiliates. Other names may be trademarks of their respective
> 
>       > owners.
> 
>       >
> 
>       > Type 'help;' or '\h' for help. Type '\c' to clear the current
>       input statement.
> 
>       >
> 
>       > mysql> show databases;
> 
>       > +--------------------+
> 
>       > | Database           |
> 
>       > +--------------------+
> 
>       > | information_schema |
> 
>       > | regress            |
> 
>       > | test               |
> 
>       > +--------------------+
> 
>       > 3 rows in set (0.00 sec)
> 
>       >
> 
>       > mysql> show tables;
> 
>       > +-------------------+
> 
>       > | Tables_in_regress |
> 
>       > +-------------------+
> 
>       > | BaseFiles         |
> 
>       > | CDImages          |
> 
>       > | Client            |
> 
>       > | Counters          |
> 
>       > | Device            |
> 
>       > | File              |
> 
>       > | FileSet           |
> 
>       > | Filename          |
> 
>       > | Job               |
> 
>       > | JobHisto          |
> 
>       > | JobMedia          |
> 
>       > | Location          |
> 
>       > | LocationLog       |
> 
>       > | Log               |
> 
>       > | Media             |
> 
>       > | MediaType         |
> 
>       > | Path              |
> 
>       > | PathHierarchy     |
> 
>       > | PathVisibility    |
> 
>       > | Pool              |
> 
>       > | RestoreObject     |
> 
>       > | Snapshot          |
> 
>       > | Status            |
> 
>       > | Storage           |
> 
>       > | UnsavedFiles      |
> 
>       > | Version           |
> 
>       > +-------------------+
> 
>       > 26 rows in set (0.01 sec)
> 
>       >
> 
>       > mysql> 
> 
>       >
> 
>       >
> 
>       > And from the command line:
> 
>       >
> 
>       > [dan@mysql55:~/src/BaculaRegressionTesting-TRUNK/regress/bin]
>       $ ./bacula-dir -f -c ./bacula-dir.conf -d 200
> 
>       > bacula-dir: dird.c:223-0 Debug level = 200
> 
>       > bacula-dir: runscript.c:296-0 runscript: debug
> 
>       > bacula-dir: runscript.c:297-0  --> RunScript
> 
>       > bacula-dir: runscript.c:298-0   -->
>       
> Command=/usr/home/dan/src/BaculaRegressionTesting-TRUNK/regress/bin/make_catalog_backup.pl
>       MyCatalog
> 
>       > bacula-dir: runscript.c:299-0   --> Target=
> 
>       > bacula-dir: runscript.c:300-0   --> RunOnSuccess=1
> 
>       > bacula-dir: runscript.c:301-0   --> RunOnFailure=0
> 
>       > bacula-dir: runscript.c:302-0   --> FailJobOnError=1
> 
>       > bacula-dir: runscript.c:303-0   --> RunWhen=2
> 
>       > bacula-dir: runscript.c:296-0 runscript: debug
> 
>       > bacula-dir: runscript.c:297-0  --> RunScript
> 
>       > bacula-dir: runscript.c:298-0   -->
> Command=/usr/home/dan/src/BaculaRegressionTesting-TRUNK/regress/bin/delete_catalog_backup
> 
>       > bacula-dir: runscript.c:299-0   --> Target=
> 
>       > bacula-dir: runscript.c:300-0   --> RunOnSuccess=1
> 
>       > bacula-dir: runscript.c:301-0   --> RunOnFailure=0
> 
>       > bacula-dir: runscript.c:302-0   --> FailJobOnError=1
> 
>       > bacula-dir: runscript.c:303-0   --> RunWhen=1
> 
>       > bacula-dir: bsys.c:556-0 Could not open state file. sfd=-1
>       size=192: ERR=No such file or directory
> 
>       > bacula-dir: dir_plugins.c:160-0 Load dir plugins
> 
>       > bacula-dir: dir_plugins.c:162-0 No dir plugin dir!
> 
>       > bacula-dir: dird.c:1015-0 Could not open Catalog "MyCatalog",
>       database "regress".
> 
>       > 18-Jan 01:22 bacula-dir ERROR TERMINATION
> 
>       > Please correct configuration file: ./bacula-dir.conf
> 
>       >
> 
>       >
> 
>       >>
> 
>       >> Best regards,
> 
>       >> Kern
> 
>       >>
> 
>       >> On 01/15/2016 04:49 PM, Dan Langille wrote:
> 
>       >>>> On Jan 15, 2016, at 7:42 AM, Heitor Faria
>       <hei...@bacula.com.br <mailto:hei...@bacula.com.br> 
> <mailto:hei...@bacula.com.br> <mailto:hei...@bacula.com.br>>
>       wrote:
> 
>       >>>>
> 
>       >>>> Hello Dan,
> 
>       >>>>
> 
>       >>>>> All regression testing is failing on my
>       nodes:
> 
>       >>>>>
> 
>       >>>>>
> 
>       >>>>> ==>Entering directory
> 
>       >>>>>
> /usr/home/dan/src/BaculaRegressionTesting-TRUNK/regress/build/src/plugins/fd
> 
>       >>>>>
>       /usr/home/dan/src/BaculaRegressionTesting-TRUNK/regress/build/libtool
>       --silent
> 
>       >>>>> --tag=CXX --mode=compile /usr/bin/c++    -g
>       -O2 -Wall -I../.. -I../../filed -c
> 
>       >>>>> bpipe-fd.c
> 
>       >>>>> c++: warning: treating 'c' input as 'c++'
>       when in C++ mode, this behavior is
> 
>       >>>>> deprecated
> 
>       >>>>> In file included from bpipe-fd.c:34:
> 
>       >>>>> In file included from ../../bacula.h:175:
> 
>       >>>>> In file included from ../../lib/lib.h:40:
> 
>       >>>>> ../../lib/dlist.h:207:10: warning: private
>       field 'm_link' is not used
> 
>       >>>>> [-Wunused-private-field]
> 
>       >>>>> dlink m_link;
> 
>       >>>>>      ^
> 
>       >>>>> 1 warning generated.
> 
>       >>>> What version are you using? According to Kern
>       this was a false warning.
> 
>       >>>> Anyway there is a closed bug report filled by
>       Martin: http://sourceforge.net/p/bacula/mailman/message/32687776/ 
> <http://sourceforge.net/p/bacula/mailman/message/32687776/>
> 
>       >>>> It resulted in a patch to Bacula 7.0.6.
> 
>       >>>
> 
>       >>> These are building Bacula 5.2.13
> 
>       >>>
> 
>       >>> I also run regression tests on 7.x but they seem OK
>       over the past 24 hours.
> 
>       >>>
> ------------------------------------------------------------------------------
> 
>       >>> Site24x7 APM Insight: Get Deep Visibility into
>       Application Performance
> 
>       >>> APM + Mobile APM + RUM: Monitor 3 App instances at
>       just $35/Month
> 
>       >>> Monitor end-to-end web transactions and take
>       corrective actions now
> 
>       >>> Troubleshoot faster and improve end-user experience.
>       Signup Now!
> 
>       >>>
>       http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 
> <http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140>
> 
>       >>> _______________________________________________
> 
>       >>> Bacula-devel mailing list
> 
>       >>> Bacula-devel@lists.sourceforge.net 
> <mailto:Bacula-devel@lists.sourceforge.net>
> 
>       >>>
>       https://lists.sourceforge.net/lists/listinfo/bacula-devel 
> <https://lists.sourceforge.net/lists/listinfo/bacula-devel>
> 
>       >>>
> 
>       >>
> 
>       >>
> 
>       >
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> 
> iEYEARECAAYFAlacguMACgkQNgfoSvWqwEhv+ACg+YQO2Wn2qIJv1rwXTrgZgfS+
> BN0AoKyWsU9Pi7gAV0nZpBnJOqDyX186
> =JHUN
> -----END PGP SIGNATURE-----
> 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to