Opened 9 years ago

Closed 9 years ago

#34426 closed defect (worksforme)

VLC: error: read-only variable is not assignable

Reported by: amadeus24 Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: nonstop.server@…
Port: VLC

Description (last modified by ryandesign (Ryan Schmidt))

It was great to port VLC to the last version and it runs really stable. Yesterday I tried to update my tree, but updating from 2.0.1 to VLC-2.0.1_1, the build failed. I cleaned then all installed ports and start the installation again, but was also not successful.

Last lines of main.log:

:info:build 16 warnings and 5 errors generated.
:info:build make[5]: *** [libncurses_plugin_la-ncurses.lo] Error 1
:info:build make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_VLC/VLC/work/VLC-2.0.1/modules/gui'
:info:build make[4]: *** [all-recursive] Error 1
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_VLC/VLC/work/VLC-2.0.1/modules/gui'
:info:build make[3]: *** [all] Error 2
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_VLC/VLC/work/VLC-2.0.1/modules/gui'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_VLC/VLC/work/VLC-2.0.1/modules'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_VLC/VLC/work/VLC-2.0.1'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_VLC/VLC/work/VLC-2.0.1'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_VLC/VLC/work/VLC-2.0.1" && /usr/bin/make -j4 -w all DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_VLC/VLC/work/VLC-2.0.1/dest_ignore " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for VLC): org.macports.install org.macports.build org.macports.destroot
:notice:build Log for VLC is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_VLC/VLC/main.log

Attachments (1)

main.log (395.1 KB) - added by amadeus24 9 years ago.
main.log from VLC

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by amadeus24

Attachment: main.log added

main.log from VLC

comment:1 Changed 9 years ago by nonstop.server@…

Cc: nonstop.server@… added

Cc Me!

comment:2 Changed 9 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Keywords: VLC failed to build removed
Port: VLC added; VLC-2.0.1_1 removed
Summary: Failed to build VLC-2.0.1_1VLC: error: read-only variable is not assignable

The actual relevant error in the log appears to be:

:info:build In file included from ncurses.c:43:
:info:build /opt/local/include/ncurses.h:1244:27: note: instantiated from:
:info:build #define mvhline(y,x,c,n)                mvwhline(stdscr,y,x,c,n)
:info:build                                         ^
:info:build /opt/local/include/ncurses.h:1223:57: note: instantiated from:
:info:build #define mvwhline(win,y,x,c,n)           (wmove(win,y,x) == ERR ? ERR : whline(win,c,n))
:info:build                                                                  ^
:info:build /opt/local/include/ncurses.h:314:18: note: instantiated from:
:info:build #define ERR     (-1)
:info:build                  ^~
:info:build ncurses.c:649:23: error: read-only variable is not assignable
:info:build             wide[i  ] = '.';
:info:build             ~~~~~~~~~ ^
:info:build ncurses.c:650:23: error: read-only variable is not assignable
:info:build             wide[i+1] = '.';
:info:build             ~~~~~~~~~ ^
:info:build ncurses.c:655:27: error: read-only variable is not assignable
:info:build                 wide[i-1] = '.';
:info:build                 ~~~~~~~~~ ^
:info:build ncurses.c:670:46: error: read-only variable is not assignable
:info:build             wide[i + 2 + i_char_len - j - 1] = '\0';
:info:build             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build ncurses.c:676:17: error: read-only variable is not assignable
:info:build         wide[i] = '\0';
:info:build         ~~~~~~~ ^
:info:build ncurses.c:1042:5: warning: expression result unused [-Wunused-value]
:info:build     attrset(A_REVERSE);
:info:build     ^~~~~~~~~~~~~~~~~~

comment:3 Changed 9 years ago by amadeus24

Since this error I realized there was an update to the port, but I still have the same problem. Do you know any workaround?

comment:4 in reply to:  3 Changed 9 years ago by nonstop.server@…

Replying to ag@…:

Do you know any workaround?

Take a look at #34741, it seems to me this is a likewise problem.
In my case it was an error due to the fact that my XCode was out of date.
On advice of Jeremy I upgraded my XCode to the latest available version for OSX 10.6 and was able to install VLC.
Note: Upgrading the current port of VLC did not work for me, I had to disable the installed version and perform an install of the latest one.
I hope this will help you to get it working.

comment:5 Changed 9 years ago by amadeus24

Thanks! With the update of XCode everything get fine. In my opinion the ticket can be closed.

comment:6 Changed 9 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to jeremyhu@…

comment:7 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.