Opened 12 years ago

Closed 11 years ago

#38660 closed defect (worksforme)

Can't upgrade to bacula 5.2.13 (fd only)

Reported by: fyzzics@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: mf2k (Frank Schima), robertoschwald (Robert Oschwald), piotr1212@…
Port: bacula

Description (last modified by mf2k (Frank Schima))

Error: org.macports.destroot for port bacula returned: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_bacula/bacula/work/destroot/opt/local/etc/bacula/bconsole.conf" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_bacula/bacula/work/destroot/opt/local/etc/bacula/bconsole.conf.example": file already exists

Attachments (1)

main.log (178.8 KB) - added by fyzzics@… 12 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Description: modified (diff)
Port: bacula added
Resolution: worksforme
Status: newclosed

This is not enough information to work with. Please supply the command you are using to install bacula and the complete main.log after cleaning the port first.

comment:2 Changed 12 years ago by mf2k (Frank Schima)

Also, in the future, use WikiFormatting, fill in the Port field and Cc the port maintainer(s).

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Cc: macsforever2000@… robertoschwald@… added

Changed 12 years ago by fyzzics@…

Attachment: main.log added

comment:4 Changed 12 years ago by fyzzics@…

Resolution: worksforme
Status: closedreopened

Sorry for not filling in the form right, and getting the formatting wrong. Can we try again?

I am running macports on macos 10.7.4 with Xcode version 4.5.1. I have bacula @5.2.12_0+client_only installed and was attempting to upgrade to @5.2.13 when I got the errors. After cleaning the port with "sudo port clean --all bacula", I attempted to upgrade the bacula port again with "sudo port upgrade bacula". This command resulted in the following error:

Error: org.macports.destroot for port bacula returned: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_bacula/bacula/work/destroot/opt/local/etc/bacula/bat.conf": no such file or directory

which is a little different from the last error. Please let me know if you need any other data that will help fix this and allow macports to upgrade my bacula client properly. Thanks.

comment:5 Changed 12 years ago by mf2k (Frank Schima)

It appears the real error is here:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_bacula/bacula/work/bacula-5.2.13/libtool --silent --tag=CXX --mode=link /usr/bin/clang++ -headerpad_max_install_names -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.7 -o bat.app/Contents/MacOS/bat obj/main.o obj/bat_conf.o obj/mainwin.o obj/qstd.o obj/pages.o obj/dircomm.o obj/dircomm_auth.o obj/console.o obj/prerestore.o obj/restore.o obj/brestore.o obj/label.o obj/relabel.o obj/mount.o obj/run.o obj/runcmd.o obj/estimate.o obj/prune.o obj/select.o obj/textinput.o obj/medialist.o obj/mediaview.o obj/mediaedit.o obj/joblist.o obj/clients.o obj/storage.o obj/content.o obj/fileset.o obj/joblog.o obj/job.o obj/jobs.o obj/restoretree.o obj/help.o obj/mediainfo.o obj/dirstat.o obj/clientstat.o obj/storstat.o obj/fmtwidgetitem.o obj/comboutil.o obj/moc_mainwin.o obj/moc_dircomm.o obj/moc_console.o obj/moc_restore.o obj/moc_label.o obj/moc_relabel.o obj/moc_mount.o obj/moc_run.o obj/moc_select.o obj/moc_textinput.o obj/moc_medialist.o obj/moc_mediaview.o obj/moc_mediaedit.o obj/moc_joblist.o obj/moc_clients.o obj/moc_storage.o obj/moc_content.o obj/moc_fileset.o obj/moc_joblog.o obj/moc_job.o obj/moc_jobs.o obj/moc_restoretree.o obj/moc_help.o obj/moc_mediainfo.o obj/moc_dirstat.o obj/moc_clientstat.o obj/moc_storstat.o obj/qrc_main.o   -F/opt/local/Library/Frameworks -F/opt/local/lib  -L../lib -lbaccfg -lbac -L../findlib -lbacfind -L/opt/local/lib -lssl -lcrypto -F/opt/local/Library/Frameworks -F/opt/local/lib -framework QtGui,_debug -framework QtCore -framework QtCore,_debug
:info:build Undefined symbols for architecture x86_64:
:info:build   "_libintl_gettext", referenced from:
:info:build       _gettext in main.o
:info:build       _gettext in bat_conf.o
:info:build       _gettext in dircomm.o
:info:build       _gettext in dircomm_auth.o
:info:build       _gettext in console.o
:info:build       _gettext in mediaview.o
:info:build ld: symbol(s) not found for architecture x86_64

Please supply the output of the following:

  • uname -a
  • xcodebuild -version
  • port -d installed gettext
Last edited 12 years ago by mf2k (Frank Schima) (previous) (diff)

comment:6 Changed 12 years ago by mf2k (Frank Schima)

Also, please try upgrading Xcode to 4.6.1 including the command line tools.

comment:7 Changed 12 years ago by fyzzics@…

Thanks for the help. Here are the outputs from the commands you asked about:

astrolabe% uname -a
Darwin astrolabe.local 11.4.2 Darwin Kernel Version 11.4.2: Wed May 30 20:13:51 PDT 2012; root:xnu-1699.31.2~1/RELEASE_X86_64 x86_64
astrolabe% xcodebuild -version
Xcode 4.5.1
Build version 4G1004
astrolabe% port installed gettext
The following ports are currently installed:
  gettext @0.18.1.1_2
  gettext @0.18.2_1
  gettext @0.18.2_2
  gettext @0.18.2.1_0 (active)

Will install Xcode 4.6.1 and see what happens...

comment:8 Changed 12 years ago by mf2k (Frank Schima)

Don't forget the -d in this command:

port -d installed gettext

I want to see the installed architecture for gettext. While we are at it, please also let us know the output of the following:

  • otool -L /opt/local/lib/libintl.8.dylib
  • file /opt/local/lib/libintl.8.dylib

comment:9 Changed 12 years ago by fyzzics@…

OK, installed Xcode 4.6.1 with command tools, and bacula compiles and loads properly. Didn't know that 4.6.1 was needed. Sorry.

Here are the outputs from the commands:

astrolabe% port -d installed gettext
The following ports are currently installed:
  gettext @0.18.1.1_2 platform='darwin 11' archs='x86_64'
  gettext @0.18.2_1 platform='darwin 11' archs='x86_64'
  gettext @0.18.2_2 platform='darwin 11' archs='x86_64'
  gettext @0.18.2.1_0 (active) platform='darwin 11' archs='x86_64'
astrolabe% otool -L /opt/local/lib/libintl.8.dylib
/opt/local/lib/libintl.8.dylib:
	/opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.2.0)
	/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 635.21.0)
astrolabe% file /opt/local/lib/libintl.8.dylib
/opt/local/lib/libintl.8.dylib: Mach-O 64-bit dynamically linked shared library x86_64

Thanks much for your help.

Last edited 12 years ago by fyzzics@… (previous) (diff)

comment:10 Changed 12 years ago by piotr1212@…

Cc: piotr1212@… added

Cc Me!

comment:11 Changed 12 years ago by piotr1212@…

I have the same problem. I can't upgrade xcodetools as I'm using osx 10.6.8 for which the latest xcode is 4.2. Is there a way to get this working with xcode 4.2 ?

comment:12 Changed 11 years ago by mf2k (Frank Schima)

Cc: mf2k@… added; macsforever2000@… removed
Resolution: worksforme
Status: reopenedclosed

The reporter of this ticket says it works for him. There are about 3 different issues being reported in the comments. If you are still having a problem, open a new ticket with the complete main.log file.

Note: See TracTickets for help on using tickets.