• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Linux

Niebieski

kasteria.online
Premium User
Joined
Jan 29, 2010
Messages
644
Solutions
1
Reaction score
260
Location
Poland
I got that error when I compilling my server, what's wrong? What do you think?

/usr/bin/ld: connection.o: undefined reference to symbol 'pthread_getspecific@@G     LIBC_2.0'
/usr/bin/ld: note: 'pthread_getspecific@@GLIBC_2.0' is defined in DSO /lib/libpt     hread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [theforgottenserver] Error 1
make[1]: Leaving directory `/home/OT'
make: *** [all] Error 2
 
Now that problem:

/usr/bin/ld: connection.o: undefined reference to symbol 'pthread_getspecific@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_getspecific@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [theforgottenserver] Error 1
make[1]: Leaving directory `/home/OT'
make: *** [all] Error 2
 
apt-get install libboost1.42-dev libboost-system1.42-dev libboost-filesystem1.42-dev libboost-date-time1.42-dev libboost-regex1.42-dev libboost-thread1.42-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev libcrypto++8

test!
 
For ubuntu:

#
# deb cdrom:[Ubuntu-Server 10.10 _Maverick Meerkat_ - Release amd64 (20101007)]/ maverick main restricted

#deb cdrom:[Ubuntu-Server 10.10 _Maverick Meerkat_ - Release amd64 (20101007)]/ maverick main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb Index of /ubuntu maverick main restricted
deb-src Index of /ubuntu maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb Index of /ubuntu maverick-updates main restricted
deb-src Index of /ubuntu maverick-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb Index of /ubuntu maverick universe
deb-src Index of /ubuntu maverick universe
deb Index of /ubuntu maverick-updates universe
deb-src Index of /ubuntu maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb Index of /ubuntu maverick multiverse
deb-src Index of /ubuntu maverick multiverse
deb Index of /ubuntu maverick-updates multiverse
deb-src Index of /ubuntu maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb Index of /ubuntu maverick-backports main restricted universe multiverse
# deb-src Index of /ubuntu maverick-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb Index of /ubuntu maverick partner
# deb-src Index of /ubuntu maverick partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb Index of /ubuntu maverick main
# deb-src Index of /ubuntu maverick main

deb Index of /ubuntu maverick-security main restricted
deb-src Index of /ubuntu maverick-security main restricted
deb Index of /ubuntu maverick-security universe
deb-src Index of /ubuntu maverick-security universe
deb Index of /ubuntu maverick-security multiverse
deb-src Index of /ubuntu maverick-security multiverse

apt-get update
apt-get update
 
It's not work, still got the problem:

/usr/bin/ld: connection.o: undefined reference to symbol 'pthread_getspecific@@G     LIBC_2.0'
/usr/bin/ld: note: 'pthread_getspecific@@GLIBC_2.0' is defined in DSO /lib/libpt     hread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [theforgottenserver] Error 1
make[1]: Leaving directory `/home/OT'
make: *** [all] Error 2
 
Use this source.list
Code:
deb http://www.backports.org/debian lenny-backports main contrib non-free


# main sources

deb http://debian.intergenia.de/debian/ lenny main contrib non-free
deb-src http://debian.intergenia.de/debian/ lenny main contrib non-free

# volatile

deb http://debian.intergenia.de/debian-volatile/ lenny/volatile main contrib non-free
deb-src http://debian.intergenia.de/debian-volatile/ lenny/volatile main contrib non-free

# security

deb http://debian.intergenia.de/debian-security/ lenny/updates main contrib non-free
deb-src http://debian.intergenia.de/debian-security/ lenny/updates main contrib non-free

# intergenia.de additional repositories

deb http://mirror.intergenia.de/packages/deb/ lenny dedicated
deb-src http://mirror.intergenia.de/packages/deb/ lenny dedicated

Execute this commands.
Code:
apt-get update
apt-get upgrade

Now this.
Code:
aptitude -y install mysql-server-5.1 build-essential pkg-config libboost-dev libgmp3-dev liblua5.1-0-dev libboost1.40-dev libboost-system1.40-dev libboost-filesystem1.40-dev libboost-date-time1.40-dev libboost-regex1.40-dev libboost-thread1.40-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev ccache

Cya
 
Use this source.list
Code:
deb http://www.backports.org/debian lenny-backports main contrib non-free


# main sources

deb http://debian.intergenia.de/debian/ lenny main contrib non-free
deb-src http://debian.intergenia.de/debian/ lenny main contrib non-free

# volatile

deb http://debian.intergenia.de/debian-volatile/ lenny/volatile main contrib non-free
deb-src http://debian.intergenia.de/debian-volatile/ lenny/volatile main contrib non-free

# security

deb http://debian.intergenia.de/debian-security/ lenny/updates main contrib non-free
deb-src http://debian.intergenia.de/debian-security/ lenny/updates main contrib non-free

# intergenia.de additional repositories

deb http://mirror.intergenia.de/packages/deb/ lenny dedicated
deb-src http://mirror.intergenia.de/packages/deb/ lenny dedicated

Execute this commands.
Code:
apt-get update
apt-get upgrade

Now this.
Code:
aptitude -y install mysql-server-5.1 build-essential pkg-config libboost-dev libgmp3-dev liblua5.1-0-dev libboost1.40-dev libboost-system1.40-dev libboost-filesystem1.40-dev libboost-date-time1.40-dev libboost-regex1.40-dev libboost-thread1.40-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev ccache

Cya

I did it with your repo and look:
W: GPG error: Index of / lenny Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 517B2D5802760C2F
W: GPG error: Index of / lenny/updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA
W: GPG error: http://www.backports.org lenny-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA
W: You may want to run apt-get update to correct these problems
 
Back
Top