| 115 | === Undefined reference to 'ECPGconnect' ... === |
| 116 | In Ubuntu you may get this error: |
| 117 | {{{ |
| 118 | adminif.cc:(.text+0x4b): undefined reference to `ECPGconnect' |
| 119 | adminif.cc:(.text+0x71): undefined reference to `ECPGtrans' |
| 120 | adminif.cc:(.text+0x80): undefined reference to `ECPGdisconnect' |
| 121 | ../reladminif/libreladminif.a(databaseif.o): In function `DatabaseIf::disconnect()': |
| 122 | |
| 123 | mdddomaintype.cc:(.text+0x720): undefined reference to `ECPGdo' |
| 124 | collect2: ld returned 1 exit status |
| 125 | make[2]: *** [rasserver] Error 1 |
| 126 | make[2]: Leaving directory `/home/rasdaman/rasdaman/server' |
| 127 | make[1]: *** [install-recursive] Error 1 |
| 128 | make[1]: Leaving directory `/home/rasdaman/rasdaman/server' |
| 129 | make: *** [install-recursive] Error 1 |
| 130 | }}} |
| 131 | |
| 132 | To fix it, set the libs explicitly at configure, e.g. |
| 133 | {{{ |
| 134 | ./configure --prefix=/home/rasdaman/install LIBS='-lecpg -lgdal1.7.0' |
| 135 | }}} |