Xymon Mailing List Archive search

Today's Snapshot failed to compile on sparc solaris 9

7 messages in this thread

list Asif Iqbal · Wed, 5 Mar 2008 22:07:55 -0500 ·
(hobbit)@hobbit:~/snapshot/common$ gcc -g -O2 -Wall -Wno-unused
-D_REENTRANT  -DSunOS -I. -I/export/home/hobbit/snapshot/include
-I/usr/local/include -I/usr/include -o bbhostgrep bbhostgrep.o
../lib/libhobbit.a -L/usr/lib -R/usr/lib -lz -lresolv -lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
deflateBound                        ../lib/libhobbit.a(compression.o)
ld: fatal: Symbol referencing errors. No output written to bbhostgrep
collect2: ld returned 1 exit status


-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Lars Ebeling · Thu, 6 Mar 2008 06:35:22 +0100 ·
No problem on HP-UX 11.11

Lars
quoted from Asif Iqbal

----- Original Message ----- 
From: "Asif Iqbal" <user-6f4b51ac2a40@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Thursday, March 06, 2008 4:07 AM
Subject: [hobbit] Today's Snapshot failed to compile on sparc solaris 9

(hobbit)@hobbit:~/snapshot/common$ gcc -g -O2 -Wall -Wno-unused
-D_REENTRANT  -DSunOS -I. -I/export/home/hobbit/snapshot/include
-I/usr/local/include -I/usr/include -o bbhostgrep bbhostgrep.o
../lib/libhobbit.a -L/usr/lib -R/usr/lib -lz -lresolv -lsocket -lnsl
Undefined                       first referenced
symbol                             in file
deflateBound                        ../lib/libhobbit.a(compression.o)
ld: fatal: Symbol referencing errors. No output written to bbhostgrep
collect2: ld returned 1 exit status


-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu

list Henrik Størner · Thu, 6 Mar 2008 07:32:17 +0100 ·
quoted from Asif Iqbal
On Wed, Mar 05, 2008 at 10:07:55PM -0500, Asif Iqbal wrote:
(hobbit)@hobbit:~/snapshot/common$ gcc -g -O2 -Wall -Wno-unused
-D_REENTRANT  -DSunOS -I. -I/export/home/hobbit/snapshot/include
-I/usr/local/include -I/usr/include -o bbhostgrep bbhostgrep.o
../lib/libhobbit.a -L/usr/lib -R/usr/lib -lz -lresolv -lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
deflateBound                        ../lib/libhobbit.a(compression.o)
ld: fatal: Symbol referencing errors. No output written to bbhostgrep
collect2: ld returned 1 exit status
Does it also fail if you add

   ZLIBINCDIR = -I/usr/include
   HOBBITZLIB = -L/usr/lib -lz

to the top-level Makefile ?

If it does, could you try running this command;

    MAKE=make sh ./build/zlib.sh

and report the output? It should be 

    Checking for zlib ...
    Found ZLIB include files in /usr/include
    Found ZLIB libraries in /usr/lib
    zlib version 1.1.3

I believe zlib is part of the standard Solaris install, so it would be
annoying if you didn't have it.


Regards,
Henrik
list Asif Iqbal · Thu, 6 Mar 2008 09:49:42 -0500 ·
quoted from Henrik Størner
On Thu, Mar 6, 2008 at 1:32 AM, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Wed, Mar 05, 2008 at 10:07:55PM -0500, Asif Iqbal wrote:
(hobbit)@hobbit:~/snapshot/common$ gcc -g -O2 -Wall -Wno-unused
-D_REENTRANT  -DSunOS -I. -I/export/home/hobbit/snapshot/include
-I/usr/local/include -I/usr/include -o bbhostgrep bbhostgrep.o
../lib/libhobbit.a -L/usr/lib -R/usr/lib -lz -lresolv -lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
deflateBound                        ../lib/libhobbit.a(compression.o)
ld: fatal: Symbol referencing errors. No output written to bbhostgrep
collect2: ld returned 1 exit status
 Does it also fail if you add

   ZLIBINCDIR = -I/usr/include
   HOBBITZLIB = -L/usr/lib -lz
