[CDRIVER-2260] Compile error for mongoc-performance Created: 29/Aug/17  Updated: 28/Oct/23  Resolved: 05/Sep/17

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.8.0

Type: Task Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-2107 Compile error for mongoc-performance Closed

 Description   

The performance project still isn't compiling on evergreen:
https://evergreen.mongodb.com/task/mongo_c_driver_perf_c_driver_benchmark_compile_compile_a3abe9de7017c92723c1c26b33199746549b6ebb_17_08_29_15_58_53

its complaining about syntax error in the configure script

[2017/08/29 10:08:04.721] ./configure: line 18484: syntax error near unexpected token `fi'
[2017/08/29 10:08:04.721] checking for sasl_client_done in -lsasl2... no
[2017/08/29 10:08:04.721] ./configure: line 18484: `fi'
[2017/08/29 10:08:04.776] Command failed: exit status 2
[2017/08/29 10:08:04.776] Task completed - FAILURE.
[2017/08/29 10:08:04.781] Running post-task commands.
[2017/08/29 10:08:04.781] Running command 'shell.exec' (step 1 of 1)
[2017/08/29 10:08:04.882] Finished running post-task commands in 101.318759ms.

It doesn't upload the working directory so I can't tell in a jiffy whats wrong



 Comments   
Comment by Githook User [ 06/Sep/17 ]

Author:

{'username': 'bjori', 'name': 'Hannes Magnusson', 'email': 'bjori@php.net'}

Message: CDRIVER-2260 Fix lib ordering
Branch: r1.8
https://github.com/mongodb/mongo-c-driver/commit/564ec32e3033aee1741a5ecf1d8d709f9778429d

Comment by Hannes Magnusson [ 05/Sep/17 ]

Confirmed it built: https://evergreen.mongodb.com/version/mongo_c_driver_perf_470fb4175c02f2d03589f4ac4131faa14128e60d

Comment by Githook User [ 05/Sep/17 ]

Author:

{'username': 'bjori', 'name': 'Hannes Magnusson', 'email': 'bjori@php.net'}

Message: CDRIVER-2260 Fix lib ordering
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/470fb4175c02f2d03589f4ac4131faa14128e60d

Comment by Githook User [ 02/Sep/17 ]

Author:

{'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com'}

Message: CDRIVER-2260 Autoconf syntax fixes
Branch: r1.8
https://github.com/mongodb/mongo-c-driver/commit/d154da51167e3288c8712b067783dc1221d7fd48

Comment by A. Jesse Jiryu Davis [ 02/Sep/17 ]

I've fixed the syntax errors. I hypothesize that either Autoconf or "sh" on that distro is much older than on our other test distros and it didn't like the Autoconf syntax we recently added to CheckSnappy.m4 and CheckZlib.m4.

Now there's a new problem. You can reproduce it it by spawning a rhel62-small host and doing:

git clone 'git@github.com:mongodb/mongo-c-driver.git' 'mongo-c-driver' --branch 'master'
cd mongo-c-driver
./autogen.sh --prefix=`pwd`/mongoc
make
make install

The "make install" step fails:

make[2]: Entering directory `/root/mongo-c-driver'
test -z "/root/mongo-c-driver/mongoc/lib" || /bin/mkdir -p "/root/mongo-c-driver/mongoc/lib"
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   libmongoc-1.0.la libsnappy.la '/root/mongo-c-driver/mongoc/lib'
libtool: install: warning: relinking `libmongoc-1.0.la'
libtool: install: (cd /root/mongo-c-driver; /bin/sh /root/mongo-c-driver/libtool  --silent --tag CC --mode=relink gcc -O2 -Wl,-Bsymbolic -fvisibility=hidden -no-undefined -rpath /root/mongo-c-driver/mongoc/lib -o libmongoc-1.0.la -rpath /root/mongo-c-driver/mongoc/lib libmongoc.la )
/usr/bin/ld: cannot find -lsnappy
collect2: ld returned 1 exit status

It fails with the

"cannot find -lsnappy" error even with the "--prefix"

argument. Something's wrong with our bundled snappy on RHEL 6.2. Can you take a look Hannes?

Comment by Githook User [ 02/Sep/17 ]

Author:

{'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com'}

Message: CDRIVER-2260 Autoconf syntax fixes
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/e890db86bdaef61f646f095c1db8d11d2d0ed188

Comment by A. Jesse Jiryu Davis [ 31/Aug/17 ]

Set up email notifications for Jesse for this project too.

Generated at Wed Feb 07 21:14:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.