Error compiling on OpenIndiana 151.1.7

Asked by Andrew Davis

Like others, I have satisfied all the prerequisites to install Linux DC++, but I've hit an error that I can't seem to find the answer to. I'm getting an "scons: *** [build/release/glade/po/glade.pot] Error 2" when trying to build.

Full install process:

Add SFE Repo to OI:

 pkg set-publisher -p http://pkg.openindiana.org/sfe

Install scons:

 pkg install developer/build/scons

Install BZR:

 pkg install bzr

Install G++ 4.3.3

 pkg install developer/illumos-gcc

Install Boost/pthread

 pkg install system/library/g++/boost
 pkg install system/library/g++/boost/header-boost

Install X11 Header Files:

 pkg install x11/header x11/header/header-xorg

Branch off Linuxcpp trunk with bzr

 bzr branch http://launchpad.net/linuxdcpp/trunk linuxdcpp

 Ran into certificate problems, re-ran with:

  bzr branch -Ossl.cert_reqs=none http://launchpad.net/linuxdcpp/trunk linuxdcpp

Export PATH to ensure I'm using G++ 4.3+ prior to building:

 export PATH="/usr/gcc/4.3/bin/:/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin"

Symlink Boost to pass checks

 ln -s /usr/g++/include/boost /usr/include/boost

Compile LinuxDC++

 scons PREFIX=/usr

My scons checks:
CXX env variable is not set, attempting to use g++
Mkdir("build/sconf")
Checking for g++ >= 4.1...(cached) yes
Checking for pkg-config... yes
Checking for gtk+-2.0 >= 2.12... yes
Checking for gthread-2.0 >= 2.4... yes
Checking for libglade-2.0 >= 2.4... yes
Checking for C++ header file boost/version.hpp... yes
Checking for C header file time.h... yes
Checking for C header file signal.h... yes
Checking for C header file unistd.h... yes
Checking for C library pthread... yes
Checking for C library z... yes
Checking for C library bz2... yes
Checking for C library crypto... yes
Checking for C library ssl... yes
Checking for C library X11... yes
Checking for C header file iconv.h... yes
Checking for iconv(0, (const char **)0, 0, (char**)0, 0) in C library iconv... no
Checking for C header file net/if.h... yes
Checking for libnotify >= 0.4.1... yes
Checking for libnotify >= 0.7... no
Checking bzr revision...(cached) 424

All starts making fine until this happens:

Compiling message catalog build/locale/ar/LC_MESSAGES/libdcpp.mo from dcpp/po/ar.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/bg/LC_MESSAGES/libdcpp.mo from dcpp/po/bg.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/bs/LC_MESSAGES/libdcpp.mo from dcpp/po/bs.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/ca/LC_MESSAGES/libdcpp.mo from dcpp/po/ca.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/cs/LC_MESSAGES/libdcpp.mo from dcpp/po/cs.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/da/LC_MESSAGES/libdcpp.mo from dcpp/po/da.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/de/LC_MESSAGES/libdcpp.mo from dcpp/po/de.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/el/LC_MESSAGES/libdcpp.mo from dcpp/po/el.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/en_CA/LC_MESSAGES/libdcpp.mo from dcpp/po/en_CA.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/en_GB/LC_MESSAGES/libdcpp.mo from dcpp/po/en_GB.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/es/LC_MESSAGES/libdcpp.mo from dcpp/po/es.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/et/LC_MESSAGES/libdcpp.mo from dcpp/po/et.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/fi/LC_MESSAGES/libdcpp.mo from dcpp/po/fi.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/fr/LC_MESSAGES/libdcpp.mo from dcpp/po/fr.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/gl/LC_MESSAGES/libdcpp.mo from dcpp/po/gl.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/he/LC_MESSAGES/libdcpp.mo from dcpp/po/he.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/hr/LC_MESSAGES/libdcpp.mo from dcpp/po/hr.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/hu/LC_MESSAGES/libdcpp.mo from dcpp/po/hu.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/id/LC_MESSAGES/libdcpp.mo from dcpp/po/id.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/is/LC_MESSAGES/libdcpp.mo from dcpp/po/is.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/it/LC_MESSAGES/libdcpp.mo from dcpp/po/it.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/ja/LC_MESSAGES/libdcpp.mo from dcpp/po/ja.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/km/LC_MESSAGES/libdcpp.mo from dcpp/po/km.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/ko/LC_MESSAGES/libdcpp.mo from dcpp/po/ko.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/lt/LC_MESSAGES/libdcpp.mo from dcpp/po/lt.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/lv/LC_MESSAGES/libdcpp.mo from dcpp/po/lv.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/mk/LC_MESSAGES/libdcpp.mo from dcpp/po/mk.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/ml/LC_MESSAGES/libdcpp.mo from dcpp/po/ml.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/ms/LC_MESSAGES/libdcpp.mo from dcpp/po/ms.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/nb/LC_MESSAGES/libdcpp.mo from dcpp/po/nb.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/nl/LC_MESSAGES/libdcpp.mo from dcpp/po/nl.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/pl/LC_MESSAGES/libdcpp.mo from dcpp/po/pl.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/pt/LC_MESSAGES/libdcpp.mo from dcpp/po/pt.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/pt_BR/LC_MESSAGES/libdcpp.mo from dcpp/po/pt_BR.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/ro/LC_MESSAGES/libdcpp.mo from dcpp/po/ro.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/ru/LC_MESSAGES/libdcpp.mo from dcpp/po/ru.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/sk/LC_MESSAGES/libdcpp.mo from dcpp/po/sk.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/sl/LC_MESSAGES/libdcpp.mo from dcpp/po/sl.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/sq/LC_MESSAGES/libdcpp.mo from dcpp/po/sq.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/sr/LC_MESSAGES/libdcpp.mo from dcpp/po/sr.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/sv/LC_MESSAGES/libdcpp.mo from dcpp/po/sv.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/tr/LC_MESSAGES/libdcpp.mo from dcpp/po/tr.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/uk/LC_MESSAGES/libdcpp.mo from dcpp/po/uk.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/zh_CN/LC_MESSAGES/libdcpp.mo from dcpp/po/zh_CN.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Compiling message catalog build/locale/zh_TW/LC_MESSAGES/libdcpp.mo from dcpp/po/zh_TW.po
Usage: msgfmt [-D dir | --directory=dir] [-f | --use-fuzzy]
               [-g] [-o outfile | --output-file=outfile]
               [-s] [--strict] [-v] [--verbose] files ...
