Opened 14 years ago

Closed 14 years ago

#26460 closed enhancement (invalid)

boost: use BOOST_IOSTREAMS_USE_DEPRECATED

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: adfernandes (Andrew Fernandes)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port: boost

Description

boost 1.44.0 deletes a capability used by some existing ports, such as wesnoth; see MacPorts ticket 26449. See Boost ticket 4460 for why this was removed from boost, and how to get it back for now until software like wesnoth is updated to no longer use that capability.

Change History (1)

comment:1 Changed 14 years ago by adfernandes (Andrew Fernandes)

Resolution: invalid
Status: newclosed

The current build already defines BOOST_IOSTREAMS_USE_DEPRECATED. It is, however, not by default defined in the header. Thus applications need to explicitly define this before they include the boost header to get it.

This is by design. It allows old code to be compiled by simply adding a define statement, but does not export the symbols by default to prevent their use in new code.

[...snip...]

        mkdir -p "bin.v2/libs/iostreams/build/darwin-4.2.1/release"
    
darwin.compile.c++ bin.v2/libs/iostreams/build/darwin-4.2.1/release/file_descriptor.o

    "/usr/bin/g++-4.2"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -dynamic -no-cpp-precomp -gdwarf-2 -fPIC  -DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_DYN_LINK=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG  -I"." -I"/opt/local/include" -c -o "bin.v2/libs/iostreams/build/darwin-4.2.1/release/file_descriptor.o" "libs/iostreams/src/file_descriptor.cpp"

darwin.compile.c++ bin.v2/libs/iostreams/build/darwin-4.2.1/release/mapped_file.o

    "/usr/bin/g++-4.2"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -dynamic -no-cpp-precomp -gdwarf-2 -fPIC  -DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_DYN_LINK=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG  -I"." -I"/opt/local/include" -c -o "bin.v2/libs/iostreams/build/darwin-4.2.1/release/mapped_file.o" "libs/iostreams/src/mapped_file.cpp"

darwin.compile.c++ bin.v2/libs/iostreams/build/darwin-4.2.1/release/zlib.o

    "/usr/bin/g++-4.2"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -dynamic -no-cpp-precomp -gdwarf-2 -fPIC  -DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_DYN_LINK=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG  -I"." -I"/opt/local/include" -c -o "bin.v2/libs/iostreams/build/darwin-4.2.1/release/zlib.o" "libs/iostreams/src/zlib.cpp"

[...snip...]
Note: See TracTickets for help on using tickets.