Bug 14591 - Qt4 moc: "Cannot open options file specified with @" in paths with non-ascii characters
Summary: Qt4 moc: "Cannot open options file specified with @" in paths with non-ascii ...
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL: https://bugreports.qt-project.org/bro...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-18 08:33 CET by Ernest CHIARELLO
Modified: 2014-12-09 10:24 CET (History)
2 users (show)

See Also:
Source RPM: lib64qt4-devel-4.8.6-1.mga4
CVE:
Status comment:


Attachments

Description Ernest CHIARELLO 2014-11-18 08:33:48 CET
Description of problem:

shrew is a VPN client that can be download here :
https://www.shrew.net/download/ike/ike-2.2.1-release.tgz

install is quiet easy, but make failed with an error when invoking /usr/lib64/qt4/bin/moc.

usage :
cmake [OPTIONS]
make
make install

as i need to a graphic interface, the DQTGUI option is set to YES.

[root@~ ike]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DQTGUI=YES -DETCDIR=/etc -DNATT=YES
-- Using install prefix /usr/local ...
-- Using etc install path /etc ...
-- Using bin install path /usr/local/bin ...
-- Using sbin install path /usr/local/sbin ...
-- Using lib install path /usr/local/lib ...
-- Using man install path /usr/share/man ...
-- Using library -lpthread
-- Using binary /usr/bin/flex ...
-- Using binary /usr/bin/bison ...
-- Enabled NAT Traversal support ...
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake (found version "4.8.6") 
-- Enabled Client QT GUI support ...
-- Configuring done
-- Generating done
-- Build files have been written to: ~/Téléchargements/ike

No problem. everything seems ok. but :