Extracting messages to build/release/glade/po/glade.pot from glade/downloadqueue.glade glade/favoritehubs.glade glade/favoriteusers.glade glade/finishedtransfers.glade glade/hash.glade glade/hub.glade glade/mainwindow.glade glade/privatemessage.glade glade/publichubs.glade glade/search.glade glade/settingsdialog.glade glade/sharebrowser.glade glade/transfers.glade
xgettext: illegal option -- default-domain=
xgettext: illegal option -- package-name=
xgettext: illegal option -- msgid-bugs-address=https://translations.launchpad.net/linuxdcpp
xgettext: illegal option -- copyright-holder=LinuxDC++ Team
xgettext: illegal option -- add-comments=TRANSLATORS
xgettext: illegal option -- keyword=_
xgettext: illegal option -- keyword=N_
xgettext: illegal option -- keyword=C_:1c,2
xgettext: illegal option -- keyword=F_
xgettext: illegal option -- keyword=P_:1,2
xgettext: illegal option -- from-code=UTF-8
xgettext: illegal option -- foreign-user
xgettext: illegal option -- no-wrap
xgettext: illegal option -- boost
xgettext: illegal option -- sort-output
xgettext: illegal option -- language=glade
xgettext: illegal option -- output=build/release/glade/po/glade.pot
Usage: xgettext [-a [-x exclude-file]] [-jns][-c comment-tag]
        [-d default-domain] [-m prefix] [-M suffix] [-p pathname] files ...
        xgettext -h
scons: *** [build/release/glade/po/glade.pot] Error 2
scons: building terminated because of errors.

What could be causing this?

Question information

Language:
English Edit question
Status:
Solved
For:
LinuxDC++ Edit question
Assignee:
No assignee Edit question
Solved by:
Razzloss
Solved:
Last query:
Last reply:
Revision history for this message
Best Razzloss (razzloss) said :
#1

Old version of gettext, probably. Try to update gettext and see if it helps. What's the version you're currently using?

Revision history for this message
Andrew Davis (andrewx-t-davis) said :
#2

Thanks Razzloss, that solved my question.

Revision history for this message
Andrew Davis (andrewx-t-davis) said :
#3

For those who stumble across this trying to build their own, here's the complete install instructions:

N scons >= 0.96
Y pkg-config
N g++ >= 4.1
? gtk+-2.0 >= 2.12
Y gthread-2.0 >= 2.4
Y libglade-2.0 >= 2.4
N pthread - Through Boost
Y zlib
Y libbz2
Y libssl
N libboost
Y libnotify (optional)

scons: Reading SConscript files ...
CXX env variable is not set, attempting to use g++
Mkdir("build/sconf")
Checking for g++ >= 4.1...(cached) yes
Checking for pkg-config... yes
Checking for gtk+-2.0 >= 2.12... yes
Checking for gthread-2.0 >= 2.4... yes
Checking for libglade-2.0 >= 2.4... yes
Checking for C++ header file boost/version.hpp... yes
Checking for C header file time.h... yes
Checking for C header file signal.h... yes
Checking for C header file unistd.h... yes
Checking for C library pthread... yes
Checking for C library z... yes
Checking for C library bz2... yes
Checking for C library crypto... yes
Checking for C library ssl... yes
Checking for C library X11... yes
Checking for C header file iconv.h... yes
Checking for iconv(0, (const char **)0, 0, (char**)0, 0) in C library iconv... no
Checking for C header file net/if.h... yes
Checking for libnotify >= 0.4.1... yes
Checking for libnotify >= 0.7... no
Checking bzr revision...(cached) 424

Add SFE Repo to OI:

 pkg set-publisher -p http://pkg.openindiana.org/sfe

Install scons:

 pkg install developer/build/scons

Install BZR:

 pkg install bzr

Install G++ 4.3.3

 pkg install developer/illumos-gcc

Install Boost/pthread

 pkg install system/library/g++/boost
 pkg install system/library/g++/boost/header-boost

Install X11 Header Files:

 pkg install x11/header x11/header/header-xorg

Branch off Linuxcpp trunk with bzr

 bzr branch http://launchpad.net/linuxdcpp/trunk linuxdcpp

 If you run into an issue with certs, use this:

  bzr branch -Ossl.cert_reqs=none http://launchpad.net/linuxdcpp/trunk linuxdcpp

Compile latest gettext from source:

 wget http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.2.tar.gz
 tar -zxvf gettext-0.18.2.tar.gz
 cd gettext-0.18.2
 ./configure
 make
 make install

Export PATH to ensure you're using G++ 4.3+ prior to running setup:

 export PATH="/usr/gcc/4.3/bin/:/usr/local/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/sbin"

Symlink Boost to pass checks

 ln -s /usr/g++/include/boost /usr/include/boost

Compile LinuxDC++

 scons PREFIX=/usr

Install LinuxDC++

 scons install