Problem compiling on Solaris 10

*nix specific usage questions
deather

Problem compiling on Solaris 10

Postby deather » 28 Dec 2005 23:08

Greetings,
I'm trying to get VLC 0.8.4a compiled on a Solaris 10 box.
However, I'm having strange issues with ./configure.
Libraries such as ffmpeg, libogg, libmad, and others are installed
under /opt/csw (for example, /opt/csw/include/mad.h, /opt/csw/lib/libmad.so...)
Here is a quote of the output of the configure script:

Code: Select all

% CC=3Dcc CXX=3DCC CPPFLAGS=3D-I/opt/csw/include\ -L/opt/csw/lib LDFLAGS=3D-L/opt/csw/lib ./configure --prefix=3D/opt/csw --enable-shared [...] checking ogg/ogg.h usability... no checking ogg/ogg.h presence... yes configure: WARNING: ogg/ogg.h: present but cannot be compiled configure: WARNING: ogg/ogg.h: check for missing prerequisite headers? configure: WARNING: ogg/ogg.h: see the Autoconf documentation configure: WARNING: ogg/ogg.h: section "Present But Cannot Be Compiled" configure: WARNING: ogg/ogg.h: proceeding with the preprocessor's result configure: WARNING: ogg/ogg.h: in the future, the compiler will take preced= ence configure: WARNING: ## ------------------------------ ## configure: WARNING: ## Report this to the vlc lists. ## configure: WARNING: ## ------------------------------ ## checking for ogg/ogg.h... yes checking for oggpack_read in -logg... no checking libmodplug/modplug.h usability... no checking libmodplug/modplug.h presence... no checking for libmodplug/modplug.h... no checking mpcdec/mpcdec.h usability... no checking mpcdec/mpcdec.h presence... no checking for mpcdec/mpcdec.h... no checking mad.h usability... no checking mad.h presence... yes configure: WARNING: mad.h: present but cannot be compiled configure: WARNING: mad.h: check for missing prerequisite headers? configure: WARNING: mad.h: see the Autoconf documentation configure: WARNING: mad.h: section "Present But Cannot Be Compiled" configure: WARNING: mad.h: proceeding with the preprocessor's result configure: WARNING: mad.h: in the future, the compiler will take precedence configure: WARNING: ## ------------------------------ ## configure: WARNING: ## Report this to the vlc lists. ## configure: WARNING: ## ------------------------------ ## checking for mad.h... yes checking for mad_bit_init in -lmad... no configure: error: Cannot find libmad library... %
I really don't know what I should do. As the script told me, I report
these errors to you. If anyone could help me it would be very nice.
Thanks,
deather

ipkiss
Big Cone-huna
Big Cone-huna
Posts: 695
Joined: 23 Nov 2003 01:49

Postby ipkiss » 29 Dec 2005 08:57

Code: Select all

checking for mad_bit_init in -lmad... no
Configure fails because of this: the libmad version you have doesn't seem to have mad_bit_init, which probably indicates a too old version. Try updating it!

deather

Postby deather » 30 Dec 2005 00:30

I've the 0.15.1 for libmad and the 1.1 for libogg.
What version is needed?
Thanks

ipkiss
Big Cone-huna
Big Cone-huna
Posts: 695
Joined: 23 Nov 2003 01:49

Postby ipkiss » 30 Dec 2005 08:50

0.15.1 should be fine. Try to look in config.log (near the end) to find out what test program is executed and see why it fails (grep for "mad_bit_init").

I don't think that the big warnings given by autoconf explain the error in configure (in particular since it was not blocking for ogg), but i'm not absolutely sure.

You might also want to see what happens if you deactivate part of the test in configure.ac (comment lines 2134 to 2137). Do not forget to run bootstrap again after this change.

deather

Postby deather » 30 Dec 2005 17:28

Hello,
Thanks for making me look at the config.log (damn, why didn't I do it before :-))
It'll help me to resolve the problem I think.
It shown me that -I/opt/csw/include was passed to ld which produce a fatal error.
I'll try with different environment variable.
Thanks

deather

Postby deather » 31 Dec 2005 01:03

Re,
I'm unable to find the problem. It seems to be related to what "cc" gives to "ld". Let see the following output in config.log:
configure:24113: checking for oggpack_read in -logg
configure:24143: cc -o conftest -I/opt/csw/include -D_POSIX_PTHREAD_SEMANTICS -pipe -I/opt/csw/include -DSYS_SOLARIS -L/opt/csw/lib conftest.c -logg >&5
ld: fatal: entry point symbol `-I/opt/csw/include' is undefined
The same for libmad
configure:25551: checking for mad_bit_init in -lmad
configure:25579: cc -o conftest -I/opt/csw/include -D_POSIX_PTHREAD_SEMANTICS -pipe -I/opt/csw/include -DSYS_SOLARIS -L/opt/csw/lib conftest.c -lmad >&5
ld: fatal: entry point symbol `-I/opt/csw/include' is undefined
I've tried dealing with CPPFLAGS, CFLAGS, and LDFLAGS, unsuccessfully.
I think i'll have to hack the configure script to make it act as if the check has worked...
If anyone got an idea, please tell me. Thanks !
[/quote]

barts
New Cone
New Cone
Posts: 3
Joined: 03 Jan 2006 05:05

some useful hints...

Postby barts » 04 Jan 2006 07:59

Compiling on Solaris 10:

Some environment variables to make things easier:

LD_OPTIONS=-L/opt/csw/lib -R/opt/csw/lib
LD_CONFIG=/export/home/barts/ld.config
CPPFLAGS=-I/opt/csw/include

I've configured crle to look in /opt/csw/lib and /usr/local/lib by default:

bash-3.00$ crle -c ~/ld.config

Configuration file [version 4]: /export/home/barts/ld.config
Default Library Path (ELF): /usr/lib:/opt/csw/lib:/usr/local/lib
Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)

Command line:
crle -c /export/home/barts/ld.config -l /usr/lib:/opt/csw/lib:/usr/local/lib

bash-3.00$

My configure options are as follows:

./configure --enable-x11 --enable-opengl --enable-xvideo --disable-gtk --enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame --enable-mad --enable-libdvbpsi --enable-a52 --enable-dts --enable-libmpeg2 --enable-dvdnav --enable-faad --enable-vorbis --enable-ogg --enable-theora --enable-faac --enable-mkv --enable-freetype --enable-fribidi --enable-speex --enable-flac --enable-caca --enable-skins --disable-skins2 --disable-kde --disable-qt --enable-wxwindows --enable-ncurses --enable-release --with-a52-tree=/export/home/barts/liba52/a52dec-0.7.4

Still working on the following:

1. I could not get skins2 to work.
2. despite being part of the config. neither opengl or xvideo are offered as video output
options; this affects video output quality and performance..
3. dvd reading doesn't work on all dvs

I snagged most of the libraries I needed from blastwave; their version of vlc didn't work
for me. I ended up compiling my own version of wxwidgets from source as well as liba52 since libtool refused to prefer the dynamic lib to the static one, which is required if one
is going to build another clean shared library.

This is on Solaris Nevada (what will turn into Solaris 11) build 27.

- Bart

deather

Postby deather » 07 Jan 2006 13:14

Barts -
Wow, great explanation! Thanks.
I'm compiling it with your informations -- I hope it will works with wxMotif-2.6.

-Thomas


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 33 guests