Subject: pkg/33077: sysutils/bacula problems on Solaris with SunStudio compilers
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <segv@netctl.net>
List: pkgsrc-bugs
Date: 03/14/2006 12:25:00
>Number: 33077
>Category: pkg
>Synopsis: sysutils/bacula problems on Solaris with SunStudio compilers
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 14 12:25:00 +0000 2006
>Originator: segv
>Release:
>Organization:
>Environment:
SunOS e450-lan 5.11 snv_28 sun4u sparc SUNW,Ultra-4
>Description:
==>Entering directory /opt/pkg.obj/sysutils/bacula/work.e450-lan/bacula-1.38.4/src/dird
/opt/pkg.obj/sysutils/bacula/work.e450-lan/.wrapper/bin/CC -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L../lib -L../cats -L../findlib -o bacula-dir dird.o admin.o authenticate.o autoprune.o backup.o bsr.o catreq.o dird_conf.o expand.o fd_cmds.o getmsg.o inc_conf.o job.o jobq.o mac.o mountreq.o msgchan.o next_vol.o newvol.o pythondir.o recycle.o restore.o run_conf.o scheduler.o sql_cmds.o ua_acl.o ua_cmds.o ua_dotcmds.o ua_query.o ua_input.o ua_label.o ua_output.o ua_prune.o ua_purge.o ua_restore.o ua_run.o ua_select.o ua_server.o ua_status.o ua_tree.o ua_update.o verify.o -lsql -lfind -lbac -lm -L/opt/pkg/lib -lsqlite3 -lpthread -lgen -lresolv -lnsl -lsocket -lxnet -lpthread -lrt -lintl -lresolv
Undefined first referenced
symbol in file
int do_messages(UAContext*,const char*) ua_dotcmds.o
ld: fatal: Symbol referencing errors. No output written to bacula-dir
*** Error code 1
Stop.
bmake: stopped in /opt/pkg.obj/sysutils/bacula/work.e450-lan/bacula-1.38.4/src/dird
In bacula-1.38.4/src/dird/ua_output.c 'do_messages' functions is declared as:
void do_messages(UAContext *ua, const char *cmd)
then in bacula-1.38.4/src/dird/ua_output.c it is referenced as:
extern int do_messages(UAContext *ua, const char *cmd);
which causes problems
>How-To-Repeat:
>Fix:
--- bacula-1.38.4/src/dird/ua_dotcmds.c.orig Tue Mar 14 12:07:49 2006
+++ bacula-1.38.4/src/dird/ua_dotcmds.c Tue Mar 14 12:08:08 2006
@@ -37,7 +37,7 @@
extern int console_msg_pending;
/* Imported functions */
-extern int do_messages(UAContext *ua, const char *cmd);
+extern void do_messages(UAContext *ua, const char *cmd);
extern int quit_cmd(UAContext *ua, const char *cmd);
extern int qhelp_cmd(UAContext *ua, const char *cmd);
extern int qstatus_cmd(UAContext *ua, const char *cmd);