LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-16-2015, 12:15 AM   #1
diracsbracket
LQ Newbie
 
Registered: Jun 2014
Posts: 8

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


Hi,
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!

PD.
 
Old 02-17-2015, 09:28 AM   #2
diracsbracket
LQ Newbie
 
Registered: Jun 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi,
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.
Cheers.
PD.
 
  


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


All times are GMT -5. The time now is 03:11 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration