Bug 169684 - /ports/multimedia/qmmp not compile
Summary: /ports/multimedia/qmmp not compile
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Eitan Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-06 17:50 UTC by Belansky Stanislav
Modified: 2012-07-09 06:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Belansky Stanislav 2012-07-06 17:50:06 UTC
Don't compile new version from ports collection. In console I see next errors:

[  8%] Generating ui_aboutdialog.h
Scanning dependencies of target qmmpui
[  8%] Building CXX object src/qmmpui/CMakeFiles/qmmpui.dir/general.o
[  9%] Building CXX object src/qmmpui/CMakeFiles/qmmpui.dir/uihelper.o                          
In file included from /usr/ports/multimedia/qmmp/work/qmmp-0.6.0/src/qmmpui/uihelper.cpp:34:
/usr/ports/multimedia/qmmp/work/qmmp-0.6.0/src/qmmpui/uihelper.h:92: error: 'instance' is not a member of 'PlayListManager'
/usr/ports/multimedia/qmmp/work/qmmp-0.6.0/src/qmmpui/uihelper.h:94: error: 'instance' is not a member of 'PlayListManager'
/usr/ports/multimedia/qmmp/work/qmmp-0.6.0/src/qmmpui/uihelper.h:96: error: 'instance' is not a member of 'PlayListManager'
/usr/ports/multimedia/qmmp/work/qmmp-0.6.0/src/qmmpui/uihelper.h:98: error: 'instance' is not a member of 'PlayListManager'
/usr/ports/multimedia/qmmp/work/qmmp-0.6.0/src/qmmpui/uihelper.h:100: error: 'instance' is not a member of 'PlayListManager'
/usr/ports/multimedia/qmmp/work/qmmp-0.6.0/src/qmmpui/uihelper.cpp: In member function 'void UiHelper::loadPlayList(QWidget*, PlayListModel*)':
/usr/ports/multimedia/qmmp/work/qmmp-0.6.0/src/qmmpui/uihelper.cpp:157: error: invalid use of incomplete type 'struct PlaylistFormat'
/usr/local/include/qmmpui/playlistparser.h:25: error: forward declaration of 'struct PlaylistFormat'
/usr/ports/multimedia/qmmp/work/qmmp-0.6.0/src/qmmpui/uihelper.cpp: In member function 'void UiHelper::savePlayList(QWidget*, PlayListModel*)':
/usr/ports/multimedia/qmmp/work/qmmp-0.6.0/src/qmmpui/uihelper.cpp:183: error: invalid use of incomplete type 'struct PlaylistFormat'
/usr/local/include/qmmpui/playlistparser.h:25: error: forward declaration of 'struct PlaylistFormat'
*** [src/qmmpui/CMakeFiles/qmmpui.dir/uihelper.o] Error code 1

Stop in /usr/ports/multimedia/qmmp/work/.build.
*** [src/qmmpui/CMakeFiles/qmmpui.dir/all] Error code 1

Stop in /usr/ports/multimedia/qmmp/work/.build.
*** [all] Error code 1

Stop in /usr/ports/multimedia/qmmp/work/.build.
*** [do-build] Error code 1

Stop in /usr/ports/multimedia/qmmp.
*** [build] Error code 1

Stop in /usr/ports/multimedia/qmmp.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20120706-86609-1qgvlzp env UPGRADE_TOOL=portupgrade UPGRADE_PORT=qmmp-0.5.6 UPGRADE_PORT_VER=0.5.6 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! multimedia/qmmp (qmmp-0.5.6)  (unknown build error)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-07-06 17:50:49 UTC
Maintainer of multimedia/qmmp,

Please note that PR ports/169684 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/169684

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2012-07-06 17:50:50 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 RyōTa SimaMoto 2012-07-07 06:01:34 UTC
Thank you for an exact report.  I am sorry but any perfect solution
are not found.

This problem has been very important since this port was introduced,
but I do not have any good ideas.  The current build system usually
loads header files from installed version instead of source tree,
even if former one is older.  When a package of certain version is
installed, patch level (micro) upgrading might work without error,
but minor release upgrading (like from v0.5.x to v0.6.x) should result
always in fail because of version incompatibility of header files.

There may be three ways to workaround.  Please choose select one of
them and apply it by your hand:
A) Uninstall (pkg_delete) qmmp-0.5.6.  Then upgrading the port
   should finish with hopefully no errors.
B) Remove installed header files.  Package manager may blame
   that some files does not exsist when uninstallation, but will
   not stop its process.
C) Edit search order of header file paths.  To do this, after the
   phase of 'make configure', run the following command:
      cd ports/multimedia/qmmp ; \
      find work/.build -type f -name flags.make -exec \
      sed -i.bak -e '/_FLAGS =3D /s|-I/usr/local/include |g' \
      -e '/_FLAGS =3D /s|$| -I/usr/local/include|' {} +
   When you apply the third measures during compilation, portupgrade
   also may pass the process safely.

Uglyness of these kludges are all caused by my shortage of CMake
knowledge.

SimaMoto,Ry=C5=8DTa <liangtai.s4@gmail.com>
Comment 4 Belansky Stanislav 2012-07-07 14:20:44 UTC
07.07.2012 09:10, RyÅTa SimaMoto:
> The following reply was made to PR ports/169684; it has been noted by GNATS.
>
> From: =?UTF-8?Q?Ry=C5=8DTa_SimaMoto?= <liangtai.s4@gmail.com>
> To: bug-followup@freebsd.org, stanislav@icmail.ru
> Cc:
> Subject: Re: ports/169684: /ports/multimedia/qmmp not compile
> Date: Sat, 7 Jul 2012 14:01:34 +0900
>
>   Thank you for an exact report.  I am sorry but any perfect solution
>   are not found.
>   
>   This problem has been very important since this port was introduced,
>   but I do not have any good ideas.  The current build system usually
>   loads header files from installed version instead of source tree,
>   even if former one is older.  When a package of certain version is
>   installed, patch level (micro) upgrading might work without error,
>   but minor release upgrading (like from v0.5.x to v0.6.x) should result
>   always in fail because of version incompatibility of header files.
>   
>   There may be three ways to workaround.  Please choose select one of
>   them and apply it by your hand:
>   A) Uninstall (pkg_delete) qmmp-0.5.6.  Then upgrading the port
>      should finish with hopefully no errors.
>   B) Remove installed header files.  Package manager may blame
>      that some files does not exsist when uninstallation, but will
>      not stop its process.
>   C) Edit search order of header file paths.  To do this, after the
>      phase of 'make configure', run the following command:
>         cd ports/multimedia/qmmp ; \
>         find work/.build -type f -name flags.make -exec \
>         sed -i.bak -e '/_FLAGS =3D /s|-I/usr/local/include |g' \
>         -e '/_FLAGS =3D /s|$| -I/usr/local/include|' {} +
>      When you apply the third measures during compilation, portupgrade
>      also may pass the process safely.
>   
>   Uglyness of these kludges are all caused by my shortage of CMake
>   knowledge.
>   
>   SimaMoto,Ry=C5=8DTa <liangtai.s4@gmail.com>
> _______________________________________________
> freebsd-ports-bugs@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
> To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org"
>
>
Thank you very much.
After uninstalling previous version 0.5.6 next version 0.6.0 build 
successfully.


-- 

Belansky Stanislav
Comment 5 Eitan Adler freebsd_committer freebsd_triage 2012-07-09 06:52:53 UTC
State Changed
From-To: feedback->closed

Problem has been fixed
Comment 6 Eitan Adler freebsd_committer freebsd_triage 2012-07-09 06:53:03 UTC
Responsible Changed
From-To: freebsd-ports-bugs->eadler

I closed it.