Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-15-2015, 11:15 PM   #1
LQ Newbie
Registered: Jun 2014
Posts: 8

Rep: Reputation: Disabled
undefined symbol in preprocessor in mixed C/Asm build

I am trying to understand MPlayer, and am currently rebuilding some of its source code which includes C and asm files.

Most of the preprocessor symbols are defined in the config.h file, created by the configure script.

In the C files, these symbols are visible in the source by including the config.h header file.

However, in the asm files, I don't see any of such inclusion. Since the asm files also use these preprocessor symbols (e.g. ARCH_X86_64), how are they made visible during the build of the asm files?

When I try building the asm source myself, I get many errors such as:
undefined symbol `ARCH_X86_64' in preprocessor

I was wondering how this is to be done, or if someone knows specifically how this is done in the Mplayer build ?

Again, many thanks for any help you can provide!

Old 02-17-2015, 08:28 AM   #2
LQ Newbie
Registered: Jun 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
It seems my previous message was not posted.
After looking a little bit harder... I found that there is indeed a config.asm file
with all the symbol definitions of config.h.
This, in addition to the -Pconfig.asm options provided to yasm is all that is required it seems.
Sorry for posting my question a little bit too soon.


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
[SOLVED] symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_file_link bagi Slackware 3 05-17-2011 07:49 AM
symbol lookup error: /usr/lib/ undefined symbol: av_crc04C11DB7 priceey Linux - Software 0 05-06-2009 08:14 AM
./firefox-bin :symbol lookup error:/lib/ undefined symbol: arulupsaras Linux - General 1 11-08-2008 04:48 AM
symbol lookup error: /usr/lib/ undefined symbol:... IamI Slackware 17 02-29-2008 11:10 AM
Workaround: 'symbol lookup error: k3b: undefined symbol: lstat64' devdol Linux - Software 2 02-15-2008 03:36 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:02 PM.

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