📄 system.so
字号:
m4_comment([$Id: system.so,v 11.5 2000/03/18 21:43:20 bostic Exp $])m4_ref_title(Upgrading m4_db Applications, Release 2.0: system integration,, upgrade.2.0/intro, upgrade.2.0/convert)m4_nlistbeginm4_nlist([dnlIt is possible to maintain both the m4_db 1.85 and m4_db version 2libraries on your system. However, the m4_path(db.h) include file thatwas distributed with m4_db 1.85 is not compatible with the m4_path(db.h)file distributed with m4_db version 2, so you will have to install themin different locations. In addition, both the m4_db 1.85 and m4_dbversion 2 libraries are named m4_path(libdb.a).m4_p([dnlAs the m4_db 1.85 library did not have an installation target in theMakefile, there's no way to know exactly where it was installed on thesystem. In addition, many vendors included it in the C library insteadof as a separate library, and so it may actually be part of libc and them4_path(db.h) include file may be installed in m4_path(/usr/include).])m4_p([dnlFor these reasons, the simplest way to maintain both libraries is toinstall m4_db version 2 in a completely separate area of your system.The m4_db version 2 installation process allows you to install into astandalone directory hierarchy on your system. See them4_link(M4RELDIR/ref/build_unix/intro, Building for UNIX systems)documentation for more information and instructions on how to install them4_db version 2 library, include files and documentation into specificlocations.])])m4_nlist([dnlAlternatively, you can replace m4_db 1.85 on your system with m4_dbversion 2. In this case, you'll probably want to install m4_db version2 in the normal place on your system, wherever that may be, and deletethe m4_db 1.85 include files, manual pages and libraries.m4_p([dnlTo replace 1.85 with version 2, you must either convert your 1.85applications to use the version 2 API or build the m4_db version 2 libraryto include m4_db 1.85 interface compatibility code. Whether convertingyour applications to use the version 2 interface or using the version 1.85compatibility API, you will need to recompile or relink your 1.85applications, and you must convert any persistent application databasesto the m4_db version 2 database formats.])m4_p([dnlIf you want to recompile your m4_db 1.85 applications, you will have tochange them to include the file m4_path(db_185.h) instead ofm4_path(db.h). (The m4_path(db_185.h) file is automatically installedduring the m4_db version 2 installation process.) You can then recompilethe applications, linking them against the m4_db version 2 library.])m4_p([dnlFor more information on compiling the m4_db 1.85 compatibility code intothe m4_db version 2 library, see m4_link(M4RELDIR/ref/build_unix/intro,Building for UNIX platforms).])m4_p([dnlFor more information on converting databases from the m4_db 1.85 formatsto the m4_db version 2 formats, see the m4_ref(db_dump185) andm4_ref(db_load) documentation.])])m4_nlist([dnlFinally, although we certainly do not recommend it, it is possible toload both m4_db 1.85 and m4_db version 2 into the same library.Similarly, it is possible to use both m4_db 1.85 and m4_db version 2within a single application, although it is not possible to use them fromwithin the same file.m4_p([dnlThe name space in m4_db version 2 has been changed from that of previousm4_db versions, notably version 1.85, for portability and consistencyreasons. The only name collisions in the two libraries are the names usedby the historic m4_ref(dbm), m4_ref(ndbm) and m4_ref(hsearch) interfaces,and the m4_db 1.85 compatibility interfaces in the m4_db version 2library.])m4_p([dnlIf you are loading both m4_db 1.85 and m4_db version 2 into a singlelibrary, remove the historic interfaces from one of the two librarybuilds, and configure the m4_db version 2 build to not include the m4_db1.85 compatibility API, otherwise you could have collisions and undefinedbehavior. This can be done by editing the library Makefiles andreconfiguring and rebuilding the m4_db version 2 library. Obviously, ifyou use the historic interfaces, you will get the version in the libraryfrom which you did not remove them. Similarly, you will not be able toaccess m4_db version 2 files using the m4_db 1.85 compatibility interface,since you have removed that from the library as well.])])m4_nlistendm4_page_footer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -