From: John R. <jo...@id...> - 2004-01-28 08:31:19
|
Hi, Ok, I figured out how to add the "-lz" to the to configure and was able to compile the rlib source. FANTASTIC! However, I still get the following warnings: pcode.c: In function `rlib_new_operand': pcode.c:233: warning: subscript has type `char' pcode_op_functions.c: In function `rlib_pcode_operator_stod_common': pcode_op_functions.c:829: warning: implicit declaration of function `localtime_r' formatstring.c: In function `rlib_number_sprintf': formatstring.c:57: warning: subscript has type `char' datasource.c: In function `rlib_add_datasource_mysql_private': datasource.c:49: warning: dereferencing type-punned pointer will break strict-aliasing rules datasource.c:50: warning: dereferencing type-punned pointer will break strict-aliasing rules environment.c: In function `rlib_php_resolve_memory_variable': environment.c:28: warning: dereferencing type-punned pointer will break strict-aliasing rules Should i be worried about these? Thanks again for all your help!!! Regards, John ----- Original Message ----- From: "Bob Doan" <bd...@si...> To: "John Richardson" <jo...@id...> Cc: "RLIB USERS" <rli...@li...> Sent: Thursday, January 22, 2004 5:00 PM Subject: Re: [Rlib-users] Warning Messages in Solaris Compile > Hey.. I think I found all the problems except for > pointer warning... which I have never seen before.. the way I'm using > it.. are you 64 bit by any chance??? > > <Note to Chet> > Chet... do you know what that pointer stuff is all about? > </Note to Chet> > > So I upload 1.1.8 again... try again... it will fix the subscripts I > think > > next problem is that odd SUN symbol... which I have never seen before.. > I suspect it is a RLIB dependency that is bringing it in.. so lets try > this... can you start disabling rlib features one @ a time.. like mysql > use --disable-mysql see ./configure --help for them all... make sure > rlib is compiling bare bones.. see if we are ok... > > I suspect it is the mysql client that is bringing in that odd SUN symbol > for compression on the wire.. if it is then on solaris we will need to > link w/ something else... OR it is cpdflib using zlib and we are not > linking that in automatically on solaris... maybe try adding in a -lz in > the link?? let me know if any of that works > > can you tell me how you plan on using rlib.. with what features?? (like > mysql && php).. or whatever > > - Bob > > > On Thu, 2004-01-22 at 15:27, John Richardson wrote: > > Hello, > > I am running Solaris version 8 using gcc compiler version 3.3.2. When > > compiling rlib, I get the following warnings: > > > > resolution.c: In function `rlib_resolve_resultset_field': > > resolution.c:86: warning: subscript has type `char' > > make[1]: *** [resolut.ion.lo] Error 1 > > make[1]: Leaving directory `/export/home/ric0017/rlib-1.1.8/libsrc' > > > > ======= > > > > util.c: In function `hextochar': > > util.c:162: warning: subscript has type `char' > > util.c: In function `colornames': > > util.c:170: warning: subscript has type `char' > > > > ======= > > > > resolution.c: In function `rlib_resolve_resultset_field': > > resolution.c:86: warning: subscript has type `char' > > source='util.c' object='util.lo' libtool=yes \ > > depfile='.deps/util.Plo' tmpdepfile='.deps/util.TPlo' \ > > > > > > ======= > > > > datasource.c: In function `rlib_add_datasource_mysql_private': > > datasource.c:49: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > datasource.c:50: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > > > ======== > > > > However, When I compile without the "Werror" in the Makefile, it > > ignores the warning but errors out with the following: > > > > /export/home/ric0017/rlib-1.1.8/libsrc/.libs/libr.so: undefined > > reference to `compress@SUNW_1.1' > > collect2: ld returned 1 exit status > > make[1]: *** [rlibc] Error 1 > > make[1]: Leaving directory `/export/home/ric0017/rlib-1.1.8/bin' > > make: *** [all-recursive] Error 1 > > > > Your help is much appreciated. > > > > Regards, > > John Richardson > > > > > > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Rlib-users mailing list > Rli...@li... > https://lists.sourceforge.net/lists/listinfo/rlib-users |