Hi. I grabbed the latest source, compiled it for 64 bit, made clean and then wanted a 32 bit version. The site
http://hansdegoede.livejournal.com/7622.html gives this line
make PREFIX=/usr CFLAGS=-m32 LDFLAGS=-m32
That failed for the lack of libv4lconvert.h (in ../include). A symlink fixed that. Now I get this
Code:
gcc -fpic -m32 -o libv4lconvert/spca501.o -c libv4lconvert/spca501.c
gcc -fpic -m32 -o libv4lconvert/bayer.o -c libv4lconvert/bayer.c
gcc -m32 -Wl,-soname,libv4lconvert.so.0 -o lib/libv4lconvert.so.0 libv4lconvert/libv4lconvert.o libv4lconvert/tinyjpeg.o libv4lconvert/jidctflt.o libv4lconvert/spca561-decompress.o libv4lconvert/rgbyuv.o libv4lconvert/spca501.o libv4lconvert/bayer.o
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.4/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [lib/libv4lconvert.so.0] Error 1
which, at a guess, is glibc related My installed glibc stuff is
Code:
bash-3.1$ ls /var/log/packages/glibc*
/var/log/packages/glibc-2.7-x86_64_slamd64-9 /var/log/packages/glibc-solibs-2.7-x86_64_slamd64-9
/var/log/packages/glibc-i18n-2.7-noarch_slamd64-9 /var/log/packages/glibc-zoneinfo-2.7-noarch_slamd64-9
/var/log/packages/glibc-profile-2.7-x86_64_slamd64-9 /var/log/packages/glibc32-2.7-x86_64_slamd64-9
Any ideas please? I do seem to have a 32bit compat library there.
Edit: /usr/lib64/gcc/x86_64-slamd64-linux/4.2.4/../../../../lib/crt1.o actually exists, is 32 bit and has a function called 'main' according to readelf :-o.