Gcc error unrecognized command line option

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

Are you new to LinuxQuestions.org? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux – A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author’s experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

I am in the process of compiling VLC from source on Red Hat Enterprise Linux 7. When configuring VLC I get a message that states that I need ‘libmad’.

Читайте также:  Узнать баланс на модеме мтс

Downloaded the ‘libmad’ source code from ftp://ftp.mars.org/pub/mpeg/

So I unzip the ‘libmad’ code and run ./configure and there are no errors. When I run make I get an error about an unrecognized command line option.

What does this error mean? Is this just a typo perhaps? Ultimately I am building VLC from source and need this dependency to build the application. Does anybody know how to troubleshoot or fix this error?

When compiling with gcc 4.7.2 and autoconf 2.69, I am routinely getting results such as these in configure.log. Example:

The compilation proceeds successfully, but I am wondering why autoconf is testing for command lines that gcc does not support. Is this for other compilers?

2 Answers 2

gcc -V is a way of selecting a specific gcc version when you have more than one, that’s a decoy here though: configure is iterating through a set of options (–version -v -V etc.) to make sure it can log the version of the C compiler, be it gcc or something else.

gcc used to have a -V option for version reports. It now uses -v, and provides the configuration options used when the compiler was built.

You package is a bit dated and doesn’t reflect that fact.

BTW, the -qversion option was merged into the -v.

On some versions of gcc, the -V option tells it to use a specified version of the compiler — but it requires an argument. It’s documented here. The option appears to have been removed some time between 4.5.4 and 4.6.4.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *