Build broken due to -lpthread

Gerald Pfeifer gerald at
Sun Aug 24 05:55:52 CDT 2003

Update: with Alexandre's followup patch, Wine now builds on FreeBSD with
GCC 3.2.x (though with the system compiler we have some problems, but
let's postpone those).

On Thu, 21 Aug 2003, Gerald Pfeifer wrote:
> So perhaps we ought to use -lc_r instead of -lc and omit -lpthread on
> FreeBSD (or use -pthread)?

I tried that, and everything builds fine, but when I start Wine, I
immediately get the following:

  Segmentation fault (core dumped)

with this backtrace:

  #0  0x5c258aac in .cerror () from /usr/lib/
  #1  0x5c305ca6 in flock () from /usr/lib/
  #2  0x5c238919 in _yp_dobind () from /usr/lib/
  #3  0x5c238fa8 in yp_match () from /usr/lib/
  #4  0x5c21cc12 in endpwent () from /usr/lib/
  #5  0x5c21c3b8 in getpwuid () from /usr/lib/
  #6  0x5c0d76a5 in init_paths () at config.c:112
  #7  0x5c0d7a22 in wine_get_server_dir () at config.c:191
  #8  0x5c0848f2 in CLIENT_InitServer () at ../../scheduler/client.c:640
  #9  0x5c085834 in process_init (argv=0xbfbff670)
      at ../../scheduler/process.c:309
  #10 0x5c085d61 in __wine_process_init (argc=1, argv=0xbfbff670)
      at ../../scheduler/process.c:486
  #11 0x5c0d9176 in wine_init (argc=1, argv=0xbfbff670, error=0xbfbff220 "",
      error_size=1024) at loader.c:427
  #12 0x3c000621 in main (argc=1, argv=0xbfbff670) at main.c:33
  #13 0x3c000566 in _start ()

I'm afraid I'm lost.

Gerald Pfeifer (Jerry)   gerald at

More information about the wine-devel mailing list