libv4l-0.1 compiule problem
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 Code:
bash-3.1$ ls /var/log/packages/glibc* 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. |
Quote:
Second, your problem is that the -shared flag isn't specified in the gcc command to create the .so library. |
Thanks for the reply John. Adding the shared flag to CFLAGS and LDFLAGS allowed it to compile. Thank heavens for search options in a man page!
Just FYI Here's what ctrl.o shows from readelf Code:
There are no program headers in this file. |
Ah - don't know what option you're passing to readelf, but if you use --symbols you'll get output like:
Code:
Symbol table '.symtab' contains 25 entries: Code:
$ nm /usr/lib/crt1.o |
Thx. I passed readelf the '-a'. I'm not a programmer, but an LFS builder, so one gets fairly competent at failed compiles without fully knowing what is going on.
|
All times are GMT -5. The time now is 02:13 AM. |