Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dsperley
    Junior Member
    • Oct 2014
    • 2

    #1

    Randfold installation problem

    Hi

    I'm trying to install randfold2.0 as part of mirdeep. I've installed squid1.9g, and edited the randfold makefile to include the path of the squid1.9g directory. When I run make, I get the following warnings and errors:


    Hydrogen-2:randfold-2.0 danielleperley$ make
    gcc -O3 -I. -I/Users/danielleperley/squid-1.9g/ -L/Users/danielleperley/squid-1.9g/. -o randfold params.o energy_par.o fold.o fold_vars.o utils.o randfold.c -lm -lsquid
    randfold.c:64:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
    while (c = *++argv[0])
    ~~^~~~~~~~~~~~
    randfold.c:64:13: note: place parentheses around the assignment to silence this warning
    while (c = *++argv[0])
    ^
    ( )
    randfold.c:64:13: note: use '==' to turn this assignment into an equality comparison
    while (c = *++argv[0])
    ^
    ==
    randfold.c:89:2: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)'
    strcpy(seqfile,*argv);
    ^
    randfold.c:89:2: note: please include the header <string.h> or explicitly provide a declaration for 'strcpy'
    randfold.c:103:38: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)'
    structure = malloc(sizeof(char) * (strlen(seq)+1));
    ^
    randfold.c:103:38: note: please include the header <string.h> or explicitly provide a declaration for 'strlen'
    randfold.c:147:3: warning: expression result unused [-Wunused-value]
    free_arrays;
    ^~~~~~~~~~~
    4 warnings generated.
    Undefined symbols for architecture x86_64:
    "_HairpinE", referenced from:
    _fill_arrays in fold.o
    _backtrack in fold.o
    _stack_energy in fold.o
    "_LoopEnergy", referenced from:
    _fill_arrays in fold.o
    _backtrack in fold.o
    _stack_energy in fold.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [randfold] Error 1

    Do I need to link another library? Any ideas/suggestions?
  • ehutchins
    Junior Member
    • Feb 2011
    • 1

    #2
    I'm having the same issues. I fixed 3/4 warnings by:

    1) adding #include<string.h> to the header in the randfold.c file. This defines the strcpy and strncpy library functions (see a related stackoverflow thread here).

    2) editing line 64 of randfold.c to have '==' as requested: while (c == *++argv[0])

    With these fixes, I can run it on my Ubuntu Linux machine without issue, but I am still getting a similar error message on my OS 10.9.5 (Xcode 5.1.1) machine. I browsed some C developer forums and see that the fix could be multiple issues, and I haven't figured it out yet. I'm not a C developer myself so it's a bit beyond me, but I'll let you know if I find a full solution.




    Error after incorporating the above fix:
    $ make
    gcc -c energy_par.c
    gcc -c params.c
    gcc -c fold.c
    gcc -c fold_vars.c
    gcc -c utils.c
    gcc -O3 -I. -o randfold params.o energy_par.o fold.o fold_vars.o utils.o randfold.c -lm -lsquid
    randfold.c:148:3: warning: expression result unused [-Wunused-value]
    free_arrays;
    ^~~~~~~~~~~
    1 warning generated.
    Undefined symbols for architecture x86_64:
    "_HairpinE", referenced from:
    _fill_arrays in fold.o
    _backtrack in fold.o
    _stack_energy in fold.o
    "_LoopEnergy", referenced from:
    _fill_arrays in fold.o
    _backtrack in fold.o
    _stack_energy in fold.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [randfold] Error 1

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
      by SEQadmin2



      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
      ...
      10-14-2026, 09:55 AM
    • SEQadmin2
      New Genomics Technologies Take Aim at Long-Standing Limits
      by SEQadmin2


      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
      ...
      09-28-2026, 10:25 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Yesterday, 11:13 AM
    0 responses
    15 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, Yesterday, 10:48 AM
    0 responses
    13 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    35 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    42 views
    0 reactions
    Last Post SEQadmin2  
    Working...