[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnokii can be compiled on solaris
From: |
Marcus Pallinger |
Subject: |
Re: gnokii can be compiled on solaris |
Date: |
Wed, 17 Apr 2002 17:14:49 +1000 |
User-agent: |
Mutt/1.3.28i |
> > > 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?
misc.h lines 150-153:
#if (!defined _BSD_SOURCE) && (!defined _BSDTYPES_DEFINED)
typedef unsigned char u_char;
#endif
Sounds like this is another candidate for autoconfing...
> > Text relocation remains referenced
> > against symbol offset in file
> -fPIC should help. Or ./configure --disable-shared
Oh, hte post that I was replying to said that it compiled on solaris, so I
thoguht I'd see if it worked... I knew of this problem, just pointing it out
that it still exited :)
> > When compiling statically (configure --disable-shared) xgnokii
> > does not link:
> What if you revert the last xgnokii Makefile patch?
> 1. Remove GLDLIBS from the gcc options line
> 2. s/GLDLIBS/LDLIBS/ above
The following patch fixes it:
Index: Makefile
===================================================================
RCS file: /cvsroot/gnokii/gnokii/xgnokii/Makefile,v
retrieving revision 1.45
diff -u -r1.45 Makefile
--- Makefile 14 Apr 2002 16:57:39 -0000 1.45
+++ Makefile 17 Apr 2002 07:12:56 -0000
@@ -51,7 +51,7 @@
xgnokii: $(OBJS) $(TOPDIR)/common/data/DATA.o $(TOPDIR)/common/gsm-filetypes.o
$(TOPDIR)/common/$(GNOKII_LIB)
- $(CC) $(LDFLAGS) $(GLDLIBS) $(OBJS) $(TOPDIR)/common/data/DATA.o
$(TOPDIR)/common/gsm-filetypes.o $(LDLIBS) -o $@
+ $(CC) $(LDFLAGS) $(OBJS) $(TOPDIR)/common/data/DATA.o
$(TOPDIR)/common/gsm-filetypes.o $(GLDLIBS) $(LDLIBS) -o $@
clean:
$(RM) $(OBJS) *~ xpm/*~ depend xgnokii
> > Command line gnokii works okay:
> > % ./gnokii --identify
> > GNOKII Version 0.4.0pre17
> > IMEI : XXXXXXXXXXXXXXX
> > Manufacturer : Nokia
> > Model : NSE-3
> > Revision : SW05.48, HW4300
> Good :-)
I aggree. :)
--
Marcus Pallinger Supertech Project Management
Systems Analyst - Programmer Level 1, 3 Bowen Cres.
Phone: +61 3 9866 6866 Melbourne, VIC 3004
Fax: +61 3 9866 6262 Australia
========================================================================
Drivers are strictly forbidden to drive their car in the opposite
direction to the race -- FIA F1 Sporting Regulations (Section 90)