Hi,
I am trying to compile libgadu 1.11.0 on Solaris 9 Sparc with Sun Studio 12 and
there are some issues:
- Binding 10 127.0.67.67 does not work on Solaris as the IP adress is usually no
bound on the local machine. Using 127.0.0.1 works. Is there a specific reason
why 127.0.67.67 is used in favor of the standard IP? The attached patch 0001
reverts this and is needed on Solaris. It could be shielded by a
#if defined(__sun)
if necessary.
- The Makefile in tests/automatic unconditionally sets some gcc specific flags
which
confuse the (non-gcc) Sun Studio compiler. The flags could either be detected
during
autoconf time or probably dropped completely so the standard CFLAGS from the
main
autoconf is inherited. Patch 0002 removes it for Solaris for now.
- There are tests failing which are probably due to wrong detected sizes of data
types. However, I don't have enough insight to easily spot the point where
this
happens. The comparison looks like this:
# - There are tests failing, this is serious as some fields seem to have the
wrong size:
#
# File: script/00-login.scr, Line: 45
# Invalid data length 150 vs expected 147
#
# 0000: 31 00 00 00 8e 00 00 00 56 34 12 00 70 6c 01 09 1.......V4..pl..
# 0010: ad 7d 58 00 00 00 00 00 00 00 00 00 00 00 00 00 .}X.............
# 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
# 0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
# 0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
# 0050: 16 00 00 00 44 33 22 11 37 27 00 00 00 00 00 00 ....D3".7'......
# 0060: 00 00 00 00 00 00 00 00 00 00 ff 64 1e 00 00 00 ...........d....
# 0070: 47 61 64 75 2d 47 61 64 75 20 43 6c 69 65 6e 74 Gadu-Gadu Client
# 0080: 20 42 75 69 6c 64 20 31 2e 32 2e 33 2e 34 04 00 Build 1.2.3.4..
# 0090: 00 00 54 65 73 74 ..Test
#
# expect data (
# 31 00 00 00, auto, 56 34 12 00, "pl", 01, 09 -> OK
# ad 7d 58 00*60, -> too long by 1
# 16 00 00 00, 44 33 22 11, 37 27 00 00, 00 00 00 00, -> OK
# 00 00, 00 00 00 00, 00 00, ff, 64, 1e 00 00 00, -> too long by 2
# "Gadu-Gadu", 20, "Client", -> OK
# 20, "Build", 20, "1.2.3.4", 04 00 -> OK
# 00 00, "Test") -> OK
Any advice on a fix would be nice.
If needed I can provide you with an upstream account to our Solaris buildfarm:
https://www.opencsw.org/extend-it/signup/to-upstream-maintainers/
Best regards
-- Dago
--
"You don't become great by trying to be great, you become great by wanting to
do something,
and then doing it so hard that you become great in the process." - xkcd #896
_______________________________________________
libgadu-devel mailing list
[email protected]
http://lists.ziew.org/mailman/listinfo/libgadu-devel