LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   oxine make error (https://www.linuxquestions.org/questions/linux-software-2/oxine-make-error-299997/)

mab_123 03-10-2005 08:23 AM

oxine make error
 
Hello, I am on Fedoro core 2.
In an attempt to install oxine, I get the following message after entering "make".
But ./configure does not complain. Can anyone help me.

oxine.c: In function `parse_arguments':
oxine.c:640: error: `opterr' undeclared (first use in this function)
oxine.c:640: error: (Each undeclared identifier is reported only once
oxine.c:640: error: for each function it appears in.)
oxine.c:642: warning: implicit declaration of function `getopt'
oxine.c:657: error: `optarg' undeclared (first use in this function)
oxine.c:663: error: `optopt' undeclared (first use in this function)
oxine.c:674: error: `optind' undeclared (first use in this function)
make[2]: *** [oxine.o] Error 1
make[2]: Leaving directory `/home/mabuti/downloads/oxine-0.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/mabuti/downloads/oxine-0.2/src'
make: *** [all-recursive] Error 1
[root@localhost oxine-0.2]#

masand 03-10-2005 11:41 AM

hi there

i would consider getting and compilning a different version

regards

__J 03-10-2005 02:30 PM

sounds like you are missing some includes. you need to post the output from a little farther up than where you started. check and make sure you have the glibc-2.x.x-devel package installed.

mab_123 03-10-2005 10:08 PM

[mabuti@localhost oxine-0.2]$ ./autogen.sh
./autogen.sh: line 116: test: too many arguments
expr: syntax error
./autogen.sh: line 119: [: -ge: unary operator expected
+ Running aclocal: m4/need-declaration.m4:3: warning: underquoted definition of GCC_NEED_DECLARATION
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/a...ding%20aclocal
m4/need-declaration.m4:36: warning: underquoted definition of GCC_NEED_DECLARATI ONS
/usr/share/aclocal/vorbis.m4:9: warning: underquoted definition of XIPH_PATH_VOR BIS
/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULE S
/usr/share/aclocal/ogg.m4:8: warning: underquoted definition of XIPH_PATH_OGG
/usr/share/aclocal/libmikmod.m4:11: warning: underquoted definition of AM_PATH_L IBMIKMOD
done.

**Warning**: Version of libtool is less than 140.
Some warning message might occur from libtool

+ Running libtoolize: done.
+ Running autoheader: done.
+ Running automake: done.
+ Running autoconf: done.
+ Running 'configure ':
** If you wish to pass arguments to ./configure, please
** specify them on the command line.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for ptrdiff_t... yes
checking whether byte ordering is bigendian... no
checking for pthread_create in -lpthread... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XTestFakeKeyEvent in -lXtst... yes
checking for xine-config... /usr/local/bin/xine-config
checking for XINE-LIB version >= 1.0.0... yes
checking for strsep... yes
checking for strpbrk... yes
checking for setenv... yes
checking for lirc_init in -llirc_client... no
*** LIRC client support not available, LIRC support will be disabled ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating m4/Makefile
config.status: creating data/Makefile
config.status: creating doc/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
[mabuti@localhost oxine-0.2]$ make
Making all in m4
make[1]: Entering directory `/home/mabuti/downloads/oxine-0.2/m4'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mabuti/downloads/oxine-0.2/m4'
Making all in src
make[1]: Entering directory `/home/mabuti/downloads/oxine-0.2/src'
make all-am
make[2]: Entering directory `/home/mabuti/downloads/oxine-0.2/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -MT oxine.o -MD -MP -MF ".deps/oxine.Tpo" -c -o oxine.o oxine.c; \
then mv -f ".deps/oxine.Tpo" ".deps/oxine.Po"; else rm -f ".deps/oxine.Tpo"; exit 1; fi
oxine.c: In function `parse_arguments':
oxine.c:640: error: `opterr' undeclared (first use in this function)
oxine.c:640: error: (Each undeclared identifier is reported only once
oxine.c:640: error: for each function it appears in.)
oxine.c:642: warning: implicit declaration of function `getopt'
oxine.c:657: error: `optarg' undeclared (first use in this function)
oxine.c:663: error: `optopt' undeclared (first use in this function)
oxine.c:674: error: `optind' undeclared (first use in this function)
make[2]: *** [oxine.o] Error 1
make[2]: Leaving directory `/home/mabuti/downloads/oxine-0.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/mabuti/downloads/oxine-0.2/src'
make: *** [all-recursive] Error 1
[mabuti@localhost oxine-0.2]$

__J 03-11-2005 05:13 AM

Well, your undefined errors ( optind, opterr, etc..) are from missing glibc headers - remember rpm distro's split their packages to make compiling from source a pain. make sure you have the glibc-2.x.x-devel package installed.

your errors from autogen could be because of your versions of autoconf, m4, or automake. make sure your versions are at least the minimum required ( most README's or websites of cvs stuff will tell you the minimum's of these).

pereltje 03-13-2005 10:23 AM

I found the optxxxx undefined errors to be related to getopt!
by adding this line to src/oxine.h I solved the undefined issue
added line:
#include <getopt.h>

(works only when development package op getopt is installed i reckon ... )
greetz pereltje ;)

mab_123 03-14-2005 06:07 AM

Another error after adding #include <getopt.h> in oxine.h . What could be the problem now? Do I have 2 install the op getopt development package?
[root@localhost oxine-snapshot]# make
Making all in m4
make[1]: Entering directory `/home/mabuti/Desktop/Downloads/oxine-snapshot/m4'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mabuti/Desktop/Downloads/oxine-snapshot/m4'
Making all in src
make[1]: Entering directory `/home/mabuti/Desktop/Downloads/oxine-snapshot/src'
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c oxine.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c odk.c
odk.c: In function `get_pos_length':
odk.c:830: warning: implicit declaration of function `usleep'
odk.c: In function `odk_get_pos_length_high':
odk.c:837: warning: unused variable `last_time'
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c otk.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c utils.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c list.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c xmllexer.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c xmlparser.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c disc.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c playlist.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c mediamarks.c
mediamarks.c: In function `read_entire_file':
mediamarks.c:371: warning: implicit declaration of function `read'
mediamarks.c:373: warning: implicit declaration of function `close'
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c controlpc.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c x11.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c nox.c
nox.c: In function `dispose':
nox.c:146: warning: unused variable `are_waiting'
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c fb.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c lirc.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c js.c
js.c: In function `js_thread':
js.c:78: warning: implicit declaration of function `read'
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c subtitles.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -c settings.c
/bin/sh ../libtool --mode=link gcc -I/usr/local/include -Wall -o oxine oxine.o odk.o otk.o utils.o list.o xmllexer.o xmlparser.o disc.o playlist.o mediamarks.o controlpc.o x11.o nox.o fb.o lirc.o js.o subtitles.o settings.o -L/usr/local/lib -lxine -lz -lnsl -lpthread -lrt -lXtst
mkdir .libs
gcc -I/usr/local/include -Wall -o oxine oxine.o odk.o otk.o utils.o list.o xmllexer.o xmlparser.o disc.o playlist.o mediamarks.o controlpc.o x11.o nox.o fb.o lirc.o js.o subtitles.o settings.o -L/usr/local/lib /usr/local/lib/libxine.so -ldl -lm /usr/lib/libfreetype.so -lz -lnsl -lpthread -lrt -lXtst -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: cannot find -lXtst
collect2: ld returned 1 exit status
make[1]: *** [oxine] Error 1
make[1]: Leaving directory `/home/mabuti/Desktop/Downloads/oxine-snapshot/src'
make: *** [all-recursive] Error 1
[root@localhost oxine-snapshot]#

pereltje 03-14-2005 09:06 AM

Hi mab_123,

you're doing fine sofar :-)
ld can't locate the libXtst.so because it is not told properly where to look for it ....
a modification of src/makefile.am ... will do the trick though (well it did for me ...)

look for this line in src/makefile.am (probably line 10):
oxine_LDADD = @XINE_LIBS@ $(LIRC_LIBS) $(XTEST_LIBS)

and change it to this:
oxine_LDADD = @XINE_LIBS@ $(LIRC_LIBS) @X_LIBS@ $(XTEST_LIBS)

then run the script: autogen.sh in the main directory of the sourcecode
after that i expect your regular

./configure --some-arguments &&
make &&
make install

will run cleanly :)

greetz pereltje ;)


All times are GMT -5. The time now is 07:24 AM.