Include my own libraries and header files when compiling Berkeley DB?

Hi to All,
I am a new user to this forum and a newbie to Berkeley DB as well.
I want to use some functions from some of my header files inside the source code of Berkeley DB.
I would really appreciate if anyone can help me in including my own header files and libraries in Berkeley DB before compiling and MAKE of Berkeley DB.
The make file generated by running configure file is too large to undestand and make changes in. So is there any way to include my files in configuration script or Make file created after running configuration script?
Imp information :
db-4.7.25.NC.tar.gz + Ubuntu 8.04 + Libraries/Header files to be included are in C and C++.
Thanks in advance.

Hi to All,
I am a new user to this forum and a newbie to Berkeley DB as well.
I want to use some functions from some of my header files inside the source code of Berkeley DB.
I would really appreciate if anyone can help me in including my own header files and libraries in Berkeley DB before compiling and MAKE of Berkeley DB.
The make file generated by running configure file is too large to undestand and make changes in. So is there any way to include my files in configuration script or Make file created after running configuration script?
Imp information :
db-4.7.25.NC.tar.gz + Ubuntu 8.04 + Libraries/Header files to be included are in C and C++.
Thanks in advance.

Similar Messages

  • Does arch install library and header files into system when using abs?

    In traditional make way, when compiling a package, I must install some library or header file or tool packages to satisfy its depends, but after compilation, I do "make install", and run it. At runtime, library and header file and tool packages are not needed....
    This make a lot of unuseful packages are left in the system.....
    In arch linux , when I using abs to make a package, does these packages are left in the system ?
    How abs separates the compile-time depends and the runtime depends ????
    Last edited by iamybj (2010-03-22 01:24:57)

    tomk wrote:
    The PKGBUILD has a depends array and a makedepends array. Anything that's required at runtime goes in the depends array, and must be installed for the application to run successfully. Anything that's only required at buildtime foes in the makedepends array, and can be removed from the system after the application has been built.
    man PKGBUILD and various wiki pages for more details.
    Anything that's only required at buildtime foes in the makedepends array, and can be removed from the system after the application has been built.
    ==================
    Who remove them ? user or the abs ??
    I think the best method is file dependence , not package dependence.....
    Software is arranged by package. but its dependence is file. When Install a package, pacman check its file dependence, and install the packages which include those files....
    If a  not explicit installed package 's file does not required by any other packages , it can be removed automatically !
    In this situation ,pacman can find packages that not needed after compilation, and remove them.
    Last edited by iamybj (2010-03-22 03:15:06)

  • Using Cpp code and header files with LV8 CIN

    Hello,
    I have three pieces of C++ code and their header files that are called from a Main C++ code.  I want to call these from a LV8, code interface node (CIN).  I have the C++ compiler installed on teh same machine as LV8.  My questions are:
    1) How do I call the C++ code anf the header files from the LV CIN?  I have never doen this. Is there a concise manul for this somewhere?  Teh last thing any self-respecting engineer wants to do is read the manual.
    2)  Once I successfully call teh C++ and header files from within the CIN, can I create a LV runtime executable, just as I can with any other LV8 .vi?  Will this runtime .exe run stand-alone as a distribuatble application?  Do I need to include any special runtime files when I build the exectuable to support teh C++ code?
    Thank you.

    http://forums.ni.com/ni/board/message?board.id=231&message.id=2424&requireLogin=False
    handles your question.

  • Virtualbox - install build and header files for your current kernel

    I have initially installed virtualbox before upgrading the Arch
    Also took backup of the kernle before upgrading since kernel26 2.6.30 is having problem with virtualbox
    After upgrading I have configure the grub to use the previous kernel i.e 2.6.28
    Later  installed xorg and want to install the video drivers from VBox additions
    but running
    sh VBoxLinuxAdditions_x86.run
    i get the following
    install build and header files for your current kernel
    The current kernel version is 2.6.28 Arch
    What are the build and header files I have to install or search with pacman
    And since i have upgraded the system will I able to look up the header and build files needed for kernel 2.6.28

    dmartins - he's talking about his kernel's headers, not the kernel-headers package - they are two very differnet things.
    sant527 - when you backed up the 2.6.28 kernel, did you remember the files in /usr/src/linux-2.6.28-ARCH/ ? They're what VBox is looking for.

  • How do you export a song in logic pro x. ive tried now for 2 hours to do it and all it gives me and indivial files when i want the whole thing as a project

    how do you export a song in logic pro x. ive tried now for 2 hours to do it and all it gives me and indivial files when i want the whole thing as a project

    Go here:
    http://help.apple.com/logicpro/mac/10/
    Search on   Bounce

  • My mac is converting Word and Excel files into Pages and Numbers files when I click to open them (or download and open them) from an email. I do I get this to stop? It's really aggravating.

    My mac is converting Word and Excel files into Pages and Numbers files when I click to open them from an email. Downloading them and opening them doesn't help. How do I make this stop? I don't use iLife and don't want to; my clients are using Office and it's easier for me, except when I have to copy and paste everything they send me from an iLife file back to Word and Excel. Help!!! It's like Apple has become Microsoft, forcing us to use their apps.

    Do you have Word & Excel installed, if yes, navigate in the finder to an example of each, right click and select 'Get Info' scroll down to 'Open With' and select the appropriate program, check the box that says 'Change All'

  • How to use Dlls and Header files in my java Code?

    Hi All,
    I want to make use of dll and header files of DataStage, from my Java Interface.
    i am buliding a product where i need to contact DataStage server from my Java Code alone, For this they provided dlls and header files
    Now i wan to make use of them and need to perform DataStage operations from my Java Interface.
    Can any on help out me regarding this?

    Try Java Platform SDK for native function calls without JNI writing code, like it done in .NET languages.
    For MS Windows:
    http://www.simtel.net/product.php[id]100916[SiteID]simtel.net
    For Linux/Unix:
    http://www.simtel.net/product.php[id]117719[SiteID]simtel.net

  • Do we have to separate java source files and class files after compiled..

    Hi,
    I really confussed with this:
    I have compiled java source files into a package and tried to use but the classes can not be found. Should I separate class and source files after compiled with packages names. I hope you understand what i mean.
    Thank you
    So Jag

    You can choose to separate the source files or not. It sounds like your problem has to do with Classpath and packages.
    If the file c:\base\compute\engine\mysourcefile.java starts with the statement "package engine;" then the fully qualified name of the class is is engine.mysourcefile. If the file c:\base\compute\client\mysourcefile.java starts with the statement "package client;" then its fully qualified name is client.mysourcefile.
    In your source files, whenever you refer to a class from another class, the compiler needs the fully qualified class name. You can either import the class or use the fully qualified name. In order for the compiler to find the class, the c:\base\compute directory must be in the Classpath (assuming the package definitions from above).
    Finally, to launch an application given the above, the command would be "java client.mysourcefile" assuming the main method is in client.mysourcefile.

  • Modifying the search path of the include files when compiling with CC

    Hi All,
    In my current task, i am working on a new module.
    - There are many source-files where header-files of type, "#include <something.h>" are included.
    - The new Module just replaces the body of "something.h".
    Originally <something.h> is present in system-wide location.
    Now, i am trying to compile the code with the new files created, using "-I-" option.
    http://download.oracle.com/docs/cd/E19205-01/821-1384/bjadq/index.html
    Section 2.16.1 in above says:
    For include files of the form #include "foo.h", search the directories in the following order:
    1. The directories named with -I options (both before and after -I-).
    2. The directories for compiler-provided C++ header files, ANSI C header files, and special-purpose files.
    3. The /usr/include directory.
    For include files of the form #include <foo.h>, search the directories in the following order:
    1.The directories named in the -I options that appear after -I-.
    2. The directories for compiler-provided C++ header files, ANSI C header files, and special-purpose files.
    3. The /usr/include directory.
    When i used the "-I-" option,[[ -I-  -I/my/own/module/path ]] it could not include the common header files. [like <functional>, <algorithm>...etc]
    If "-I-" option is not used it could find the above headers.
    Could someone tell me what am i doing wrong here?
    Thanks & Regards,
    Sreekar

    Extension to the above. [could't edit and save it, hence placing it here]
    I know that specifying a system-wide locations manually is not standard, but tried the following to see if there is any work-around.
    I manually included "/usr/include/c++/4.1.1" to search for <algorithm> and then CC complained saying that, it could not find "bits/c++locale.h" which is internally included in "<algorithm>" .
    I am working on RHEL 5.4 (x86_64 arhictecture)
    When included "/usr/include/c++/4.1.1/x86_64-redhat-linux", got the following error:
    $ CC -m32 -c -library=rwtools7,iostream,Crun,no%Cstd -I- -I/data1/users/nfr1dev2/include -I. -I./gen  -I/data1/users/nfr1dev2/pvcs/cms_ba2ap/cms/source/include -I/usr/include -I/usr/include/c++/4.1.1 -I/usr/include/c++/4.1.1/x86_64-redhat-linux -o utsislist.o utsislist.cc
    "/usr/include/c++/4.1.1/x86_64-redhat-linux/bits/c++locale.h", line 55: Error: uselocale is not defined.
    "/usr/include/c++/4.1.1/x86_64-redhat-linux/bits/c++locale.h", line 55: Error: __uselocale is not defined.
    "/usr/include/c++/4.1.1/x86_64-redhat-linux/bits/c++locale.h", line 56: Error: "__gnu_cxx::__typeof()" is expected to return a value.
    "/usr/include/c++/4.1.1/x86_64-redhat-linux/bits/c++locale.h", line 61: Error: __locale_t is not defined.
    "/usr/include/c++/4.1.1/x86_64-redhat-linux/bits/gthr-default.h", line 593: Error: PTHREAD_MUTEX_RECURSIVE is not defined.
    "/usr/include/c++/4.1.1/bits/stl_algobase.h", line 577: Error: memset is not a member of __gnu_cxx::std.
    "/usr/include/c++/4.1.1/bits/stl_uninitialized.h", line 119: Error: memmove is not a member of __gnu_cxx::std.
    "/usr/include/c++/4.1.1/bits/allocator.h", line 124: Error: A declaration does not specify a tag or an identifier.
    "/usr/include/c++/4.1.1/bits/allocator.h", line 124: Error: Use ";" to terminate declarations.
    "/usr/include/c++/4.1.1/limits", line 378: Error: __CHAR_BIT__ is not defined.
    "/usr/include/c++/4.1.1/limits", line 378: Error: An integer constant expression is required here.
    Compilation aborted, too many Error messages.Cheers,
    Sreekar

  • Missing header files when importing a shared library with labview 8.6?

    Hi all,
    I want to import a .dll into my .vi program but I am not able to do it...
    I have created the dll  following the ni website tutorial
    http://zone.ni.com/devzone/cda/tut/p/id/3303#toc2
    Once the dll has been created, I have tried to import it with
    Tools-Import-Shared Library(dll)
    After parsing the header file appears an error like this one:
    void __cdecl Zdmt(LVBoolean *stop, double P, char channelName[],
        TD1 *errorIn, TD14 *FFTOptions, TD12 *Calibration, char FileName[],
        int32_t minRecordLength, TD26 *InstrumentHandler, LVRefNum sessionRefArray[],
        LVRefNum *queueIN, TD1 *errorOut, LVBoolean *averagingDone,
        HWAVES LastRecordFetched, TD24 *Impedance, TD17 *ColeColeCluster,
        TD18 *FFTcluster, TD5 *InstrumentHandleOutputCluster, LVRefNum *queueOut,
        int32_t *Acquired, TD6 *FreqTimeInfoCluster, double *averagesCompleted,
        int32_t len);
    The following symbols are not defined:
    LVBoolean; int32_t; LVRefNum;
    Undefined symbols can prevent the wizard from recognizing functions and parameters. To correct this problem, check the header file to determine if you must add predefined symbols. Click the Back button to return to the previous page of the wizard to add a preprocessor definitionsl (for example, "NIAPI_stdcall = __stdcall" or "NIAPIDefined = 1").
    The following header file was not found in the specified header file or one of the referenced header files:
    -  extcode.h
    To fix, click the Back button to go to the previous page and add the header file path to the Include Paths list.
    I have replaced the first line #include "extcode.h" of the dll header file for #include "C:\Program Files\National Instruments\LabVIEW 8.6\cintools\extcode.h" that is the full path where the header file is located. However, new libraries seems to be missed:
    -  stdint.h
    -  MacTypes.h
    Does anybody know what I have to do??
    Any help will be really appreciated,
    Regards,
    Benjamin

    If you use any of the LabVIEW cintools headers, they reference other headers too. The import wizard is written in a way that it simply skips parsing datatypes that can not be resolved due to missing header files.  If your functions you want to import references such datatypes then you get an according error about any include files the wizard could not load, otherwise not. The wizard can not know which of the missing header files is the problem since it obviously doesn't know what would be in those header files.
    The LabVIEW cintools headers are multiplatform, meaning they evaluate various compiler predefined defines to determine which platform they are included in. The import library wizard does not define any specific defines, since it is not really a compiler. So you have to define them. And they get adapted with each new LabVIEW version to support new compilers and compiler versions, so the defines described in the link in the first post do not have to be correct for cintools headers in newer LabVIEW versions.
    All in all writing DLLs that interface to LabVIEW cintools headers should not be done by writing them and then importing them using the wizard but instead you should write the VI and create the Call Library Node, then let LabVIEW create a template C file from the context menu of the Call Library Node and copy that into your C sources and fill in the functions from there.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Xmlstarlet and header files confusion

    I'm trying to make a package out of xmlstarlet. Just running configure and then make has me running into this error:
    ad /usr/lib/libxml2.a -lz -lm -lpthread -ldl -L/usr/lib
    /usr/lib/libexslt.a(crypto.o): In function `exsltCryptoGcryptInit':
    crypto.c:(.text+0x15c): undefined reference to `gcry_check_version'
    /usr/lib/libexslt.a(crypto.o): In function `exsltCryptoRc4DecryptFunction':
    crypto.c:(.text+0x2d4): undefined reference to `gcry_cipher_open'
    crypto.c:(.text+0x2fe): undefined reference to `gcry_cipher_ctl'
    crypto.c:(.text+0x327): undefined reference to `gcry_cipher_decrypt'
    crypto.c:(.text+0x333): undefined reference to `gcry_strerror'
    crypto.c:(.text+0x36f): undefined reference to `gcry_cipher_close'
    crypto.c:(.text+0x47c): undefined reference to `gcry_strerror'
    crypto.c:(.text+0x4bc): undefined reference to `gcry_strerror'
    /usr/lib/libexslt.a(crypto.o): In function `exsltCryptoRc4EncryptFunction':
    crypto.c:(.text+0x60f): undefined reference to `gcry_cipher_open'
    crypto.c:(.text+0x639): undefined reference to `gcry_cipher_ctl'
    crypto.c:(.text+0x668): undefined reference to `gcry_cipher_encrypt'
    crypto.c:(.text+0x674): undefined reference to `gcry_strerror'
    crypto.c:(.text+0x6b0): undefined reference to `gcry_cipher_close'
    crypto.c:(.text+0x814): undefined reference to `gcry_strerror'
    crypto.c:(.text+0x854): undefined reference to `gcry_strerror'
    /usr/lib/libexslt.a(crypto.o): In function `exsltCryptoSha1Function':
    crypto.c:(.text+0x90c): undefined reference to `gcry_md_hash_buffer'
    /usr/lib/libexslt.a(crypto.o): In function `exsltCryptoMd5Function':
    crypto.c:(.text+0xa0c): undefined reference to `gcry_md_hash_buffer'
    /usr/lib/libexslt.a(crypto.o): In function `exsltCryptoMd4Function':
    crypto.c:(.text+0xb0c): undefined reference to `gcry_md_hash_buffer'
    collect2: ld returned 1 exit status
    make[2]: *** [xml] Error 1
    make[2]: Leaving directory `/tmp/xmlstarlet-1.0.1/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/tmp/xmlstarlet-1.0.1'
    make: *** [all-recursive-am] Error 2
    Now, I don't know how to interpret that error, but the Soureforge page does contain the following advice which I figured might be pertinent:
    Make sure that libxml2 and libxslt header files matches (by version) with libraries you are linking. The versions of include files can be found in ${include_prefix}/libxml2/libxml/xmlversion.h and ${include_prefix}/libxslt/xsltconfig.h
    Using find I came up with the files
    /usr/include/libxslt/xsltconfig.h
    /usr/include/libxml2/libxml/xmlversion.h
    and digging into them made it clear that libxml was version 2.6.32 and libxslt was 1.1.24. But I don't knwo how to match that? Or if this is even remotely relevant to the error message, I'm seeing?

    chochem wrote:bugger... I just submitted it but I can't find any way to submit my .install file alongside it - any hints?
    Just include it in your package and resubmit it (the new package will replace the old one). Also, MIT is not a standard license so you need to store a copy of it in /usr/share/licenses/<package name>/ (read the wiki for more information on this).

  • CPS Simple File Deployer corrupts XLSX and DOCX files when copying to server. Solutions?

    When Contribute Publishing Service Simple File Deployment copies XLSX and DOCX files from our staging server to the live production web server, it is corrupting them.  The resulting file on the live web server is a few bytes different in size.  I published a 9015-byte docx file to our staging server using Dreamweaver (or Contribute).  The resulting file on the staging server opens correctly and remains 9015 bytes.  Then, using CPS Simple File Deployer, I deployed the file from our staging server to our live web server.  The resulting file on the live web server is 9017 bytes, and it won't open.  Something similar happens with XLSX files.  It works fine with XLS, DOC, Html etc.  Well, there is an issue with dependent files unless I synchronize with Dreamweaver, but that's another story.
    Once File Deployer has corrupted the files, opening them brings a message, such as "Excel has found unreadable content in filename.xlsx. . . ".  With Word, it says "The Office Open XML file filename.docx cannot be opened because there are problems with the contents . . . The file is corrupt and cannot be opened."  Sometimes the docx files can be recovered, but that doesn't help. 
    When I take the same original docx file and put it on the web server with an FTP program, it remains 9015 bytes and opens successfully on the live web server.
    For several reasons, such as many users updating the website with Adobe Contribute and not let them use FTP directly to the live server, we need to keep the staging server and use File Deployer (or something) to deploy the changed files from the staging server to the live website.
    I read somewhere that the programming code the uploads files can have problems and fail to work properly with Office 2007 files.  I don't have access to CPS's core.ctc and deployfile.cfc files, and I don't have Cold Fusion. 
    Any suggestions?
    Dean

    Try: 
    Open My Computer.
    Open the Tools menu and choose Folder Options...
    Select the File Types tab.
    Select the extension (for example DOC, or XLS) of the file that is slow to open.
    In the Details section, click [Advanced], and another dialog box will open. 
    In the Actions section, click Open then click [Edit...], and another dialog box will open.
    http://windowssecrets.com/forums/showthread.php/149672-10-9-2012-Updates-and-very-slow-opening-of-Office-files
    KR

  • Getting syntax error in /usr/include/sys/ header files during Compilation

    Hi,
    I am migrating old PRO C code from Oracle 8 + Solaris 8 to Oracle 10 + Solaris 10 environment. While compiling the code it is giving error :*
    Syntax error at line 69, column 2, file /usr/include/sys/uio.h:
    Error at line 69, column 2 in file /usr/include/sys/uio.h
    lloff_t uiooffset; /* file offset */
    .1
    PCC-S-02201, Encountered the symbol "lloff_t" when expecting one of the followin
    g:
    } char, const, double, enum, float, int, long, ulong_varchar,
    OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
    OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
    OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
    struct, union, unsigned, utext, uvarchar, varchar, void,
    volatile, a typedef name,
    The symbol "enum," was substituted for "lloff_t" to continue.
    Any guess why this is happening?

    Hi,
    Try using the PARSE=PARTIAL USERID=user/password[@SID] SQLCHECK=SEMANTICS precompiler options.
    All your hosts variables must be declared inside a Declare section.
    Reference: Pro C/C++ Programmers Guide, chapter 5
    Reguards,
    Rene Rivet

  • Using JAR files when compiling in Windows command line

    Hi all,
    I can't get my JAR files to be recognized. Cananyone help with classpaths, syntax etc. when compiling Java in Windows??
    Thanks in advance.

    This page links to detailed descriptions of both the javac and java command syntaxes
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html#basic

  • How to use external libraries and JAR files with OpenScript

    Hello.
    I am trying to include ApachePOI, JODATime, and Javamail in my scripts to handle different aspects of our automated performance tests.
    I followed the documentation for Eclipse to be allowed to utilize these external libraries, however, when I attempt to run my tests the classes and methods that are being imported, show up with errors saying that they do not exist.
    I think perhaps that I am using them incorrectly. I cannot see them as script assets, package assets, or project assets using the properties for these items. An error pops up and says those screens are not displaying correctly or display incorrect information.
    If anyone can provide guidance on using these items, that would be great. Right now I'm trying to include them as "previously exported scripts" but I'm not sure that method will work.
    Any advice is appreciated.
    Thanks.
    --tiff                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Tiff
    For OpenScript 9.* there is an out of the box solution for that, all you need to do in OpenScript go to:
    Script -> Script Properties -> Script Assets -> Add -> jar File ....
    And that is it.
    Alex

Maybe you are looking for