LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-02-2005, 09:53 PM   #1
jelgavchik
Member
 
Registered: Dec 2004
Location: Latvia
Distribution: slackware
Posts: 77

Rep: Reputation: 15
camserv v 0.5.1 "make" error


Hello, i have webcamera creative blaster webcam 3, i have enabled for it a driver for chip and for camera, and the system shows it has fixed a cam, but when i want to install software to broadcast over the web, it gives me error when i do "make", but at ./configure step everything is fine. Here is output for "make":

main_loop.o(.text+0x1a5): In function `accept_client':
/root/camserv-0.5.1/camserv/main_loop.c:145: undefined reference to `errno'
main_loop.o(.text+0xf84): In function `main_loop':
/root/camserv-0.5.1/camserv/main_loop.c:446: undefined reference to `errno'
picture_loop.o(.text+0x6a5):/root/camserv-0.5.1/camserv/picture_loop.c:315: more undefined references to `errno' follow
collect2: ld returned 1 exit status
make[1]: *** [camserv] Error 1
make[1]: Leaving directory `/root/camserv-0.5.1/camserv'
make: *** [all-recursive] Error 1
root@server:~/camserv-0.5.1#

Maybe anyone can help me fix this problem.
 
Old 04-02-2005, 11:20 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
try:

make LDFLAGS="-L/lib"

or:

export LD_LIBRARY_PATH=/lib:$LD_LIBRARY_PATH

neither should be neccessary but for some reason the package isn't trying to link libc ( the c library)
 
Old 04-03-2005, 06:49 AM   #3
jelgavchik
Member
 
Registered: Dec 2004
Location: Latvia
Distribution: slackware
Posts: 77

Original Poster
Rep: Reputation: 15
none of commands helped
 
Old 04-03-2005, 06:54 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
have you altered your glibc library install?

does the following command report errno as a function of the library?

Code:
objdump -R /lib/libc.so.6 | grep errno
 
Old 04-03-2005, 07:01 AM   #5
jelgavchik
Member
 
Registered: Dec 2004
Location: Latvia
Distribution: slackware
Posts: 77

Original Poster
Rep: Reputation: 15
Here is an output for this command :

objdump -R /lib/libc.so.6 | grep errno
0012b840 R_386_GLOB_DAT errno
0012b890 R_386_GLOB_DAT h_errno
0012b6f0 R_386_JUMP_SLOT __errno_location
 
Old 04-03-2005, 07:13 AM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
post a little farther up on your error message, where it shows it invoking the compiler ( toward the end it will have the linker flags ( again, none of this should be neccessary since errno is part of glibc))
 
Old 04-03-2005, 07:24 AM   #7
jelgavchik
Member
 
Registered: Dec 2004
Location: Latvia
Distribution: slackware
Posts: 77

Original Poster
Rep: Reputation: 15
here almost all make outout:

