gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiling gnokii under Mac OS X 10.6 (snow leopard)


From: Gustavo Delfino
Subject: Compiling gnokii under Mac OS X 10.6 (snow leopard)
Date: Wed, 30 Sep 2009 08:18:51 -0430

In order to get a newer compiler, I have upgraded my laptop to Mac OS X 10.6 Snow Leopard:

$gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable- checking --enable-werror --prefix=/usr --mandir=/share/man --enable- languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ $/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx- include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- -- host=x86_64-apple-darwin10 --target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5646)

After the upgrade, I removed all the packages from my old MacPorts installation (rm -rf /opt) and reinstalled MacPorts in order to easily obtain gnokii required libs. In particular I have installed:

$port list installed
autoconf                       @2.64           devel/autoconf
automake                       @1.11           devel/automake
expat                          @2.0.1          textproc/expat
gettext                        @0.17           devel/gettext
glib2                          @2.22.0         devel/glib2
gperf                          @3.0.4          devel/gperf
help2man                       @1.36.4         textproc/help2man
libical                        @0.43           devel/libical
libiconv                       @1.13           textproc/libiconv
libtool                        @2.2.6a         devel/libtool
libtool-devel                  @2.3a           devel/libtool-devel
m4                             @1.4.13         devel/m4
ncurses                        @5.7            devel/ncurses
ncursesw                       @5.7            devel/ncursesw
p5-locale-gettext              @1.05           perl/p5-locale-gettext
p5-xml-namespacesupport @1.10 perl/p5-xml- namespacesupport
p5-xml-parser                  @2.36           perl/p5-xml-parser
p5-xml-sax                     @0.96           perl/p5-xml-sax
p5-xml-sax-expat               @0.40           perl/p5-xml-sax-expat
perl5                          @5.8.9          lang/perl5
perl5.8                        @5.8.9          lang/perl5.8
pkgconfig                      @0.23           devel/pkgconfig

I also reinstalled mysql.

Then I removed my old gnokii directory in order to start the process from scratch:

$git clone git://git.savannah.nongnu.org/gnokii.git

$glibtoolize -c -f
glibtoolize: putting auxiliary files in `.'.
glibtoolize: copying file `./ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
glibtoolize: copying file `m4/libtool.m4'
glibtoolize: copying file `m4/ltoptions.m4'
glibtoolize: copying file `m4/ltsugar.m4'
glibtoolize: copying file `m4/ltversion.m4'
glibtoolize: copying file `m4/lt~obsolete.m4'

$glib-gettextize -f
Symlinking file mkinstalldirs
Symlinking file po/Makefile.in.in
Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

$intltoolize --force --copy --automake

$aclocal -I m4

$autoheader -I m4

$automake --add-missing
configure.in:52: installing `./compile'
configure.in:38: installing `./config.guess'
configure.in:38: installing `./config.sub'
configure.in:46: installing `./install-sh'
configure.in:46: installing `./missing'
common/Makefile.am: installing `./depcomp'

$autoconf

$./configure --without-x --enable-xdebug > my_configure.txt

Attachment: my_configure.txt
Description: Text document



The make fails to compile everything successfully:

$make
(...)
ld: warning: in /opt/local/lib/libgmodule-2.0.dylib, file is not of required architecture ld: warning: in /opt/local/lib/libglib-2.0.dylib, file is not of required architecture ld: warning: in /opt/local/lib/libintl.dylib, file is not of required architecture ld: warning: in /opt/local/lib/libiconv.dylib, file is not of required architecture ld: warning: in ../common/.libs/libgnokii.dylib, file is not of required architecture
(...)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [smsd] Error 1
make: *** [all-recursive] Error 1

Attachment: my_make.txt
Description: Text document



I have attached the full configure and make output. May this be related to 32 vs 64bit issues?

Regards,

Gustavo Delfino


Now a having trouble compiling gnokii. I think that 32bit and 64bit libs are getting mixed. After
reply via email to

[Prev in Thread] Current Thread [Next in Thread]