That is already in the latest snapshot
quoted from Henrik Størner
 to the top-level Makefile ?

 If it does, could you try running this command;

    MAKE=make sh ./build/zlib.sh

 and report the output? It should be

    Checking for zlib ...
    Found ZLIB include files in /usr/include
    Found ZLIB libraries in /usr/lib
    zlib version 1.1.3
I get exact same result

(hobbit)@hobbit:~/snapshot$ MAKE=gmake sh build/zlib.sh
quoted from Henrik Størner
Checking for zlib ...
Found ZLIB include files in /usr/include
Found ZLIB libraries in /usr/lib

zlib version 1.1.4
quoted from Henrik Størner
 I believe zlib is part of the standard Solaris install, so it would be
 annoying if you didn't have it.


 Regards,
 Henrik

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Asif Iqbal · Thu, 6 Mar 2008 10:03:47 -0500 ·
quoted from Asif Iqbal
On Thu, Mar 6, 2008 at 9:49 AM, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On Thu, Mar 6, 2008 at 1:32 AM, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Wed, Mar 05, 2008 at 10:07:55PM -0500, Asif Iqbal wrote:
(hobbit)@hobbit:~/snapshot/common$ gcc -g -O2 -Wall -Wno-unused
-D_REENTRANT  -DSunOS -I. -I/export/home/hobbit/snapshot/include
-I/usr/local/include -I/usr/include -o bbhostgrep bbhostgrep.o
../lib/libhobbit.a -L/usr/lib -R/usr/lib -lz -lresolv -lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
deflateBound                        ../lib/libhobbit.a(compression.o)
ld: fatal: Symbol referencing errors. No output written to bbhostgrep
collect2: ld returned 1 exit status
 Does it also fail if you add

   ZLIBINCDIR = -I/usr/include
   HOBBITZLIB = -L/usr/lib -lz
 That is already in the latest snapshot

 to the top-level Makefile ?

 If it does, could you try running this command;

    MAKE=make sh ./build/zlib.sh

 and report the output? It should be

    Checking for zlib ...
    Found ZLIB include files in /usr/include
    Found ZLIB libraries in /usr/lib
    zlib version 1.1.3
 I get exact same result

 (hobbit)@hobbit:~/snapshot$ MAKE=gmake sh build/zlib.sh

Checking for zlib ...
 Found ZLIB include files in /usr/include
 Found ZLIB libraries in /usr/lib
 zlib version 1.1.4
I do not see deflateBound defined in /usr/include/zlib.h. It only
defined `deflateInit2' and `deflateInit'
quoted from Asif Iqbal
 I believe zlib is part of the standard Solaris install, so it would be
 annoying if you didn't have it.


 Regards,
 Henrik

--
 Asif Iqbal
 PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Henrik Størner · Thu, 6 Mar 2008 16:12:30 +0100 ·
quoted from Asif Iqbal
On Thu, Mar 06, 2008 at 10:03:47AM -0500, Asif Iqbal wrote:
Checking for zlib ...
 Found ZLIB include files in /usr/include
 Found ZLIB libraries in /usr/lib
 zlib version 1.1.4
I do not see deflateBound defined in /usr/include/zlib.h. It only
defined `deflateInit2' and `deflateInit'
Yeah, I think this function was added in zlib 1.2.x. Will find a
work-around for it.


Regards,
Henrik
list Asif Iqbal · Thu, 6 Mar 2008 10:27:22 -0500 ·
quoted from Henrik Størner
On Thu, Mar 6, 2008 at 10:12 AM, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Thu, Mar 06, 2008 at 10:03:47AM -0500, Asif Iqbal wrote:
Checking for zlib ...
 Found ZLIB include files in /usr/include
 Found ZLIB libraries in /usr/lib
 zlib version 1.1.4
I do not see deflateBound defined in /usr/include/zlib.h. It only
defined `deflateInit2' and `deflateInit'
 Yeah, I think this function was added in zlib 1.2.x. Will find a
 work-around for it.
I know it is defined in the zlib.h in opensolaris source code here,
but you probably know that already

  http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/zmod/zlib.h

I don't know if it should work for my this solaris 9 box

 Regards,
 Henrik

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu