[Top][All Lists]

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

Re: gnokii can be compiled on solaris

From: Pawel Kot
Subject: Re: gnokii can be compiled on solaris
Date: Wed, 17 Apr 2002 08:10:18 +0200 (CEST)

On Wed, 17 Apr 2002, Marcus Pallinger wrote:

> > I managed to compile the current CVS on Solaris 9 beta. I had no time to
> > test it, but it should work. If you want to compile don't forget to
> > install flex. The bundled lex won't compile the vcal.lx file. This is
> > a cvs snapshot, so working autoconf and autoheader is needed...
> On Solaris 8, I'm getting lots of warnings about:
> ../../include/misc.h:151: warning: redefinition of `u_char'
> /usr/include/sys/types.h:532: warning: `u_char' previously declared here

Could you please check what defines do you have around u_char?

> Plus I still get:
> gcc -shared -o cfgreader.o device.o gsm-ringtones.o gsm-api.o 
> gsm-networks.o vcal.o misc.o gsm-sms.o gsm-bitmaps.o gsm-common.o 
> gsm-encoding.o gsm-error.o gsm-statemachine.o compat.o snprintf.o 
> phones/PHONES.o links/LINKS.o devices/DEVICES.o
> Text relocation remains                         referenced
>     against symbol                  offset      in file

-fPIC should help. Or ./configure --disable-shared

> When compiling statically (configure --disable-shared) xgnokii
> does not link:
> gcc  -L../common -lgnokii xgnokii.o xgnokii_common.o xgnokii_contacts.o 
> xgnokii_sms.o xgnokii_netmon.o xgnokii_dtmf.o xgnokii_cfg.o xgnokii_speed.o 
> xgnokii_xkeyb.o xgnokii_calendar.o xgnokii_logos.o xgnokii_lowlevel.o 
> xgnokii_data.o ../common/data/DATA.o ../common/gsm-filetypes.o -lsocket    
> -L/usr/openwin/lib -lXpm -lX11 -lpthread -L/usr/local/lib -lgtk -lgdk 
> -lgmodule -lglib -ldl -lXext -lX11 -lsocket -lnsl -lm -o xgnokii

What if you revert the last xgnokii Makefile patch?
1. Remove GLDLIBS from the gcc options line
2. s/GLDLIBS/LDLIBS/ above

> Command line gnokii works okay:
> % ./gnokii --identify
> GNOKII Version 0.4.0pre17
> Manufacturer : Nokia
> Model        : NSE-3
> Revision     : SW05.48, HW4300

Good :-)

mailto:address@hidden :: mailto:address@hidden :: Kernel Traffic po polsku

reply via email to

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