On Sun, 30 Apr 2006 16:13:06 +0200
Christian Biere wrote:
> > Checking whether socker_get() is available...
> > (Could not compile the test program, socker will not be used)
>
> > $ socker-config --libs
> > -L/usr/local/lib32 -Wl,-rpath,/usr/local/lib32 -lsocker
> > $ socker-config --cflags
> > -I/usr/local/include
> > $ socker-config --version
> > 1
> >
> > I've changed d_socker_get.U so that $socker_ldflags is located
> > right after try.c:
> >
> > 40 elif $cc $ccflags $socker_cflags $ldflags $socker_ldflags \
> > 41 -o try try.c $socker_ldflags >/dev/null 2>&1
> >
> > But that doesn't help (at least manually compilation works here).
>
> Is the duplicate $socker_ldflags above the problem? Could you
> try to the following and tell me what compiler or linker
> errors you get?
>
> cat <<EOC > try.c
> #include <socker.h>
> int main(void) { int fd = socker_get(1, 2, 3, "", 5); return 0; }
> EOC
> cc $(socker-config --cflags) $(socker-config --libs) -o try try.c
$ gcc -L/usr/local/lib32 -Wl,-rpath,/usr/local/lib32 -lsocker -o try try.c
ld32: WARNING 84: /usr/local/lib32/libsocker.so is not used for resolving any
symbol.
ld32: ERROR 33: Unresolved data symbol "socker_get" -- 1st referenced by
/var/tmp//ccWpxREF.o.
Use linker option -v to see when and which objects, archives and dsos
are loaded.
ld32: INFO 152: Output file removed because of error.
collect2: ld returned 2 exit status
while
$ gcc -L/usr/local/lib32 -o try try.c -Wl,-rpath,/usr/local/lib32 -lsocker
$
--
Daichi
pgpJdCSpbkd9x.pgp
Description: PGP signature