-fPIC -DPIC -o .libs/jpg_filter.lo
jpg_filter.c: In function `filter_func':
jpg_filter.c:127: warning: implicit declaration of function `memcpy'
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c jpg_filter.c -MT jpg_filter.lo -MD -MP -MF .deps/jpg_filter.TPlo -o jpg_filter.o >/dev/null 2>&1
mv -f .libs/jpg_filter.lo jpg_filter.lo
source='jpgstuff.c' object='jpgstuff.lo' libtool=yes \
depfile='.deps/jpgstuff.Plo' tmpdepfile='.deps/jpgstuff.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c -o jpgstuff.lo `test -f 'jpgstuff.c' || echo './'`jpgstuff.c
rm -f .libs/jpgstuff.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c jpgstuff.c -MT jpgstuff.lo -MD -MP -MF .deps/jpgstuff.TPlo -fPIC -DPIC -o .libs/jpgstuff.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c jpgstuff.c -MT jpgstuff.lo -MD -MP -MF .deps/jpgstuff.TPlo -o jpgstuff.o >/dev/null 2>&1
mv -f .libs/jpgstuff.lo jpgstuff.lo
/bin/sh ../libtool --mode=link gcc -g -O2 -export-dynamic -o libjpg_filter.la -rpath /usr/local/lib/camserv jpg_filter.lo jpgstuff.lo -lnsl -ljpeg -lm
rm -fr .libs/libjpg_filter.la .libs/libjpg_filter.* .libs/libjpg_filter.*
gcc -shared jpg_filter.lo jpgstuff.lo -lnsl -ljpeg -lm -Wl,-soname -Wl,libjpg_filter.so.0 -o .libs/libjpg_filter.so.0.0.0
(cd .libs && rm -f libjpg_filter.so.0 && ln -s libjpg_filter.so.0.0.0 libjpg_filter.so.0)
(cd .libs && rm -f libjpg_filter.so && ln -s libjpg_filter.so.0.0.0 libjpg_filter.so)
ar cru .libs/libjpg_filter.a jpg_filter.o jpgstuff.o
ranlib .libs/libjpg_filter.a
creating libjpg_filter.la
(cd .libs && rm -f libjpg_filter.la && ln -s ../libjpg_filter.la libjpg_filter.la)
source='rand_filter.c' object='rand_filter.lo' libtool=yes \
depfile='.deps/rand_filter.Plo' tmpdepfile='.deps/rand_filter.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c -o rand_filter.lo `test -f 'rand_filter.c' || echo './'`rand_filter.c
rm -f .libs/rand_filter.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c rand_filter.c -MT rand_filter.lo -MD -MP -MF .deps/rand_filter.TPlo -fPIC -DPIC -o .libs/rand_filter.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c rand_filter.c -MT rand_filter.lo -MD -MP -MF .deps/rand_filter.TPlo -o rand_filter.o >/dev/null 2>&1
mv -f .libs/rand_filter.lo rand_filter.lo
/bin/sh ../libtool --mode=link gcc -g -O2 -export-dynamic -o librand_filter.la -rpath /usr/local/lib/camserv rand_filter.lo -lnsl -ljpeg -lm
rm -fr .libs/librand_filter.la .libs/librand_filter.* .libs/librand_filter.*
gcc -shared rand_filter.lo -lnsl -ljpeg -lm -Wl,-soname -Wl,librand_filter.so.0 -o .libs/librand_filter.so.0.0.0
(cd .libs && rm -f librand_filter.so.0 && ln -s librand_filter.so.0.0.0 librand_filter.so.0)
(cd .libs && rm -f librand_filter.so && ln -s librand_filter.so.0.0.0 librand_filter.so)
ar cru .libs/librand_filter.a rand_filter.o
ranlib .libs/librand_filter.a
creating librand_filter.la
(cd .libs && rm -f librand_filter.la && ln -s ../librand_filter.la librand_filter.la)
source='text_filter.c' object='text_filter.lo' libtool=yes \
depfile='.deps/text_filter.Plo' tmpdepfile='.deps/text_filter.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c -o text_filter.lo `test -f 'text_filter.c' || echo './'`text_filter.c
rm -f .libs/text_filter.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c text_filter.c -MT text_filter.lo -MD -MP -MF .deps/text_filter.TPlo -fPIC -DPIC -o .libs/text_filter.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c text_filter.c -MT text_filter.lo -MD -MP -MF .deps/text_filter.TPlo -o text_filter.o >/dev/null 2>&1
mv -f .libs/text_filter.lo text_filter.lo
source='fixfont.c' object='fixfont.lo' libtool=yes \
depfile='.deps/fixfont.Plo' tmpdepfile='.deps/fixfont.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c -o fixfont.lo `test -f 'fixfont.c' || echo './'`fixfont.c
rm -f .libs/fixfont.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c fixfont.c -MT fixfont.lo -MD -MP -MF .deps/fixfont.TPlo -fPIC -DPIC -o .libs/fixfont.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c fixfont.c -MT fixfont.lo -MD -MP -MF .deps/fixfont.TPlo -o fixfont.o >/dev/null 2>&1
mv -f .libs/fixfont.lo fixfont.lo
/bin/sh ../libtool --mode=link gcc -g -O2 -export-dynamic -o libtext_filter.la -rpath /usr/local/lib/camserv text_filter.lo fixfont.lo -lnsl -ljpeg -lm
rm -fr .libs/libtext_filter.la .libs/libtext_filter.* .libs/libtext_filter.*
gcc -shared text_filter.lo fixfont.lo -lnsl -ljpeg -lm -Wl,-soname -Wl,libtext_filter.so.0 -o .libs/libtext_filter.so.0.0.0
(cd .libs && rm -f libtext_filter.so.0 && ln -s libtext_filter.so.0.0.0 libtext_filter.so.0)
(cd .libs && rm -f libtext_filter.so && ln -s libtext_filter.so.0.0.0 libtext_filter.so)
ar cru .libs/libtext_filter.a text_filter.o fixfont.o
ranlib .libs/libtext_filter.a
creating libtext_filter.la
(cd .libs && rm -f libtext_filter.la && ln -s ../libtext_filter.la libtext_filter.la)
source='video_v4l.c' object='video_v4l.lo' libtool=yes \
depfile='.deps/video_v4l.Plo' tmpdepfile='.deps/video_v4l.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c -o video_v4l.lo `test -f 'video_v4l.c' || echo './'`video_v4l.c
rm -f .libs/video_v4l.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c video_v4l.c -MT video_v4l.lo -MD -MP -MF .deps/video_v4l.TPlo -fPIC -DPIC -o .libs/video_v4l.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c video_v4l.c -MT video_v4l.lo -MD -MP -MF .deps/video_v4l.TPlo -o video_v4l.o >/dev/null 2>&1
mv -f .libs/video_v4l.lo video_v4l.lo
/bin/sh ../libtool --mode=link gcc -g -O2 -export-dynamic -o libvideo_v4l.la -rpath /usr/local/lib/camserv video_v4l.lo -lnsl -ljpeg -lm
rm -fr .libs/libvideo_v4l.la .libs/libvideo_v4l.* .libs/libvideo_v4l.*
gcc -shared video_v4l.lo -lnsl -ljpeg -lm -Wl,-soname -Wl,libvideo_v4l.so.0 -o .libs/libvideo_v4l.so.0.0.0
(cd .libs && rm -f libvideo_v4l.so.0 && ln -s libvideo_v4l.so.0.0.0 libvideo_v4l.so.0)
(cd .libs && rm -f libvideo_v4l.so && ln -s libvideo_v4l.so.0.0.0 libvideo_v4l.so)
ar cru .libs/libvideo_v4l.a video_v4l.o
ranlib .libs/libvideo_v4l.a
creating libvideo_v4l.la
(cd .libs && rm -f libvideo_v4l.la && ln -s ../libvideo_v4l.la libvideo_v4l.la)
source='video_basic.c' object='video_basic.lo' libtool=yes \
depfile='.deps/video_basic.Plo' tmpdepfile='.deps/video_basic.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c -o video_basic.lo `test -f 'video_basic.c' || echo './'`video_basic.c
rm -f .libs/video_basic.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c video_basic.c -MT video_basic.lo -MD -MP -MF .deps/video_basic.TPlo -fPIC -DPIC -o .libs/video_basic.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c video_basic.c -MT video_basic.lo -MD -MP -MF .deps/video_basic.TPlo -o video_basic.o >/dev/null 2>&1
mv -f .libs/video_basic.lo video_basic.lo
/bin/sh ../libtool --mode=link gcc -g -O2 -export-dynamic -o libvideo_basic.la -rpath /usr/local/lib/camserv video_basic.lo -lnsl -ljpeg -lm
rm -fr .libs/libvideo_basic.la .libs/libvideo_basic.* .libs/libvideo_basic.*
gcc -shared video_basic.lo -lnsl -ljpeg -lm -Wl,-soname -Wl,libvideo_basic.so.0 -o .libs/libvideo_basic.so.0.0.0
(cd .libs && rm -f libvideo_basic.so.0 && ln -s libvideo_basic.so.0.0.0 libvideo_basic.so.0)
(cd .libs && rm -f libvideo_basic.so && ln -s libvideo_basic.so.0.0.0 libvideo_basic.so)
ar cru .libs/libvideo_basic.a video_basic.o
ranlib .libs/libvideo_basic.a
creating libvideo_basic.la
(cd .libs && rm -f libvideo_basic.la && ln -s ../libvideo_basic.la libvideo_basic.la)
source='camconfig.c' object='camconfig.o' libtool=no \
depfile='.deps/camconfig.Po' tmpdepfile='.deps/camconfig.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c `test -f 'camconfig.c' || echo './'`camconfig.c
camconfig.c:468: warning: `printcfg' defined but not used
source='camserv.c' object='camserv.o' libtool=no \
depfile='.deps/camserv.Po' tmpdepfile='.deps/camserv.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c `test -f 'camserv.c' || echo './'`camserv.c
../include/font_6x11.h:7: warning: `font_6x11' defined but not used
../include/font_8x8.h:7: warning: `font_8x8' defined but not used
../include/grafxmisc.h:10: warning: `clip_to' defined but not used
camserv.c:47: warning: `query_main_modinfo' defined but not used
camserv.c:69: warning: `dump_cfg_options' defined but not used
source='filter.c' object='filter.o' libtool=no \
depfile='.deps/filter.Po' tmpdepfile='.deps/filter.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c `test -f 'filter.c' || echo './'`filter.c
source='main_loop.c' object='main_loop.o' libtool=no \
depfile='.deps/main_loop.Po' tmpdepfile='.deps/main_loop.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c `test -f 'main_loop.c' || echo './'`main_loop.c
source='picture_loop.c' object='picture_loop.o' libtool=no \
depfile='.deps/picture_loop.Po' tmpdepfile='.deps/picture_loop.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c `test -f 'picture_loop.c' || echo './'`picture_loop.c
source='shm.c' object='shm.o' libtool=no \
depfile='.deps/shm.Po' tmpdepfile='.deps/shm.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c `test -f 'shm.c' || echo './'`shm.c
source='video.c' object='video.o' libtool=no \
depfile='.deps/video.Po' tmpdepfile='.deps/video.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DDATDIR=\"/usr/local/share/camserv\" -g -O2 -c `test -f 'video.c' || echo './'`video.c
/bin/sh ../libtool --mode=link gcc -g -O2 -export-dynamic -o camserv camconfig.o camserv.o filter.o main_loop.o picture_loop.o shm.o video.o ../libltdl/libltdlc.la ../common/libcommon.a -lnsl -ljpeg -lm
gcc -g -O2 -o camserv camconfig.o camserv.o filter.o main_loop.o picture_loop.o shm.o video.o -Wl,--export-dynamic ../libltdl/.libs/libltdlc.al -ldl ../common/libcommon.a -lnsl -ljpeg -lm
camserv.o(.text+0x5f4): In function `main':
/root/camserv-0.5.1/camserv/camserv.c:164: undefined reference to `errno'
camserv.o(.text+0x6d0):/root/camserv-0.5.1/camserv/camserv.c:190: undefined reference to `errno'
camserv.o(.text+0x75b):/root/camserv-0.5.1/camserv/camserv.c:194: undefined reference to `errno'
main_loop.o(.text+0x1a5): In function `accept_client':
/root/camserv-0.5.1/camserv/main_loop.c:145: undefined reference to `errno'
main_loop.o(.text+0xf84): In function `main_loop':
/root/camserv-0.5.1/camserv/main_loop.c:446: undefined reference to `errno'
picture_loop.o(.text+0x6a5):/root/camserv-0.5.1/camserv/picture_loop.c:315: more undefined references to `errno' follow
collect2: ld returned 1 exit status
make[1]: *** [camserv] Error 1
make[1]: Leaving directory `/root/camserv-0.5.1/camserv'
make: *** [all-recursive] Error 1
root@server:~/camserv-0.5.1#
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
General question while running make "make[2]: *** [main.o] Error 1" matazar42 Linux - Software 3 08-15-2005 12:39 PM
Error "make: *** No rule to make target `install'. Stop." help Ohmn Mandriva 8 07-02-2004 07:02 PM
error running "make" and "arkollonrc"... Toro Linux - Software 1 04-19-2004 12:24 AM
help with "make" error "Missing seperator" hrishikesh Linux - Software 1 07-18-2003 01:40 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration