Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#200 Undefined reference to `_open'

0.68
open
nobody
None
5
2013-11-23
2013-11-20
systemmind
No

When I try to install mpg123 from sourcecode I run nmake and get next error:
/cygdrive/d/install/mpg123-1.16.0/src/mpg123.c:309: undefined reference to _open' /cygdrive/d/install/mpg123-1.16.0/src/mpg123.c:309:(.text+0x74f): relocation truncated to fit: R_X86_64_PC32 against undefined symbol_open'
collect2: error: ld returned 1 exit status

environment: CYGWIN_x86_64

How to fix this problem?

Discussion

  • Jonathan Yong
    Jonathan Yong
    2013-11-20

    Please post your config.log and build log. The error sounds very suspicious.

     
  • Jonathan Yong
    Jonathan Yong
    2013-11-20

    Actually, I have a rough idea what is going on, WIN32 is somehow defined where it shouldn't.

     
  • systemmind
    systemmind
    2013-11-21

    Sure.
    There are configure and build log files in the attachment.

    And the more detail error that I got:

    ../../libtool: line 1101: /usr/bin/nm: No such file or directory
    /usr/bin/sed: -e expression #1, char 1: unknown command: C' mpg123.o: In functionset_out_file':
    /cygdrive/d/install/mpg123-1.16.0/src/mpg123.c:309: undefined reference to _open' /cygdrive/d/install/mpg123-1.16.0/src/mpg123.c:309:(.text+0x74f): relocation truncated to fit: R_X86_64_PC32 against undefined symbol_open'
    collect2: error: ld returned 1 exit status
    make[3]: [mpg123.exe] Error 1
    make[2]:
    [all-recursive] Error 1
    make[1]: [all] Error 2
    make:
    [all-recursive] Error 1

    Thanks!

     
    Attachments
  • Jonathan Yong
    Jonathan Yong
    2013-11-23

    I have made changes to the trunk version to use *nix interface rather than win32 interface. Along with some fixes for AVX/SSE on 64bit Cygwin.

    Set priority might be broken though, I have not investigated it thoroughly.