[sslh] OS X 10.6 does not know memem

Kai Ellinger kai2 at blicke.de
Thu Mar 27 05:02:38 CET 2014


Hello Yves,

The following change causes problems while linking on OS X 10.6.

https://github.com/yrutschle/sslh/commit/708c3b0177532044b74fc3581fb25c6734831e9b

--- OS X 10.9 works:

# brew install sslh
==> Downloading https://github.com/yrutschle/sslh/archive/v1.16.tar.gz
######################################################################## 100,0%
==> make
🍺  /usr/local/Cellar/sslh/1.16: 7 files, 104K, built in 4 seconds
#

--- OS X 10.6 shows errors:

# brew install sslh
==> Downloading https://github.com/yrutschle/sslh/archive/v1.16.tar.gz
Already downloaded: /Users/kellinge/Library/Caches/Homebrew/sslh-1.16.tar.gz
==> make
      _is_xmpp_protocol in probe.o
      _is_http_protocol in probe.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [sslh-fork] Error 1

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

#

--- Reason:

# brew install sslh -v
...
==> make
./genver.sh >version.h
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
gcc-4.2 -Wall -g  -DLIBCONFIG -c common.c
gcc-4.2 -Wall -g  -DLIBCONFIG -c sslh-main.c
gcc-4.2 -Wall -g  -DLIBCONFIG -c probe.c
gcc-4.2 -Wall -g  -DLIBCONFIG -c sslh-fork.c
gcc-4.2 -Wall -g   -o sslh-fork sslh-fork.o common.o sslh-main.o probe.o  -lconfig
Undefined symbols:
  "_memmem", referenced from:
      _is_xmpp_protocol in probe.o
      _is_http_protocol in probe.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [sslh-fork] Error 1

I manually changed back to strstr and it worked.

Question is whether one can get memmem on OS X 10.6 as well.

Best Regards,
Kai


More information about the sslh mailing list