X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=draconx-ca.20230601.gappssmtp.com; s=20230601; t=1700090465; x=1700695265; darn=delorie.com; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:from:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=4Ufkqec/CAts1yQJFfSNn31iRUvpN5KEhaY62VMriN4=; b=daetAJGoV/9Qc3+oAQ1SGRFJyiTOZLOKBwig8bPLi3GotZocZXnEAxBgbdSL8U5AJa OAivlXIZIM17qBwIgStw+ZsojnQIhoV3h9dJNw6AGyJhvvqx8TgJvr78Zf2Dku24Z3CB 96d3WrC3L8ygMI1hnGz7ElZSFawwgwwp81GofljEFQMdq3mCl2HT2QGED6N3Ii8v8glJ b6xZpkLuwY5BsO0fz+M2OCtWWpTl8utLzwg2vkRIj9s/BN8U+fIBAWDiV0z+wc75Qlrb FOWL8zl+mUQttigIvfumDlL/8nbADDJPqlAchSZQ0s+f4Uyl722RUlSF9V+q3Kpn8peV MfEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700090465; x=1700695265; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4Ufkqec/CAts1yQJFfSNn31iRUvpN5KEhaY62VMriN4=; b=GCaX+Ed/DdoRMyBhSS7QVJV/lzW+yE9/tZN1RnhjdDQ82+oA9MkuR9qV3+6SFdkzfj kZGs6WU5sOH2jOQAWrwnisqaX9gYTKbSNrwOM/T73vVmt3AvN7Bu12Lu2s2DfS1mQTKy DYCnivnyq7lNc76mJnKTh77tKqyzNXNqPVfqAu693+G8b1n4P5C5OV7i56G/sfR0v/Fx grVBHDpAEo5b2kdBtqaGHG/k2vQI6Evns/wRiG+kuL8lXt+vNJ/f7mDes7dVcA3nzza6 k87G2LeNKeDptEAyCtSGS18Yp7KVoGtza13ljJhNPxfnv909LgXdlrQ8E8HbxC1zGm3o uQxw== X-Gm-Message-State: AOJu0YzqDkegy/EwADnG6JJEFf1sZdjTXH80i0/s6Kr6RTVdNt0Nh5qr amLfI9CFs8xjete+PnuHPT+8DsMcLngxA/aogWCbUg== X-Google-Smtp-Source: AGHT+IHJWKcndj4wBqbMiOeuIMX8sTF7KBK/bnX0WC7L7DYlmzSLGohYIYujgqEj8N01o610womaOQ== X-Received: by 2002:a05:620a:2681:b0:779:d939:5a9a with SMTP id c1-20020a05620a268100b00779d9395a9amr7249417qkp.63.1700090464714; Wed, 15 Nov 2023 15:21:04 -0800 (PST) Message-ID: <95d6be1b-d172-4712-8c9a-5242d74f3e8b@draconx.ca> Date: Wed, 15 Nov 2023 18:21:03 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: "Nick Bowler (nbowler AT draconx DOT ca) [via geda-user AT delorie DOT com]" Subject: Re: [geda-user] anyone successfully built gerbv lately? To: geda-user AT delorie DOT com References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 2023-11-15 17:37, Britton Kerin (britton DOT kerin AT gmail DOT com) [via geda-user AT delorie DOT com] wrote: > I've been rebuilding on new laptop and was relieved after recent > discussions to find that gschem and pcb rebuild fine on the latest > Ubuntu LTS. > > gerbv isn't building though. I don't use it a lot but it's a nice way > to take a final look at gerbers. > Has anyone built it lately? > > Here is how it fails: > > $ make [snip] > /usr/bin/ld: interface.o:/home/bkerin/projects/geda_full_stack/gerbv-2.7.0/src/callbacks.h:50: > multiple definition of `toggle_layer' Yes, this header defines some global variables and modern gcc no longer follows traditional practice of (by default) creating common symbols for these (which hides the multiple definition problem). So on current versions you will see this error. As a workaround, you can compile with CC='gcc -fcommon' to restore the traditional behaviour. Or just remove the definitions, as the variable definitions appear to just be mistakes (they are not referenced anywhere in the code): --- src/callbacks.h~ +++ src/callbacks.h @@ -41,13 +41,13 @@ CALLBACKS_SAVE_LAYER_AS, CALLBACKS_SAVE_FILE_IDRILL -} CALLBACKS_SAVE_FILE_TYPE; +}; enum { LAYER_SELECTED = -1, LAYER_ALL_ON = -2, LAYER_ALL_OFF = -3, -} toggle_layer; +}; void callbacks_new_project_activate (GtkMenuItem *menuitem,