LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-04-2015, 12:58 PM   #1
cod3r
LQ Newbie
 
Registered: Aug 2015
Posts: 1

Rep: Reputation: Disabled
Snort Dynamic Preprocessor Error - Undefined Symbol: LibVersion


I am trying to write a dynamic preprocessor for snort. i can make it through the ./configure make and make install stages without any problems. However, when i execute snort with this command

snort —dynamic-preprocessor-lib-dir /usr/local/lib/snort_dynamic-preprocessor

i am receiving this output :


--== Initializing Snort ==--
Initializing Output Plugins!
Loading all dynamic preprocessor libs from /usr/local/lib/snort_dynamicpreprocessor/...
Loading dynamic preprocessor library /usr/local/lib/snort_dynamicpreprocessor//libsf_smtp_preproc.so... done
Loading dynamic preprocessor library /usr/local/lib/snort_dynamicpreprocessor//libsf_ssh_preproc.so... done
Loading dynamic preprocessor library /usr/local/lib/snort_dynamicpreprocessor//libsf_gtp_preproc.so... done
Loading dynamic preprocessor library /usr/local/lib/snort_dynamicpreprocessor//libsf_EXAMPLE_preproc.so... ERROR: Failed to find LibVersion() function in /usr/local/lib/snort_dynamicpreprocessor//libsf_EXAMPLE_preproc.so: /usr/local/lib/snort_dynamicpreprocessor//libsf_EXAMPLE_preproc.so: undefined symbol: LibVersion


the error being here :

Loading dynamic preprocessor library /usr/local/lib/snort_dynamicpreprocessor//
libsf_EXAMPLE_preproc.so... ERROR: Failed to find LibVersion() function in /usr/local/lib/

snort_dynamicpreprocessor//libsf_EXAMPLE_preproc.so: /usr/local/lib/

snort_dynamicpreprocessor//libsf_EXAMPLE_preproc.so: undefined symbol: LibVersion


I have gone through my source code countless times.

Iam running Ubuntu 14.04 and Snort 2.9.7.3
Also, zlib-1.2.8 , libpcap - 1.7.4, daq-2.0.5

I am installing from source.

Any help or even advice on creating a preprocessor is greatly appreciated, i have been working on this far longer than i would of liked.
 
Old 08-08-2015, 04:41 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
*While questions about Snort in the application sense may be security-related your question is about compiling, which is not. Hence I moved your question to the Programming form so it gets the exposure it deserves.

Note you are only showing information related to running Snort but not anything related to actually diagnosing dynamic preprocessor problems. What's missing is for example you comparing libraries each dynamic preprocessor uses, nfo on compiling your example like used includes, configure and compile log checking for errors and compile time use of say "-DHAVE_CONFIG_H".
 
Old 08-08-2015, 04:47 AM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,856
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
You are trying to ask how to add a function called 'LibVersion' into your shared lib?
 
  


Reply



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
undefined symbol in preprocessor in mixed C/Asm build diracsbracket Linux - Newbie 1 02-17-2015 08:28 AM
glib error while installing patch: symbol lookup error undefined symbol: g_dgettext mthakare Linux - Software 1 06-14-2010 04:01 AM
snort error: "undefined symbol: LibVersion" rubberducky Linux - Software 3 04-01-2010 06:35 PM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 11:10 AM
snort failed: snort: symbol lookup error: undefined symbol: usmAES192PrivProtocol Emmanuel_uk Linux - Security 1 07-10-2005 10:29 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:10 PM.

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
Open Source Consulting | Domain Registration