Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#42203 - [db] Configure with --enable-stl

Attached to Project: Arch Linux
Opened by Oleksandr Gituliar (gituliar) - Wednesday, 01 October 2014, 10:17 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Thursday, 09 October 2014, 05:37 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Andreas Radke (AndyRTR)
Allan McRae (Allan)
Stéphane Gaudreault (stephane)
Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Please, add `--enable-stl' flag when running `configure' script.

That is required to compile some programs.
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Thursday, 09 October 2014, 05:37 GMT
Reason for closing:  Implemented
Additional comments about closing:  db 5.3.28-2
Comment by Doug Newgard (Scimmia) - Wednesday, 01 October 2014, 15:23 GMT
  • Field changed: Task Type (Support Request → Feature Request)
  • Field changed: Summary ([db] Configured without --enable-stl → [db] Configure with --enable-stl)
  • Field changed: Status (Unconfirmed → Assigned)
  • Task assigned to Andreas Radke (AndyRTR)
Orphan, assigning to last packager.

This is a duplicate of  FS#29433 , but there's no information there.
Comment by Andreas Radke (AndyRTR) - Saturday, 04 October 2014, 17:46 GMT
http://docs.oracle.com/cd/E17276_01/html/programmer_reference/build_unix_conf.html



--enable-stl

To build the Berkeley DB C++ STL API, enter --enable-stl as an argument to configure. Setting this argument implies that --enable-cxx is set, and the Berkeley DB C++ API will be built too.

There will be a libdb_stl-X.X.a and libdb_stl-X.X.so built, which are the static and shared library you should link your application with in order to make use of Berkeley DB via its STL API.

If your compiler is not ISO C++ compliant, the configure may fail with this argument specified because the STL API requires standard C++ template features. In this case, you will need a standard C++ compiler. So far gcc is the best choice, we have tested and found that gcc-3.4.4 and all its newer versions can build the Berkeley DB C++ STL API successfully.

And you need to include the STL API header files in your application code. If you are using the Berkeley DB source tree, the header files are in <Berkeley DB Source Root >/stl directory; If you are using the installed version, these header files are in < Berkeley DB Installed Directory>/include, as well as the db.h and db_cxx.h header files.


What do you need that for? Will it link to additional packages when using this option? How's pkg size growing?
Comment by Allan McRae (Allan) - Monday, 06 October 2014, 09:40 GMT
This is a separate library that adds 2MB to the installed size. I see no reason not to include it if a use case is made.
Comment by Oleksandr Gituliar (gituliar) - Monday, 06 October 2014, 09:50 GMT
One of the use cases I faced is compilation of Reduze [1] program which requires `--enable-stl` flag for some additional features.

Reduze is one of the most popular tools in its field, hence I wish to add it to AUR. The above option is required in order to link Reduze with Berkeley DB library, without which its usage is limited. I hope that adding this flag won't cause any harm.

[1] https://reduze.hepforge.org/
Comment by Bartłomiej Piotrowski (Barthalion) - Wednesday, 08 October 2014, 16:49 GMT
Oops, wrong bug. Re-opening.

Loading...