[root@~]# make
Scanning dependencies of target ss_ith
[  1%] Building CXX object source/libith/CMakeFiles/ss_ith.dir/libith.o
Linking CXX shared library libss_ith.so
[  1%] Built target ss_ith
Scanning dependencies of target ss_log
[  2%] Building CXX object source/liblog/CMakeFiles/ss_log.dir/liblog.o
Linking CXX shared library libss_log.so
[  2%] Built target ss_log
Scanning dependencies of target ss_idb
[  3%] Building CXX object source/libidb/CMakeFiles/ss_idb.dir/libidb.o
[  5%] Building CXX object source/libidb/CMakeFiles/ss_idb.dir/base64.o
Linking CXX shared library libss_idb.so
[  5%] Built target ss_idb
Scanning dependencies of target ss_ip
[  6%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.frag.o
[  7%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.packet.o
[  8%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.packet.dns.o
[ 10%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.packet.ip.o
[ 11%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.packet.udp.o
[ 12%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.pcap.o
[ 13%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.queue.o
[ 15%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.route.o
Linking CXX shared library libss_ip.so
[ 15%] Built target ss_ip
Scanning dependencies of target ss_pfk
[ 16%] Building CXX object source/libpfk/CMakeFiles/ss_pfk.dir/libpfk.o
Linking CXX shared library libss_pfk.so
[ 16%] Built target ss_pfk
Scanning dependencies of target ss_ike
[ 17%] Building CXX object source/libike/CMakeFiles/ss_ike.dir/client.o
[ 18%] Building CXX object source/libike/CMakeFiles/ss_ike.dir/config.o
[ 20%] Building CXX object source/libike/CMakeFiles/ss_ike.dir/manager.o
[ 21%] Building CXX object source/libike/CMakeFiles/ss_ike.dir/manager.file.o
[ 22%] Building CXX object source/libike/CMakeFiles/ss_ike.dir/libike.o
Linking CXX shared library libss_ike.so
[ 22%] Built target ss_ike
Scanning dependencies of target iked
[ 23%] Building CXX object source/iked/CMakeFiles/iked.dir/crypto.o
[ 25%] Building CXX object source/iked/CMakeFiles/iked.dir/conf.parse.o
[ 26%] Building CXX object source/iked/CMakeFiles/iked.dir/conf.token.o
[ 27%] Building CXX object source/iked/CMakeFiles/iked.dir/dhcp.o
[ 28%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.o
[ 30%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.exch.config.o
[ 31%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.exch.inform.o
[ 32%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.exch.phase1.o
[ 33%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.exch.phase2.o
[ 35%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.config.o
[ 36%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.inform.o
[ 37%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.lists.o
[ 38%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.phase1.o
[ 40%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.phase2.o
[ 41%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.peer.o
[ 42%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.policy.o
[ 43%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.tunnel.o
[ 45%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.exch.o
[ 46%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.io.admin.o
[ 47%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.io.network.o
[ 48%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.io.pfkey.o
[ 50%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.keyfile.o
[ 51%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.names.o
[ 52%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.nethlp.o
[ 53%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.packet.o
[ 55%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.payload.o
[ 56%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.peerid.o
[ 57%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.policy.o
[ 58%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.proposal.o
[ 60%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.socket.o
[ 61%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.xauth.o
[ 62%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.xconf.o
[ 63%] Building CXX object source/iked/CMakeFiles/iked.dir/iked.o
[ 65%] Building CXX object source/iked/CMakeFiles/iked.dir/main.o
Linking CXX executable iked
[ 67%] Built target iked
Scanning dependencies of target ikec
[ 68%] Building CXX object source/ikec/CMakeFiles/ikec.dir/main.o
[ 70%] Building CXX object source/ikec/CMakeFiles/ikec.dir/ikec.o
Linking CXX executable ikec
[ 70%] Built target ikec
[ 71%] Generating qrc_qikea.cxx
[ 72%] Generating ui_about.h
[ 73%] Generating ui_conflict.h
[ 75%] Generating ui_root.h
[ 76%] Generating ui_site.h
[ 77%] Generating ui_topology.h
[ 78%] Generating moc_qikea.cxx
moc: Cannot open options file specified with @
Usage: moc [options] <header-file>
  -o<file>           write output to file rather than stdout
  -I<dir>            add dir to the include path for header files
  -E                 preprocess only; do not generate meta object code
  -D<macro>[=<def>]  define macro, with optional definition
  -U<macro>          undefine macro
  -i                 do not generate an #include statement
  -p<path>           path prefix for included file
  -f[<file>]         force #include, optional file name
  -nn                do not display notes
  -nw                do not display warnings
  @<file>            read additional options from file
  -v                 display version of moc
source/qikea/CMakeFiles/qikea.dir/build.make:81: recipe for target 'source/qikea/moc_qikea.cxx' failed
make[2]: *** [source/qikea/moc_qikea.cxx] Error 1
CMakeFiles/Makefile2:528: recipe for target 'source/qikea/CMakeFiles/qikea.dir/all' failed
make[1]: *** [source/qikea/CMakeFiles/qikea.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2


How reproducible:
same problem on my Mageia 4 laptop at home.

Steps to Reproduce:
1. wget https://www.shrew.net/download/ike/ike-2.2.1-release.tgz
2. tar zxvf ike-2.2.1-release.tgz
3. cd ike
4. cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DQTGUI=YES -DETCDIR=/etc -DNATT=YES
5. make

my config :

Linux 3.12.25-desktop-3.mga4 #1 SMP Sun Jul 27 23:33:54 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

lib64qt4-devel-4.8.6-1.mga4

make-4.0-2.mga4
cmake-2.8.12.1-1.mga4

any help would be appreciated.

Thanks !

Ernest.

Reproducible: 

Steps to Reproduce:
Comment 1 Ernest CHIARELLO 2014-11-21 15:07:19 CET
well... no anwser ?  i am very desapointed.

the problem i describe above is Mageia specific.
there is no problem on Debian !!


but sorry, but i love Mageia...


Ernest.
Ernest CHIARELLO 2014-11-21 15:08:50 CET

CC: (none) => ernest.chiarello

Comment 2 Rémi Verschelde 2014-12-02 12:21:33 CET
Do you happen to have accentuated (or other non-ascii) characters in your pwd?

For example if you are trying to build it in ~/Téléchargements/ike or if you have an accentuated character in your username (like /home/dédé), you might face this bug: https://bugreports.qt-project.org/browse/QTBUG-35480

On a side note, you should probably run cmake and make as normal user and not as root.

CC: (none) => remi

Comment 3 Ernest CHIARELLO 2014-12-09 09:59:37 CET
i posted this bug on vpn-help@lists.shrew.net,
and i received this answer, from Alexis :

"Bonjour Ernest,
Your problem coming from a bug on Qt and your "Téléchargement" Folder
https://bugreports.qt-project.org/browse/QTBUG-35480
Need to upgrade your Qt release or change the source code
Regards,"

he is right.
i renamed my "Téléchargement" folder in "Telechargement", and moc didn't failed.


Thanks to Alexis !


Ernest.


On Fri, Dec 5, 2014 at 2:50 PM, Chiarello Ernest
<Ernest.Chiarello@univ-fcomte.fr> wrote:
> Hello everybody,
>
> i have a problem with Mageia 4 : make failed with an error when invoking
> /usr/lib64/qt4/bin/moc.
>
> i posted this problem on Mageia Bugzilla, but nobody answers...
> https://bugs.mageia.org/show_bug.cgi?id=14591
Comment 4 Rémi Verschelde 2014-12-09 10:11:58 CET
Note that I had given the exact same answer three days before ;-)

Closing as WONTFIX since it's an unresolved upstream Qt bug.

Status: NEW => RESOLVED
Resolution: (none) => WONTFIX

Rémi Verschelde 2014-12-09 10:24:26 CET

Summary: /usr/lib64/qt4/bin/moc: Cannot open options file specified with @ => Qt4 moc: "Cannot open options file specified with @" in paths with non-ascii characters

Rémi Verschelde 2014-12-09 10:24:43 CET

URL: (none) => https://bugreports.qt-project.org/browse/QTBUG-35480


Note You need to log in before you can comment on or make changes to this bug.