cancel
Showing results for 
Search instead for 
Did you mean: 

Compilation incompatibility with libvcsagfw.so under SLES10

cdev
Level 2
Partner Accredited
I am getting the following error when trying to compile a custom agent:

/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libvcsagfw.so when searching for -lvcsagfw
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: cannot find -lvcsagfw
collect2: ld returned 1 exit status
make: *** [agent] Error 1

It looks like the make process is failing because the library is incompatible.

Any ideas on how to resolve this?
4 REPLIES 4

M__Braun
Level 5
Employee
Which VCS version is used (incl. MP level)?

Regards

Manuel


cdev
Level 2
Partner Accredited

version 4.1 MP4

M__Braun
Level 5
Employee
There seems to be no obvious reason for this error. Could you please open a support case for this.

Thanks

Manuel

M__Braun
Level 5
Employee
I got some additional feedback.

"We do not have 64-bit libraries for agent framework. Hence, we need to pass –m32 flag to the compiler to make 32-bit binaries. The diff is as follows:

[root@vcslinux133 Sample.bk]# diff Makefile ../Sample/Makefile
23,24c23
< CFLAGS=               $(OPT_DEBUG) $(PLATFORM) -m32
< CCLINK_FLAGS= -m32
---
> CFLAGS=         $(OPT_DEBUG) ${PLATFORM}
43c42
< NEED_LIBS=    -lvcsagfw  -lnsl -lcrypt -lpthread -lrt
---
> NEED_LIBS=    -lvcsagfw  -lnsl -lcrypt -lpthread
47c46
< $(OBJECTS):   $(CSOURCES)
---
> .o:
"


Regards

Manuel