Updates from October, 2013 Toggle Comment Threads | Keyboard Shortcuts

  • Ady Romantika 12:40 am on October 30, 2013 Permalink | Reply

    Deep C 

  • Ady Romantika 4:12 pm on October 29, 2013 Permalink | Reply
    Tags: build, , libphonenumber,   



    Built a new C++ PHP extension referencing libphonenumber, crashed with segmentation fault. Might have something to do with x86_64, still investigating. The annoying part is that the block that crashes it is:

    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &num) == FAILURE)

    If argument parsing is omitted and parameters hardcoded, the function is able to return expected result.

    Attempted to use 32 bit machine, but libphonenumber build fails:

    [ 74%] Building CXX object CMakeFiles/libphonenumber_test.dir/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc.o
    /home/vagrant/libphonenumber-read-only/cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc:61:5: error: this decimal constant is unsigned only in ISO C90 [-Werror]
    /home/vagrant/libphonenumber-read-only/cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc:63:5: error: this decimal constant is unsigned only in ISO C90 [-Werror]
    cc1plus: all warnings being treated as errors
    make[2]: *** [CMakeFiles/libphonenumber_test.dir/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc.o] Error 1
    make[1]: *** [CMakeFiles/libphonenumber_test.dir/all] Error 2
    make: *** [all] Error 2

    Also, Ubuntu precise has PHP 5.3

    • Ady Romantika 11:15 am on November 6, 2013 Permalink | Reply

      Since we expect a string, the string length is required.

      if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &num, &num_len) == FAILURE)
  • Ady Romantika 2:37 pm on October 27, 2013 Permalink | Reply

    I wish that the right hand box labeled “Sidebar” in the Widgets settings page follows the page scroll. It’s quite inconvenient to drag new widgets into it.

    • Ady Romantika 5:16 am on November 2, 2013 Permalink | Reply

      Workaround: Drag the new widget from “Available Widgets” into “Inactive Widgets”, customize and save it, collapse “Available Widgets” so that the “Inactive Widgets” is right next to the “Sidebar”. It’s now closer to drag.

  • Ady Romantika 2:30 pm on October 27, 2013 Permalink | Reply
    Tags: ,   

    Checksum Mismatch 

    Using OpenDNS

    sudo port upgrade outdated
    ---> Fetching archive for apr
    Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports.

    Upgrading, received an error:

    The file has been moved to: /opt/local/var/macports/distfiles/file/file-5.15.tar.gz.html
    Error: org.macports.checksum for port libmagic returned: Unable to verify file checksums

    Downloaded the file manually and the upgrade continues. Removed OpenDNS from my dnsmasq.

  • Ady Romantika 4:20 am on October 27, 2013 Permalink | Reply
    Tags: ,   

    MacPorts on Mavericks 

    Attempt to upgrade MacPorts (to 2.2.1) after Mavericks failed:

    checking for Tcl configuration...
    configure: error: Can't find Tcl configuration definitions

    Remedy: Install command line tools

    xcode-select --install

    The install command line tools button is no longer there in Xcode.

    Reference: Autodetection Tcl config variables fail on 10.9

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc